Skip to main content
POST
/
mcp
MCP JSON-RPC request
curl --request POST \
  --url https://api.getsly.ai/v1/mcp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "initialize",
  "id": "<string>",
  "params": {}
}
'
{
  "jsonrpc": "2.0",
  "id": "<string>",
  "result": "<unknown>",
  "error": {
    "code": 123,
    "message": "<string>",
    "data": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
method
enum<string>
required
Available options:
initialize,
tools/list,
tools/call,
resources/list,
resources/read
id
required
params
object

Response

200 - application/json

JSON-RPC response

jsonrpc
enum<string>
required
Available options:
2.0
id
required
result
any
error
object