Skip to content

Commit 1f347a3

Browse files
Fix: Remove unsupported 2024-11-05 protocol version from Streamable HTTP transport
The MCP 2024-11-05 protocol predates the Streamable HTTP transport and only defines stdio and SSE transports. Listing it in HttpServletStreamableServerTransportProvider.protocolVersions() is incorrect since the transport cannot actually handle sessions initialized via that protocol version. Fixes modelcontextprotocol#750 Co-authored-by: Copilot <[email protected]>
1 parent 26304a7 commit 1f347a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ private HttpServletStreamableServerTransportProvider(McpJsonMapper jsonMapper, S
168168

169169
@Override
170170
public List<String> protocolVersions() {
171-
return List.of(ProtocolVersions.MCP_2024_11_05, ProtocolVersions.MCP_2025_03_26,
172-
ProtocolVersions.MCP_2025_06_18, ProtocolVersions.MCP_2025_11_25);
171+
return List.of(ProtocolVersions.MCP_2025_03_26, ProtocolVersions.MCP_2025_06_18,
172+
ProtocolVersions.MCP_2025_11_25);
173173
}
174174

175175
@Override

0 commit comments

Comments
 (0)