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:
Ankur
2026-11-22 02:18:48 +05:30
co-authored by Claude Sonnet 5.5
parent 3aa20a1dce
commit 26e0a3875a
34 changed files with 1922 additions and 0 deletions
@@ -0,0 +1,23 @@
# The 2.2.0 modern SDK client against two 2026-07-28 instances behind round-robin
discover: supportedVersions=[2026-07-28] ttlMs=300000 cacheScope=PUBLIC
tools: [cancel_order, order_status]
order_status #1: order A-100 is PACKED (answered by instance M1)
order_status #2: order A-100 is PACKED (answered by instance M2)
order_status #3: order A-100 is PACKED (answered by instance M1)
order_status #4: order A-100 is PACKED (answered by instance M2)
cancel_order (the client answered the confirmation itself): order A-102 cancelled (answered by instance M2)
What the balancer saw, in order:
POST server/discover
POST tools/list
POST tools/call
POST tools/call
POST tools/call
POST tools/call
POST tools/call
POST tools/call
total requests: 8
# Same client and balancer, but the instances have no shared request-state-secret:
cancel_order: io.modelcontextprotocol.modern.McpException
Invalid or expired requestState