1:1 mentoring with Big Tech AI engineers
RAG & MCP

MCP Architecture

Host, client and server as roles; tools, resources and prompts by who decides to use each; one tool call in real 2026-07-28 JSON; the two ways a call fails; and the change that defines the current spec: no handshake, so any instance can answer.

Last updated

Foundations11 min readFirst readMCP OverviewInside a Tool Call

After this section you can

  • Trace one create_support_ticket call from tool_use to tool_result across host, client and server
  • Choose tool, resource or prompt by who decides to use it, and send a failure down the right error channel
  • Explain what replaced the initialize handshake and why a request no longer needs a particular server instance
02

MCP Architecture: One Tool Call, End to End

One tool call in real 2026-07-28 JSON, the two ways it fails, and the change that defines the spec: no handshake.

Key idea

An AI application (the host) runs one MCP client per server, and the model only ever talks to the host. A tool call is one JSON-RPC request from that client to its server. In 2026-07-28, the current spec, every request carries its own context, so there is no handshake and no request depends on which instance saw the last one.

A host runs one client per server, and the model only ever talks to the host
Each pair is one MCP connection:JSON-RPC over stdio or Streamable HTTPwrites tool_use, never MCPhost routes by tool nametalks to server 1 onlytalks to server 2 onlytalks to server 3 onlynot MCP ModelClient 1Server 1 · SupportClient 2Server 2 · ContractsClient 3Server 3 · LegalJira API tool: create_support_ticketresource: acme-2024.pdfprompt: summarise_contracttool_usetool_resulttools/callresultPOST201 HOST · THE AI APPLICATIONSERVERS · ONE PER CLIENTOUTSIDE MCP 162534

Numbers are step 3’s messages: blue a request, green a result, amber what the model wrote. The figure pans sideways on a phone.

Related

More in RAG & MCP

Get full access to all 149 sections with code examples, diagrams, and interactive animations.

Unlock Premium