Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FtpJvZfg4nvLvtzgJTDWpB
22 lines
1.2 KiB
Plaintext
22 lines
1.2 KiB
Plaintext
# POST /mcp -- initialize, then tools/list
|
|
|
|
Request (initialize):
|
|
|
|
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"transcript-capture","version":"1.0"}}}
|
|
|
|
Response (200):
|
|
|
|
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","capabilities":{"completions":{},"logging":{},"prompts":{"listChanged":true},"resources":{"subscribe":false,"listChanged":true},"tools":{"listChanged":true}},"serverInfo":{"name":"order-lookup-server","version":"1.0.0"}}}
|
|
|
|
Request (tools/list):
|
|
|
|
{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}
|
|
|
|
Response (200):
|
|
|
|
id:59682b84-e49c-42d2-908e-a8105aa31514
|
|
event:message
|
|
data:{"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"lookup_order","title":"lookup_order","description":"Look up a single order by its ID and return its customer, status, items, and total.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orderId":{"type":"string","description":"The order ID, e.g. ORD-1001"}},"required":["orderId"]},"annotations":{"title":"","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}]}}
|
|
|
|
|