Add mcp-stateless module: migrate an MCP server from the 2025 stateful protocol to 2026-07-28 on Spring AI 2.1.0
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4tJPXfq5UyiLSFr49
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
3aa20a1dce
commit
26e0a3875a
@@ -0,0 +1,6 @@
|
||||
# What each SDK client says when it meets a server of the other generation
|
||||
2025-era client -> modern server: java.lang.RuntimeException
|
||||
RuntimeException: Client failed to initialize by explicit API call
|
||||
McpTransportException: Bad Request. Status code:400, response body: {"jsonrpc":"2.0","id":"<id>","error":{"code":-32020,"message":"Missing required header: Mcp-Method"}}
|
||||
modern client -> 2025-era server: io.modelcontextprotocol.modern.client.transport.McpHttpStatusException
|
||||
HTTP 400 from http://localhost:<port>/mcp: {"jsonRpcError":{"code":-32601,"message":"Session ID missing"}... (stack trace omitted)
|
||||
Reference in New Issue
Block a user