MCP Transports and Stateless Requests
In this article
- Read a JSON-RPC message and say which field decides where it goes.
- Choose stdio or Streamable HTTP for an MCP server and write the config entry or the HTTP request.
- Explain why a request that carries its own version lets any server instance answer it.
- Spot a deprecated transport, a missing or mismatched MCP header and state held in one instance's memory in a transcript, and correct them.
- Terms defined here: JSON-RPC, stdio transport, Streamable HTTP, server-sent events, stateless MCP request, MCP subscription.
Overview
The Model Context Protocol (MCP) is the common way an AI app calls a server for tools and data, such as the shop's orders server, which lets three AI apps look up orders. That server has run fine on one machine. To serve them for real, it moves to two copies behind a load balancer, and every request can land on either copy. That raises a plain question: what must each message carry so that the copy that gets it can answer, without knowing what happened before?
You will learn how one MCP message is shaped, the two ways it travels between an app and a server, and why the current version of MCP, 2026-07-28, makes every request stand on its own. [2,4,5] At the end you will read a broken exchange, find its three faults and write the corrected one.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- One message, one JSON object
- Two ways to carry a message
- No handshake, no session
- Headers that mirror the body
- Asking a server what it supports
- Worked example: three faults
- Hearing about changes
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions