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 -- prompts/get summarize_order
|
||||
|
||||
Request:
|
||||
|
||||
{"jsonrpc":"2.0","id":5,"method":"prompts/get","params":{"name":"summarize_order","arguments":{"orderId":"ORD-1002"}}}
|
||||
|
||||
Response (200):
|
||||
|
||||
id:59682b84-e49c-42d2-908e-a8105aa31514
|
||||
event:message
|
||||
data:{"jsonrpc":"2.0","id":5,"result":{"messages":[{"role":"assistant","content":{"type":"text","text":"Call the lookup_order tool for order ORD-1002, then write a single short paragraph a customer support agent could paste into a reply: state the order status in plain language, list the items, and mention the total. Do not invent any detail the tool did not return."}}]}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user