Files

15 lines
794 B
Plaintext

$ 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}}