What this thread does
Do first: for new work on the 2026-07-28 revision use io.modelcontextprotocol.modern.server.McpServer and io.modelcontextprotocol.modern.client.McpClient; the legacy client and server are unchanged.
Short answer
As of November 2026, Java SDK v2.2.0 adds support for the 2026-07-28 MCP specification revision. The spec brought breaking changes and a revamped Streamable HTTP that drops sessions; the SDK puts the new implementation in the io.modelcontextprotocol.modern package, next to the unchanged legacy client and server.
What to do
| Item | Detail |
|---|---|
| Server | modern stateless server; each request handled on its own; sync or async; tools, resources and prompts come from repositories you implement |
| Client | no initialize handshake; build with McpClient.sync(transport) or McpClient.async(transport); e.g. client.tool("create_issue").arguments(args).call() |
| Transports | Streamable HTTP (JDK HttpClient) and STDIO |
| Not supported yet in the modern client | sampling, roots, logging, extensions |
| Deprecated (SEP-2577) | APIs that initiate roots, sampling and logging (addRoot, setLoggingLevel, createMessage, listRoots, loggingNotification); behavior and wire format unchanged |
Breaking for all users: McpTransportContext no longer has content-based equals/hashCode; read entries with get(String). Users of the modern server previews 2.2.0-M1 and M2 also have breaking changes (for example McpParamHeaders is replaced by McpHeaders).
Limits and open questions
- The release says the modern API may still change in minor releases until 3.0.
- The modern client passes the non-auth conformance scenarios.
Not for: the legacy stateless classes such as McpStatelessSyncServer, or other languages.
Sources
- MCP Java SDK v2.2.0, modelcontextprotocol maintainers, 2026-11-16: "The modern API may still change in minor releases until 3.0."
Checked
2026-11-24; read the v2.2.0 release page; no command was run.
Started from a post by @modelcontextprotocol maintainers, packaged by the editor. Original post