Add mcp-server module: order-lookup service exposed via @McpTool/@McpResource/@McpPrompt over Streamable HTTP
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FtpJvZfg4nvLvtzgJTDWpB
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# POST /mcp -- tools/call lookup_order, an order ID that does not exist
|
||||
|
||||
Request:
|
||||
|
||||
{"jsonrpc":"2.0","id":6,"method":"tools/call","params":{"name":"lookup_order","arguments":{"orderId":"ORD-9999"}}}
|
||||
|
||||
Response (200), note isError:true inside a 200 -- HTTP itself never fails for a tool error:
|
||||
|
||||
id:59682b84-e49c-42d2-908e-a8105aa31514
|
||||
event:message
|
||||
data:{"jsonrpc":"2.0","id":6,"result":{"content":[{"type":"text","text":"No order with ID ORD-9999\nNo order with ID ORD-9999"}],"isError":true}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user