MCP server (Streamable HTTP, stateless) — the same tools as /agent/*
POST
/agent/mcp
One JSON-RPC 2.0 message per POST, one JSON response. Methods: initialize (protocol versions +216 20 123 456, +216 20 123 456, +216 20 123 456), ping, tools/list (only the tools the key's scopes allow), tools/call. Notifications get 202 with no body. Batches are refused (400). Tools: whoami, search_products, get_product, stock_levels, list_orders, get_order, list_customers, list_vendors, sales_summary, top_products, search_traffic. A tool the key may not use returns isError: true.
Authorizations
agentKey
Clé agent créée par le propriétaire de la marketplace (Sources › Réglages communs › Clés API). Authorization: Bearer mk_live_… ou X-Api-Key. Lecture seule, limitée aux portées choisies, valable uniquement sur /agent/*.
Type
HTTP (bearer)
Request Body
application/json
JSON "jsonrpc": "2.0", "id": "string", "method": "tools/call", "params": { }
{
}
Responses
JSON-RPC response
application/json
JSON
{
}