curl --request POST \
--url https://api.peel.sh/mcp/apis/{apiId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": {
"name": "example-client",
"version": "1.0.0"
}
}
}
'
{
"jsonrpc": "2.0",
"result": {},
"id": "<string>"
}{}{}{}MCP and OAuth
Call one API's own MCP server, whose tools are that API's endpoints
POST
/
mcp
/
apis
/
{apiId}
curl --request POST \
--url https://api.peel.sh/mcp/apis/{apiId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": {
"name": "example-client",
"version": "1.0.0"
}
}
}
'
{
"jsonrpc": "2.0",
"result": {},
"id": "<string>"
}{}{}{}Authorizations
OAuthBearerAuthApiKeyAuth
Headers
2026-07-28 clients call server/discover and need no initialize; when sent, this header and Mcp-Method must match the body. Older clients use the version negotiated by initialize. If omitted, the server falls back to 2025-03-26.
Available options:
2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 Body
application/json
⌘I