By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
MCP shifted from stateful to stateless in revision 2026-07-28. This means servers no longer hold session memory between calls. Every request must carry the protocol version and client capabilities, and every response must declare its result type. If you're building or integrating with MCP servers, you need to understand how state moves from implicit (session IDs) to explicit (tool arguments), and how multi-step interactions now work across separate HTTP-like round trips.
Before 2026-07-28, a client would initialize once, receive a session ID, and send that ID with every subsequent call. The server tracked state in memory. That design broke under stateless deployment: load balancers, serverless functions, and horizontal scaling all become harder when the server must remember who you are.
The new model flips the burden to the client. Every request includes protocol version and client capabilities in a _meta field. The server answers without needing to recall anything from before.
Look at a concrete call. The client sends version and capabilities inline:
{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {
"name": "add_note",
"arguments": { "text": "buy milk" },
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}The server responds with a resultType field—either 'complete' for a finished result, or 'input_required' if it needs more information from the user. No session ID. No hidden state.
// illustrative response
{ "jsonrpc": "2.0", "id": 1,
"result": {
"resultType": "complete",
"content": [ { "type": "text", "text": "Saved note #1" } ],
"isError": false
} }If the server doesn't support the version you sent, it returns an UnsupportedProtocolVersion error. Clients should also send clientInfo with each request; servers should report serverInfo in the result's _meta.
Servers must implement server/discover. Call it first to learn what protocol versions the server supports, what capabilities it offers, and who it is. Then pick a version and proceed. On stdio connections, server/discover also acts as a compatibility probe for older servers that still use the stateful model.
Stateless doesn't mean stateless applications. If your server manages a shopping cart, it still needs to track it. The difference is visibility: the server mints an explicit handle (like cart_id: 'c_81'), returns it in the response, and the client passes it back as an ordinary tool argument on the next call. State becomes a first-class parameter, not a hidden session detail. This makes debugging easier and lets the system work across any server instance.
In the old model, if a server needed user confirmation, it could send a request back to the client over a held-open connection. Stateless connections can't do that. Instead, the server returns an interim result with resultType: 'input_required' and describes what it needs via inputRequests.
The client shows this to the user, collects their response, and retries the same call with inputResponses added. If the server needs to remember state between retries, it passes a requestState value that the client sends back unchanged.
This pattern works because each round trip is independent. The client controls the loop; the server answers each request in isolation.
subscriptions/listen replaces the old GET stream and resource subscribe calls—it's a single long-lived stream for change notifications the client has opted into. Log level is now requested per call through _meta; servers must not send log notifications otherwise. List results carry ttlMs and cacheScope so clients can cache them safely. Streams cannot be resumed: if a response stream breaks, the client re-sends the request with a new id.
Field names come from the 2026-07-28 changelog. Exact JSON shapes live in the spec's schema—always check it before writing a production client.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.