MCP Just Went Stateless: What the Latest MCP Spec Changes for Enterprise Servers

AI

Key takeaways:

  • The protocol is stateless now, but your application can still be stateful. Make that state explicit and user-bound.

  • MRTR replaces server-initiated requests. Sign requestState and keep side effects after confirmation.

  • Validate headers against the body, and treat cacheScope as a label, not access control.

Most teams that run MCP in production hit the same wall. The protocol held a session open, and the infrastructure wanted every request to stand alone.

So you added sticky routing, or a shared session store, or pinned traffic to one instance. The 2026-07-28 revision removes the cause instead of managing the symptom.

It is also a breaking release. This post covers what changed, what you now own yourself, and the order to migrate in.

Why did MCP drop sessions?

Before this revision, every connection began with an initialize handshake, and Streamable HTTP tracked sessions with the Mcp-Session-Id header. Behind a load balancer, that means sticky routing or shared session storage.

Now each request carries its own protocol version and client capabilities in _meta. Any request can land on any instance behind a plain round-robin load balancer, with no shared storage.

The maintainers describe the stateless core as one of the most requested changes, driven by developers who wanted better reliability and scalability from their MCP servers.

What changed in the new spec?

The spec removes the session, the handshake and server-initiated requests, and adds routing headers and cache hints. This table covers the changes that matter most to operators.

Area Before (2025-11-25) Now (2026-07-28)
Handshake initialize / initialized exchange Removed. Each request carries its protocol version and client capabilities in _meta.
Session identity Mcp-Session-Id header Removed from Streamable HTTP.
Discovery Learned during the handshake server/discover. Servers must implement it; clients may call it first.
Server questions to the user Server-initiated elicitation/create, sampling/createMessage, roots/list Multi Round-Trip Requests (MRTR). The old pattern is no longer supported.
Change notifications HTTP GET endpoint, resources/subscribe A single subscriptions/listen stream that clients opt into per notification type.
Routing No method or name headers Mcp-Method on all requests. Mcp-Name on tools/call, resources/read and prompts/get.
Caching listChanged notifications only ttlMs and cacheScope required on complete results of the list, read and discover operations.
Stream recovery Resumable SSE streams with Last-Event-ID Not supported. Closing the response stream cancels the request.
Tasks Experimental core feature Official extension io.modelcontextprotocol/tasks, polling with tasks/get and tasks/update.

Where does state go now?

Into your application, and into the model's view. The maintainers recommend explicit handles: a tool mints a handle, and the model passes it back as an argument. They report this works better than hiding state in the transport, because the model can see the handle and carry it between tools.

A hypothetical CRM example: start_bulk_update returns a job_id, and add_records and commit_job each take that job_id.

This is a cleaner design, and it also moves work onto you. The trade-offs below are my engineering view, not spec text.

You gain You now own
Any instance can serve any call Handle storage, if the handle points at server-side data
State is visible and debuggable in traces Handle expiry and cleanup
No sticky routing or session affinity Binding each handle to the authenticated user, so one user cannot pass another's handle

A stateless protocol does not make a stateless application. If your handles point at a shared database, that database is now your scaling and consistency concern.

How does a tool ask for confirmation now?

Take a tool that closes a case and notifies a customer. Under the old model, the server sent elicitation/create over an open stream. Under MRTR, the server returns an interim result of type input_required with the questions it needs answered. The client collects the answers and retries the original request with them.

Each retry is an independent request with its own JSON-RPC ID, and the server that handles it needs nothing beyond what the retry contains. MRTR retries must not be cached.

Treat requestState as attacker-controlled

The server can pass context through an opaque requestState string, which the client echoes back on retry. The spec is direct about the risk:

  • Servers must treat requestState as attacker-controlled input.

  • If it influences authorization, resource access or business logic, protect its integrity with an HMAC or AEAD, and reject state that fails verification.

  • Bind it to the authenticated user, a short expiry and the originating request.

Two rules follow from the flow. Both are my recommendations, not spec text:

  • Do no irreversible work before returning input_required, because the call will be retried, possibly on another instance.

  • Make the final step idempotent. The spec does not guarantee that a client retries, or retries only once.

What do gateways, caches and tracing need to do?

The new headers and cache hints make an MCP server behave like any other HTTP service, with a few rules your platform team should know.

  • Header validation. Every POST must carry MCP-Protocol-Version, and it must match the version in the body's _meta. Mcp-Method is required on all requests. Mcp-Name is required only for tools/call, resources/read and prompts/get.

  • Reject mismatches. Servers must reject a mismatch or a missing required header with HTTP 400 and error code -32020 (HeaderMismatch). The spec says this protects against a gateway routing on one value while the server executes another.

  • Gateway policy. A gateway that enforces policy on these headers should check that the version header names a revision requiring this validation, and reject the request otherwise. Names that are not plain ASCII arrive in a Base64 sentinel format, so gateways that inspect them must decode them.

  • Cache scope. Use public only for lists identical for every user, and private for per-user results. All pages of a paginated list must use the same cacheScope. Never treat it as access control: it is a caching label, not a lock.

  • Prompt cache cost. Servers should return tools in a deterministic order, which helps client caching and LLM prompt cache hit rates. I have no verified benchmark for the saving, so none is quoted here.

  • Tracing. The spec documents OpenTelemetry trace context propagation through _meta (traceparent, tracestate, baggage), so one trace can span agent, gateway and server.

  • Long calls. A broken stream loses the in-flight request and the client must re-issue it. The Tasks extension, with polling, is the intended path for work that outlives a connection. That reading is my inference from the two changes.

What changed in authorization?

The maintainers say authorization is where implementers spend most of their integration time. The revision tightens it in four ways.

  • Issuer validation. Authorization servers should include the iss parameter (RFC 9207). Clients must validate a present iss before redeeming an authorization code, which closes an authorization-server mix-up hole.

  • Issuer-bound credentials. Client credentials are bound to the issuer that created them. Clients must key stored credentials by issuer, must not reuse them with another authorization server, and must re-register when the authorization server changes.

  • Registration. Dynamic Client Registration is deprecated in favor of Client ID Metadata Documents. It still works for compatibility and will be removed in a future spec version.

  • Enterprise-Managed Authorization. Available as an extension, and now stable.

The roadmap points further ahead. The maintainers want servers to recognize agent identities in a standard way, covering agents that run as cloud workloads or act for a user who is not present. That work includes DPoP and Workload Identity Federation. These are roadmap priorities, not shipped spec features.

What is deprecated or removed?

The spec now has a deprecation policy with a minimum twelve-month window. Deprecated features keep working during that window. Removed ones are gone.

Item Status Migration
Roots, Sampling, Logging Deprecated. They still work, but new implementations should not adopt them. Pass paths via tool parameters or resource URIs. Call LLM provider APIs directly instead of Sampling. Use stderr or OpenTelemetry instead of Logging.
HTTP+SSE transport Deprecated. Migrate to Streamable HTTP.
Dynamic Client Registration Deprecated, still available for compatibility. Client ID Metadata Documents
ping, logging/setLevel, notifications/roots/list_changed Removed. If you used ping as a liveness check, use an HTTP health endpoint instead (my suggestion).
Resource-not-found error code Changed from -32002 to -32602. Update client error handling.

How do old and new versions coexist?

The spec handles mixed estates directly. A client supporting both eras may try a modern request first. If the server answers 400 with a recognized modern error, it speaks the new protocol. Otherwise the client falls back to the initialize handshake.

A server that supports only the new revision should ignore Mcp-Session-Id and Last-Event-ID, and answer GET or DELETE on the endpoint with 405. A server that does not support the requested version must answer 400 with an UnsupportedProtocolVersionError that lists the versions it supports.

SDK support varies by version, so check your SDK's supported-spec table. The Go SDK publishes one: v1.7.0 and later lists 2026-07-28 alongside four older revisions.

What should the migration order be?

This sequence is my recommendation. The spec does not prescribe one.

  1. Find every use of Mcp-Session-Id and initialize. These are the hard breaks.

  2. Move cross-call state into explicit, user-bound handles.

  3. Rewrite confirmation flows to MRTR with signed requestState.

  4. Implement server/discover, and add ttlMs, cacheScope and a deterministic tool order.

  5. Handle the routing headers and header-body validation at the gateway.

  6. Validate iss, key credentials by issuer, and plan the move from Dynamic Client Registration to Client ID Metadata Documents.

  7. Move long calls to the Tasks extension.

  8. Add trace propagation through _meta.

What mistakes should you avoid?

  • Rebuilding sessions as a hidden server-side map. It recreates the coupling the spec removed. Make state visible as a handle.

  • Trusting requestState because your own server issued it. It passes through the client, and the spec treats it as attacker-controlled.

  • Running side effects before the user confirms. The retry may hit a different instance.

  • Marking per-user results public to save a round trip. A shared cache can serve one user's result to another.

  • Assuming stream recovery still exists. It does not. Design for re-issued requests.

  • Skipping iss validation because your current authorization server works. The check matters when a client talks to more than one.

  • Assuming every vendor MCP server has moved to the new spec. Check each one.

What does this mean for Salesforce and CRM teams?

MRTR fits the human-confirmation steps CRM agents need, such as closing cases, bulk updates and outbound messages. Because CRM data is permission-scoped, bind every handle and every requestState to the signed-in user (my recommendation).

What Salesforce documents today:

  • Hosted MCP Servers. Compatible clients such as Claude, ChatGPT and Cursor can connect to an org and act for authorized users. The SObject tools respect field-level security and sharing rules.

  • Authentication. Clients connect through an External Client App. Connected Apps cannot be used.

  • Tested clients. Claude, ChatGPT, Cursor, Postman and Agentforce Vibes.

  • Cost. The hosted servers are intended only for Flex Credits customers, and you may be billed for server usage.

  • Coworker MCP server. Salesforce lists it as generally available in November 2026.

Unknown: the Salesforce developer documentation I read does not state which MCP spec revision the hosted servers or the Coworker MCP server implement. The spec gives you a way to find out for a sandbox: a server that does not support a requested version must answer 400 with an error listing the versions it supports. Ask Salesforce for the official answer before you plan around it.

What comes next?

The August 22 roadmap sets five priority areas. All of them are in progress, not released.

  • Agentic messaging primitives, including server-initiated events and maturing the Tasks extension.

  • HTTP-native transport unification, including local servers.

  • Agent identity and enterprise-ready security (DPoP, Workload Identity Federation).

  • Improved primitives, including progressive discovery so a server can reveal its tool catalog as a conversation narrows.

  • Improved SDK developer experience.

One item affects design today. A server with a hundred tools makes the model pay for the whole surface before the first question, so keep tool catalogs lean.

Related Readings

Let's Talk

Drop us a note, we’re happy to take the conversation forward 👇🏻

Rajnish Kumar

AI Solutions Engineer specializing in enterprise AI, LLMs, RAG, AI agents, and secure & scalable AI architectures.

Next
Next

Agentforce Security Checklist: How to Build Secure AI Agents