Skip to content
mc.creative

Blog / AI

MCP goes stateless: What the 2026-07-28 specification changes

6 min readMihnea Cojocaru

  • AI
  • Engineering
Isometric illustration with a violet MCP block at the centre

The Model Context Protocol is saying goodbye to sessions. With the 2026-07-28 specification, an MCP server runs as a perfectly ordinary HTTP endpoint. What changes, what goes away and what it means for your own servers.

On LinkedIn I stumbled across a post that pointed to a Cloudflare article about the new MCP specification. I found the idea behind it exciting enough to dig deeper, and this article grew out of that research.

Anyone who has built an MCP server over the past year and a half knows the feeling: locally over STDIO everything is nice and simple, but as soon as the server needs to go online, a whole lot of infrastructure suddenly comes with it. Sticky sessions, open streams, message replay. For something that, in the end, mostly just calls a tool and returns a result.

With the 2026-07-28 specification, that is over. MCP is now a stateless protocol, and the official SDKs for TypeScript, Python, Go and C# have been reworked to match. One question stayed with me throughout the research: What does this mean for someone who runs their own MCP servers?

Where the problem came from

MCP was originally created for local applications. The first transport was STDIO: the client starts the server as a process, and both keep the connection open for as long as they run. Locally, that works brilliantly.

When MCP servers went remote, this model was carried over to the web almost one to one. It started with an initialize/initialized handshake, the server handed out an Mcp-Session-Id, and every further request had to find its matching state again. In practice, that meant:

  • Autoscaling had to preserve active sessions.
  • Deployments had to drain or migrate sessions.
  • If an instance went away, the client had to reconnect or was left with a broken session.

Serverless was possible, but only with extra coordination for a session that most calls would never have needed.

No more sessions

The new specification removes the mandatory handshake, the Mcp-Session-Id header and protocol sessions from the normal request flow. Every request carries what it needs itself: protocol version, client identity and client capabilities. If you want to inspect a server first, you can optionally call server/discover.

This turns an MCP server into what it mostly was anyway: an HTTP endpoint. A request comes in, a tool, prompt or resource runs, the result goes out. Nothing needs to be stored in between. That makes deployment, scaling and maintenance much simpler, without losing any functionality.

Elicitation without an open stream

Sometimes a server needs one more piece of information from a human in the middle of a call: approval for a production deployment, a colour choice, confirmation of a refund. MCP calls this elicitation.

Until now, this depended on an open stream over which the server could send elicitation/create to the client. That meant trade-offs between stream handling, cost and request timeouts.

New are Multi Round-Trip Requests (MRTR). The server responds with an input_required result and describes what it is missing. The client collects the answer and sends the operation again with that input. Neither side has to hold a connection in between.

This is a breaking change compared to the old elicitation. But I think it is the right call: the pattern is much easier to implement, so more servers will probably actually use it.

HTTP infrastructure understands MCP

MCP requests are JSON-RPC over HTTP. Until now, though, what a request actually did was only stated in the JSON body. A gateway had to parse the body to tell whether tools/list or a tool call was passing through.

Now, with Streamable HTTP, the Mcp-Method and Mcp-Name headers are mandatory:

POST /mcp HTTP/1.1
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: search
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": { "q": "otters" }
  }
}

Gateways, rate limiters and WAFs can now decide based on headers, without parsing arbitrary JSON. Per-method rules or per-tool metrics can be built with the same tools as anywhere else on the web.

On top of that come cache hints (ttlMs, cacheScope) for tools/list, prompts/list, resources/list and resources/read. Tool catalogues are also sorted deterministically. That sounds like a detail, but it is practical: clients can reuse the catalogue, and prompt caches at the model provider stay stable across reconnects.

Authorization gets stricter

Client registration now follows a clear order:

  • Pre-registered clients, when server and client already know each other.
  • Client ID Metadata Documents (CIMD) for dynamic registrations.
  • Dynamic Client Registration (DCR) only as a fallback. DCR is deprecated for new implementations and is set to be removed after summer 2027.

MCP also adopts RFC 9207 (Issuer Identification): the authorization server includes iss in its response, and the client compares it with the issuer it determined beforehand. This way, responses from different issuers can no longer be mixed up. And clients send the canonical server URI as resource according to RFC 8707. Tokens are issued for exactly that audience and accepted only by it.

A lifecycle for features

I find the new formal feature lifecycle almost more important than the technical changes. Features are Active, Deprecated or Removed. Anything deprecated must remain available for at least twelve months.

Deprecated in this release: Roots, Sampling, Logging, Dynamic Client Registration and the old HTTP+SSE transport. If you use them, you get a clear window for migration instead of a surprise.

New ideas land in the extensions framework first instead of going straight into the core. MCP Apps and Enterprise-Managed Authorization are already extensions, and Tasks for long-running work have been moved there. This lets the core become stable while experimentation continues around it.

What a server looks like now

A minimal server with the official TypeScript SDK, here on Cloudflare Workers with the Agents SDK:

import { McpServer } from '@modelcontextprotocol/server'
import { createMcpHandler } from 'agents/mcp/server'
import { z } from 'zod'

function createServer() {
  const server = new McpServer({ name: 'hello-server', version: '1.0.0' })

  server.registerTool(
    'hello',
    {
      description: 'Return a greeting',
      inputSchema: { name: z.string().optional() },
    },
    async ({ name }) => ({
      content: [{ type: 'text', text: `Hello, ${name ?? 'World'}!` }],
    }),
  )

  return server
}

export default {
  fetch(request, env, ctx) {
    return createMcpHandler(createServer)(request, env, ctx)
  },
}

No Durable Object, no session management, just a fetch function. You only need state when your own application needs it, no longer because the protocol demands it.

Worth mentioning: the TypeScript SDK is now built on web standards instead of Node.js. As a result, it runs cleanly on Bun, Deno and Workers, and the bundles are smaller.

Migration

The good news first: the /mcp endpoint accepts both the new protocol and stateless requests from 2025 Streamable HTTP clients. So most clients will reconnect without any configuration changes.

It only gets more involved for servers that genuinely rely on sessions, server-to-client requests or standalone streams. The recommended path:

  • Add a new, strictly stateless route next to the existing one.
  • Move features over step by step.
  • Let active sessions run out.
  • Remove the old route within the deprecation period.

My takeaway

The criticism of MCP was justified: for the vast majority of calls, the session infrastructure was pure overhead. With 2026-07-28, an MCP server becomes an ordinary HTTP workload that can be scaled, secured and observed with the usual tools. The fact that Sentry and Linear had the new version in production even before it was finalised suggests that the switch works in practice.

For your own servers, this mainly means less infrastructure, and asking the human for input via MRTR when needed instead of over open streams.

Mihnea Cojocaru at the office

Mihnea Cojocaru

Full-stack developer | sound engineer in Bonn with high standards for clean engineering and good usability.