If you run a Model Context Protocol (MCP) server in production, one architectural shift in the 2026-07-28 specification matters more than everything else: both the initialize / initialized handshake and the Mcp-Session-Id header are retired. The MCP stateless core means a single request no longer depends on a transport-level session created by an earlier call.

Although the specification shipped on July 28, 2026, thousands of production MCP servers were originally built against the 2025 session model, holding connection dictionaries in RAM, relying on sticky load-balancer routing, or keeping Server-Sent Events (SSE) streams open for elicitation. Finding that out right before a client SDK upgrade forces a messy rewrite under pressure. Here is every technical change in the 2026-07-28 spec, how to replace session state cleanly, and a fast audit you can run on your server codebase today.

What the MCP stateless core changes (2025-11-25 vs. 2026-07-28)

Six Specification Enhancement Proposals (SEPs) work together to strip state out of the MCP transport layer so servers can scale horizontally behind standard HTTP load balancers, serverless runtimes, and API gateways:

Capability / MechanismLegacy Spec (2025-11-25)Stateless Spec (2026-07-28)Spec Reference
Connection HandshakeMandatory initialize / initialized exchange before tool callsRetired; client identity & capabilities travel in _meta per request; optional server/discover RPCSEP-2575
Session TrackingMcp-Session-Id header echoed on every call; sticky routing requiredRetired; any request can hit any server replica behind round-robin routingSEP-2567
Gateway RoutingProxies had to parse JSON-RPC bodies to inspect tool callsStreamable HTTP requires Mcp-Method and Mcp-Name headers; mismatched headers/body must be rejectedSEP-2243
Server-to-Client PromptsLong-lived SSE streams for server-initiated elicitation/callbacksMulti Round-Trip Requests (MRTR): returns resultType: "input_required"; client retries with inputResponsesSEP-2322 / SEP-2260
List & Resource CachingClients relied on SSE notifications or blind re-fetchingtools/list, prompts/list, resources/list, and resources/read return ttlMs and cacheScopeSEP-2549
Distributed TracingAd-hoc vendor headers and inconsistent trace propagationStandardized W3C Trace Context (traceparent, tracestate, baggage) inside _metaSEP-414

All four Tier 1 MCP SDKs, TypeScript, Python, Go, and C#, support the 2026-07-28 specification, so upgrading client agents without checking your server assumptions can break older session-bound endpoints immediately.

Wire format: what a stateless MCP request looks like now

Every Streamable HTTP call is self-contained. Notice the required MCP-Protocol-Version, Mcp-Method, and Mcp-Name headers, plus client metadata embedded directly in params._meta:

http
POST /mcp HTTP/1.1
Host: api.example.com
Content-Type: application/json
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: search

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": { "q": "stateless mcp routing" },
    "_meta": {
      "io.modelcontextprotocol/clientInfo": {
        "name": "my-agent-host",
        "version": "1.0"
      },
      "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
    }
  }
}

If a client needs to inspect server capabilities before invoking a tool, it can call the new server/discover RPC up front, but discovery is optional, not a blocking connection handshake.


Stateless protocol, stateful apps: the explicit-handle pattern

Making the protocol stateless does not forbid stateful workflows (such as multi-step SQL transactions, paginated queries, browser sessions, or draft order carts). It simply moves state out of hidden transport headers and into explicit tool arguments.

The official MCP spec recommends minting an explicit, opaque handle from a tool and having the model pass that handle back on follow-up tool calls. Because the handle lives in the tool schema, the LLM can see it, reason about it, and thread it safely across multiple tools, while your server stores the backing state in Redis, Postgres, or object storage instead of local RAM.

python
# BEFORE (Breaks under stateless load balancing)
# Relies on Mcp-Session-Id and process-local memory
SESSION_WORKSPACES = {}

def run_query(session_id: str, sql: str):
    cursor = SESSION_WORKSPACES[session_id]  # Fails if next HTTP call hits replica B
    return cursor.execute(sql)


# AFTER (2026-07-28 Explicit-Handle Pattern)
# Any server instance can serve any request using shared storage
def open_query_session(database: str) -> dict:
    handle = store.create_handle(database=database, ttl_seconds=900)
    return {
        "query_handle": handle,
        "expires_in_seconds": 900
    }

def run_query(query_handle: str, sql: str) -> dict:
    ctx = store.load_handle(query_handle)  # Backed by Redis / Postgres
    if not ctx:
        raise ValueError("Expired or invalid query_handle. Call open_query_session again.")
    return execute_against_db(ctx, sql)

Header-based routing, MRTR retries, and cacheable lists

Three operational upgrades in the 2026-07-28 spec directly simplify production infrastructure behind Nginx, Cloudflare, or cloud load balancers:

1. Zero-body-parsing routing with Mcp-Method and Mcp-Name (SEP-2243)

Streamable HTTP requests must now carry Mcp-Method (e.g., tools/call) and Mcp-Name (e.g., search). Your reverse proxy, WAF, or rate limiter can apply per-tool quotas, route heavy tools to dedicated GPU/worker pools, and log tool usage without deserializing JSON-RPC request bodies.

Security check: Your MCP server must validate that Mcp-Method and Mcp-Name match the JSON-RPC body and reject mismatched requests. Never let a client bypass a gateway rate limit by putting a cheap tool name in the header and an expensive tool name in the payload.

2. Multi Round-Trip Requests (MRTR) replace open SSE callbacks (SEP-2322, SEP-2260)

First, SEP-2260 enforces that server-initiated requests can only happen while actively handling a client request, users are never interrupted out of nowhere. Second, SEP-2322 replaces long-lived SSE callback streams with a clean stateless retry loop:

  1. The client sends a normal tools/call request.
  2. If the tool needs user confirmation or a missing parameter, the server immediately returns an InputRequiredResult containing resultType: "input_required" and the structured questions it needs answered.
  3. The client collects the user's answer and retries the original call with the answers attached inside inputResponses.

Because no server thread or SSE socket stays pinned open waiting for a human to click "Approve," serverless functions and auto-scaling containers handle human-in-the-loop approvals cleanly.

3. Explicit caching via ttlMs and cacheScope (SEP-2549)

Responses from tools/list, prompts/list, resources/list, and resources/read now include ttlMs (freshness window in milliseconds) and cacheScope (modeled on HTTP Cache-Control). Clients know how long a tool list stays valid and whether a response is safe to cache across users versus scoped privately to one user, eliminating redundant discovery traffic on every agent turn.


Authorization hardening, first-class extensions, and deprecations

The 2026-07-28 release also locks down enterprise security, formalizes extensions, and establishes a predictable deprecation policy:

  • OAuth & OIDC security hardening:
  • RFC 9207 issuer validation (SEP-2468): Authorization servers should return the iss parameter, and clients must validate it before redeeming authorization codes to block mix-up attacks.
  • Issuer-bound credentials (SEP-2352): Client credentials are strictly bound to the issuer that minted them and cannot be reused across authorization servers.
  • CLI & desktop localhost fixes (SEP-837): Clients set application_type during Dynamic Client Registration (DCR) so auth servers stop rejecting localhost redirects.
  • DCR → CIMD shift: Dynamic Client Registration is formally deprecated in favor of Client ID Metadata Documents (CIMD). DCR remains backward-compatible for now, but new deployments should plan around CIMD.
  • First-class Extensions (SEP-2133) & JSON Schema 2020-12:
  • Extensions now use reverse-DNS identifiers negotiated via an extensions capabilities map and version independently of the core spec.
  • Long-running async operations graduate from the experimental 2025 Tasks API into the io.modelcontextprotocol/tasks extension.
  • Server-rendered interactive interfaces ship as the MCP Apps extension.
  • Tool definitions gain full JSON Schema 2020-12 support.

Deprecations and the 12-month minimum window

MCP 2026-07-28 introduces a formal deprecation lifecycle guaranteeing at least a 12-month minimum window before removal (and requiring a separate SEP to remove any deprecated feature):

Deprecated FeatureStatus in 2026-07-28Recommended Replacement
RootsAnnotation-only deprecation (≥12-month window)Explicit tool parameters, resource URIs, or server config
SamplingAnnotation-only deprecation (≥12-month window)Direct server-side calls to LLM provider APIs
LoggingAnnotation-only deprecation (≥12-month window)stderr for stdio servers; OpenTelemetry (SEP-414) for structured observability
Legacy HTTP+SSE TransportYear-long offrampStreamable HTTP with MRTR and ttlMs caching
Dynamic Client Registration (DCR)Formally deprecated (backward-compatible)Client ID Metadata Documents (CIMD)

If your team is already tracking API cutoffs across LLM vendors, fold this 12-month MCP migration window into the same calendar you use for AI model deprecation dates across Anthropic, OpenAI, and Google.


5-question migration audit for your MCP server

Open your server repository and answer these five questions before upgrading your SDKs:

#Audit QuestionWhy It Matters
1Do you read or set Mcp-Session-Id anywhere?The header and protocol-level session are retired (SEP-2567)
2Do you store per-connection state in an in-memory map or global dictionary?Round-robin load balancers will route the next call to a different replica
3Do you trigger server-initiated elicitation/create, sampling/createMessage, or roots/list over an open SSE stream?Elicitation moves to MRTR (resultType: "input_required" / inputResponses); Roots & Sampling are deprecated
4Does your server still run legacy HTTP+SSE transport only?HTTP+SSE is on a year-long offramp, move to Streamable HTTP with Mcp-Method and Mcp-Name validation
5Do your tools/list or resources/read handlers vary per user?Now that responses carry ttlMs and cacheScope, mislabeling user-specific data as shared can leak tenant metadata

Run this 20-second codebase scan

Use ripgrep (rg) across your MCP server repositories to pinpoint session coupling, legacy SSE handlers, and deprecated primitives immediately:

bash
rg -n -i \
  "Mcp-Session-Id|mcp-session-id|initialize|initialized|elicitation/create|sampling/createMessage|roots/list|notifications/message|SSEServerTransport" \
  . --glob '!node_modules/**' --glob '!.git/**' --glob '!venv/**'

When you run stateless agent servers behind a load balancer, isolating untrusted tool execution becomes just as important as removing session affinity, pair this server audit with our AI agent sandbox check (microVM vs. container).


If you maintain an active MCP server, migrate in four clean steps rather than a big-bang rewrite:

  1. Eliminate transport session coupling first: Remove Mcp-Session-Id lookups and replace any connection-keyed RAM dictionaries with explicit tool handles backed by Redis or Postgres.
  2. Upgrade to a 2026-07-28 Tier 1 SDK: Update your TypeScript, Python, Go, or C# SDK so Streamable HTTP validates Mcp-Method / Mcp-Name header-body parity and parses _meta automatically.
  3. Convert mid-call prompts and async jobs: Replace SSE callback flows with MRTR (input_required → inputResponses) and move experimental 2025 task handlers to the io.modelcontextprotocol/tasks extension.
  4. Harden caching, telemetry, and auth: Set accurate ttlMs and cacheScope values on list/read endpoints, wire _meta.traceparent into OpenTelemetry, and align OAuth flows with RFC 9207 iss validation and CIMD.

Frequently asked questions

Does MCP 2026-07-28 break existing stateful workflows like database cursors or multi-step approvals?

No, it changes where state lives. Instead of tying state to a hidden transport session (Mcp-Session-Id), your tool returns an explicit handle backed by shared storage, and the model passes that handle into subsequent tool calls. Mid-call user approvals use Multi Round-Trip Requests (input_required and inputResponses) instead of holding open SSE streams.

Are Roots, Sampling, and Logging immediately deleted in 2026-07-28?

No. They are annotation-only deprecations under MCP's new formal lifecycle policy, meaning they continue working in 2026-07-28 and in every spec version published within at least 12 months. Removing them later requires a dedicated SEP.

Why are Mcp-Method and Mcp-Name headers mandatory on Streamable HTTP?

Requiring those headers (SEP-2243) lets API gateways, WAFs, load balancers, and rate limiters inspect, route, and meter specific tool calls at the HTTP layer without buffering or parsing JSON-RPC bodies. Servers must reject any request where the headers contradict the JSON body.

Do I still need sticky sessions on Nginx or AWS ALB after upgrading?

Not for MCP itself. Once your server removes Mcp-Session-Id dependencies and moves application state into explicit handles backed by shared storage, any client request can safely hit any healthy server instance behind plain round-robin routing.


Conclusion

The 2026-07-28 MCP stateless specification is the cleanest operational upgrade the protocol has shipped since launch. Retiring the initialize handshake and Mcp-Session-Id removes sticky-session headaches, cuts down idle SSE connections, enables true horizontal scaling on ordinary HTTP infrastructure, and brings production essentials, header-based routing, response caching, W3C tracing, and OAuth hardening, into the core spec.

Start with the ripgrep audit today: find every Mcp-Session-Id reference and in-memory session map in your codebase, move workflow state to explicit handles, and upgrade your Tier 1 SDK before the 12-month deprecation offramp turns into an urgent deadline. If you want help architecting stateless MCP servers, migrating legacy SSE deployments, or hardening production AI agent infrastructure, explore our AI engineering and automation services or browse our AI Engineering Glossary.

Sources: MCP Blog, The 2026-07-28 Specification and AAIF, MCP 2026-07-28: What's Changing and How to Migrate.

NEXT IN SERIES

AI Agent Sandbox: MicroVM vs Container Check

Any AI agent that writes and executes code needs a real sandbox. Compare microVM vs container isolation, learn the auth-proxy pattern, and run a 5-point audit today.

Continue Reading