# MCP goes stateless, and Quarkus already implements it

DevFeed: [MCP goes stateless, and Quarkus already implements it](<https://devfeed.tech/articles/mcp-goes-stateless-and-quarkus-already-implements-it-58518.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/mcp-stateless/>)

Author: Kevin Dubois (https://twitter.com/kevindubois)

Published: 2026-09-21T00:00:00Z

Content type: article

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [stateless](<https://devfeed.tech/topics/stateless.md>), [Remote Procedure Call (RPC)](<https://devfeed.tech/topics/rpc.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [JSON](<https://devfeed.tech/topics/json.md>), [sessions](<https://devfeed.tech/topics/sessions.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [client](<https://devfeed.tech/topics/client.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [http](<https://devfeed.tech/tags/http.md>), [json-rpc](<https://devfeed.tech/tags/json-rpc.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [rpc](<https://devfeed.tech/tags/rpc.md>), [sessions](<https://devfeed.tech/tags/sessions.md>), [stateless](<https://devfeed.tech/tags/stateless.md>), [versioning](<https://devfeed.tech/tags/versioning.md>)

## AI overview

This article explains how the July 28, 2026 revision of the Model Context Protocol removes stateful session handshakes in favor of self-contained JSON-RPC requests. It describes how Quarkus MCP Server 2.0.x supports the change, including metadata, version negotiation, capability discovery, and multi-round-trip requests.

## Source excerpt

If you've been running Model Context Protocol (MCP) servers, you might have bumped into the limitations of stateful sessions. Until recently, a client had to perform an initialize handshake, get a session ID, and stick to that specific server instance for the duration of the connection. For a single-instance setup, this is fine. But the moment you move to a distributed environment, you're forced into using sticky sessions or a shared session store just to keep the connection alive. It's an unnecessary hurdle for what should essentially be a set of HTTP calls. The 2026-07-28 revision of the MCP specification finally solves this by going stateless, and the 2.0.x line of the Quarkus MCP Server already supports these changes out of the box. Here is a look at how the protocol has evolved in this latest version and how to use it in Quarkus. Moving from sessions to self-contained requests The core shift in the July 28 revision is the removal of the stateful session handshake. Instead of negotiating a session once, every request is now a self-contained JSON-RPC message. Everything the server needs -- protocol version, client identity, and capabilities -- is now packed into a _meta field within the request. If you're using Streamable HTTP, this metadata is mirrored in headers (MCP-Protocol-Version, Mcp-Method, and Mcp-Name) so the server can route or reject the request before it even parses the body. Since there is no session state to track, any server instance can handle any request. An MCP server is now as easy to scale horizontally as any other stateless REST API. What about versioning? Negotiation has also moved to the request level. If a server doesn't recognize the version requested in a specific call, it responds with an UnsupportedProtocolVersionError and lists its supported versions. For clients that want to be proactive, there is now a server/discover RPC to check capabilities upfront. Multi Round-Trip Requests Going stateless creates one obvious problem though: how