Skip to main content
Alan’s agents now speak MCP and can reach all 12 of his integrated systems. When they attempt a real action — for example, cancelling an order — they cannot proceed without human approval. Something must stop the agent and ask Alan first. Which MCP component performs that check? To answer, we need the anatomy of an MCP client/server interaction.
A diagram titled "Which Part Does the Asking?" showing a chip-like icon labeled "The Agent" on the left with an arrow pointing to a server stack labeled "Order System" on the right.

MCP roles: Host, Client, Server

  • Host — the AI application that owns the conversation, talks to the model, and coordinates everything. The host is the only component with a UI and direct access to the human user.
  • Server — a program that wraps a single system (for example, an order system). A server exposes the system’s capabilities over MCP, but it has no UI and no knowledge of the human user.
  • Client — a connector inside the host that maintains exactly one connection to one server. A host may run one client per server; if Alan adds two more systems, his host adds two more clients.
Who asks the user for permission? The host does. The server never prompts the user because it has no UI; the client simply routes messages and enforces the boundary between servers and the host. In security terms, the host functions as a policy enforcement point: it checks each request against rules, prompts the user when needed, and enforces the decision before forwarding a request to a server.
An infographic titled "The Host Is the Checkpoint" showing icons for Host and Client inside a dashed host boundary with an arrow pointing to a Server. Bullets under the diagram say it checks every request and asks the user when needed.

What travels across the MCP connection?

Across the client/server connection there are six capability types. Who controls each one matters for privacy, security, and UX.
A dark-themed graphic titled "What the Server Offers" showing three rounded icons labeled Tools (wrench), Resources (document), and Prompts (clipboard with a check). The icons are teal, purple, and green and spaced across the image.
Clients provide the complementary capabilities: elicitation, sampling, and roots. Together, server and client capabilities define what actions are possible and who controls consent, data access, and prompt behavior.

Data layer and transport

  • Data layer: Every message is a structured JSON-RPC 2.0 request or response. See the JSON-RPC 2.0 specification: https://www.jsonrpc.org/specification.
  • Transport layer: Two transports are supported:
    • stdio — for local servers (standard input/output).
    • streamable HTTP — for servers reachable over the web.

MCP is stateless (no handshake)

Before the MCP 2026-07-28 revision, client/server connections began with a handshake exchange to establish session state. The 2026-07-28 revision removed that handshake: MCP is now stateless. Every request must include all context needed for the server to respond. That context lives under a "_meta" field in each request.
A diagram titled "Stateless Now" showing a client (plug icon) on the left and a server (rack icon) on the right. Numbered arrows illustrate message exchanges such as "initialize", "result", "notifications/initialized", and "tools/call".
Example request including required _meta:
Stateless requests make horizontal scaling simple: any copy of a server can answer because no session ties a client to a specific instance.
A simple architecture diagram titled "Any Copy Can Answer" showing a Client icon on the left connected by arrows to a Load Balancer in the center, which forwards requests to a pool of ten servers on the right labeled "Server × 10." It illustrates request flow from the client through the load balancer to multiple backend servers.

Discovering what a server supports

Without a handshake, clients learn a server’s capabilities via a required method: server/discover. Every MCP server must implement server/discover. Clients may call it and optionally include the MCP version they expect. Example discovery request:
If a server does not support the client’s requested MCP version, it returns an “Unsupported protocol version” error listing supported versions. Example error response from a server that only supports 2026-07-28:

Dual-era support

A server may implement both the legacy handshake-era protocol and the stateless 2026-07-28 revision. This is called dual-era support. If you’re building a host today, decide whether to support only the current stateless revision or to handle both eras.
A simple diagram showing a client (plug icon) connected by an arrow to a server (stacked server icon) labeled with dates and a "Dual support" check badge. The heading reads "Answer Both, or Only the Current One."
Stateless requests must include all required context under the "_meta" field. This simplifies scaling (any server copy can respond) but moves responsibility for context management to the client/host.

Watch Video