Add mcp-sdk-plain module: MCP server on the plain Java SDK 2.1.0 over stdio and Streamable HTTP, fat jar, wire transcripts and a Spring AI client

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b5oh78z7gcH6QkxafF
This commit is contained in:
Claude
2026-11-08 18:28:07 +00:00
parent 7c20ea1370
commit 58eaf4c2e1
29 changed files with 864 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
$ curl -i -X POST http://127.0.0.1:18089/mcp (initialize)
HTTP/1.1 200 OK
Content-Type: application/json;charset=utf-8
Mcp-Session-Id: <session-id>
Transfer-Encoding: chunked
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","capabilities":{"logging":{},"resources":{"subscribe":false,"listChanged":true},"tools":{"listChanged":true}},"serverInfo":{"name":"notes-server","version":"1.0.0"},"instructions":"Tools: word_stats, divide, explode. Resources: notes://readme and notes://{name}."}}
$ curl -X POST http://127.0.0.1:18089/mcp -H 'Mcp-Session-Id: <session-id>' (tools/call word_stats)
id: a76ab1b0-cb40-43f2-9d82-db0fa6c7f29c
event: message
data: {"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"words=3 chars=13 longest=three"}],"isError":false}}