Fix: Remove unsupported 2024-11-05 protocol version from Streamable HTTP transport by rameshreddy-adutla · Pull Request #847 · modelcontextprotocol/java-sdk
Summary
Removes MCP_2024_11_05 from the protocolVersions() list in HttpServletStreamableServerTransportProvider.
Problem
The MCP 2024-11-05 protocol specification predates Streamable HTTP transport — it only defines stdio and SSE transports. As confirmed by @chemicL, listing it in the Streamable HTTP transport provider is incorrect since that transport cannot handle sessions initialized via the 2024-11-05 protocol.
Fix
Removed ProtocolVersions.MCP_2024_11_05 from the list, keeping only the versions that support Streamable HTTP:
2025-03-262025-06-182025-11-25
The SSE transport provider (HttpServletSseServerTransportProvider) correctly lists only MCP_2024_11_05, so this fix aligns the transports with their respective protocol capabilities.
Fixes #750