Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Engineering@Microsoft 5 min read Case study mediumAdept

How we built the Microsoft Learn MCP Server

Microsoft Learn's MCP Server is a remote Model Context Protocol endpoint, built with the official C# MCP SDK on Azure App Service, that exposes three agent tools (docs search, docs fetch, code sample search) over Streamable HTTP. It sits on the same vector-store knowledge service that powers Ask Learn. The team's lessons: design tools around the agent's search-and-read workflow rather than mirroring internal retrieval parameters, and treat the server as a stateless multi-region distributed service. They also found that tool descriptions measurably change activation rates, so they tune them with automated evals, and that some clients hardcode schemas anyway: renaming a parameter from question to query broke 2–5% of requests until both names were accepted during a deprecation window.

Assumes: Model Context Protocol basicsLLM tool callingretrieval-augmented generation

Related posts

  • How to build AI agents with MCP: 12 framework comparison (2025)

    ClickHouse mediumAdept

    Twelve agent SDKs now support the Model Context Protocol: Claude Agent SDK, OpenAI Agents SDK, Microsoft Agent Framework, Google ADK, CrewAI, Upsonic, mcp-agent, Agno, DSPy, LangChain, LlamaIndex and PydanticAI. Each is shown connecting to the ClickHouse MCP Server against a public SQL playground, with Python code for every framework. Differences covered include Claude Agent SDK's required tool allowlist, OpenAI's handoff and streaming patterns, and Microsoft's preview status and Azure ties. Choosing among them comes down to language support, ecosystem and how much abstraction you want.

  • What’s MCP all about? Comparing MCP with LLM function calling

    Neon mediumAdept

    The Model Context Protocol (MCP) builds on LLM function calling by moving tool definitions and execution out of individual LLM applications into standalone servers that any MCP-compatible client can discover and invoke. A Home Assistant light-control function is implemented both ways. The first version uses OpenAI tool definitions in JSON, with the app parsing tool_calls and executing them itself. The second is an MCP server built with the TypeScript SDK, a Zod schema and stdio transport, registered in Cursor. The takeaway is that function calling leaves discovery and execution to each app, while MCP standardizes them so tools can be reused across agents like Cursor, Windsurf and Claude Desktop.

  • You are Doing MCP Wrong: 3 Big Misconceptions

    Docker mediumAdept

    MCP is a model-facing protocol for LLM tool use and context exchange, not a replacement for REST or gRPC. Tools execute while agents plan, re-plan and evaluate, and MCP also covers resources, prompts and elicitations alongside tools. The recommended architecture treats MCP as the seam between a non-deterministic planning layer and a deterministic execution layer. Concrete patterns include wrapping existing APIs with tools that declare pre/postconditions, keeping the agent control loop outside tools with explicit stop criteria, versioning prompts in a registry, using elicitations for low-confidence branches, and tracing plan → tool → result for replay and audit.

  • MCP in LangChain: Stateless Protocol, Elicitation, and More!

    LangChain mediumAdept

    LangChain has moved MCP support into the main package as `langchain.mcp`, rebuilt on FastMCP to match the July 2026 stateless MCP spec, which drops sessions so remote servers no longer need sticky routing or a shared session store. `MultiServerMCPClient` is replaced by a single `MCPAdapter`. FastMCP negotiates per connection between the new protocol and the legacy handshake, and a `ClientGroup` gives each server its own era, auth and server-prefixed tool names. Mid-call elicitation surfaces as a LangGraph interrupt that resumes via a checkpointer, and tool lists can be cached client-side according to server-provided TTLs. The namespace is in beta (Python first, TypeScript to follow) and requires `langchain[mcp]>=1.4.0`.

  • Designing MCP tools for agents: Lessons from building Datadog’s MCP server

    Datadog Engineering mediumAdept

    Thin API wrappers make poor MCP tools: agents flood their context windows, blow token budgets on oversized records, and infer trends from raw samples. Datadog's MCP server fixes this with token-efficient formats (CSV/TSV for flat data, YAML for nested), trimmed default fields, and pagination by token budget instead of record count, fitting about 5x more records per token. It also exposes a SQL query interface over logs, which made eval runs about 40% cheaper. Other lessons: keep tool count low with flexible tools, opt-in toolsets or layering; return specific, actionable error messages; offer a RAG docs-search tool; and include guidance hints in tool results.

The quest for software engineering knowledge.

Look:
Layout: