T-02MCP: Hosts, Clients, Servers

/tools/mcp

Revision 2025-11-25 of the protocol between the app that runs the model and the servers that offer tools: the host starts a client per server, discovers what each offers, and routes calls through it.

Step-by-step walkthrough8 steps
  1. The host is the app the user runs. The model lives inside it and never talks to a server directly.
  2. For every server, the host starts one client — one connection each, isolated from the others.
  3. A local server runs as a child process and talks over stdin and stdout.
  4. A remote one is reached over HTTP. Only the pipe differs; the messages are the same.
  5. On connect, the client asks what the server offers — its tools, resources and prompts — instead of assuming.
  6. Tool definitions travel up into the model’s context; a call travels back down the same client to the same server.
  7. Every connected server also writes text into that context. Connect one like a dependency, not a bookmark.
  8. Add or swap a server and nothing else changes — the protocol is the contract, not a bespoke integration per app.
Key insight

That revision adds OAuth and OpenID Connect authorization-server discovery, URL-mode elicitation, tool calls inside sampling, experimental Tasks, icons, and guidance on tool names. The transport is still a detail — stdio for a local process, HTTP for a remote service — and the model still sees definitions and results, never the server. Tasks are the same durable-request idea as a workflow log, across a server boundary.

Failure mode

Treating a connected server as a trusted plugin. Every server writes text straight into the model’s context, and every tool it lists costs tokens on each request whether it is used or not.

Elsewhere in the atlas