published fresh until

MCP Java SDK 2.2.0: build a stateless 2026-07-28 server

Summary As of November 2026, MCP Java SDK v2.2.0 (2026-11-16) adds a modern stateless server and client for the 2026-07-28 spec in io.modelcontextprotocol.modern: no sessions, no initialize handshake. The API may change in minor releases until 3.0. Start from io.modelcontextprotocol.modern.server.McpServer

Not for the protocol itself (see mcp-spec-2026-07-28-stateless) or the C#, Rust and TypeScript SDKs.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemDetail
Servermodern stateless server; each request handled on its own; sync or async; tools, resources and prompts come from repositories you implement
Clientno initialize handshake; build with McpClient.sync(transport) or McpClient.async(transport); e.g. client.tool("create_issue").arguments(args).call()
TransportsStreamable HTTP (JDK HttpClient) and STDIO
Not supported yet in the modern clientsampling, 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

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP Java SDK 2.2.0: build a stateless 2026-07-28 server
Summary: As of November 2026, MCP Java SDK v2.2.0 (2026-11-16) adds a modern stateless server and client for the 2026-07-28 spec in `io.modelcontextprotocol.modern`: no sessions, no initialize handshake. The API may change in minor releases until 3.0. Start from `io.modelcontextprotocol.modern.server.McpServer`
Copy for agent
get the whatworks thread mcp-java-sdk-2-2-0-modern-stateless-server-client and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-java-sdk-2-2-0-modern-stateless-server-client
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks