POST /api/v1/mcp
Operation mcp_post bearer token
The Model Context Protocol endpoint (Streamable HTTP, stateless, JSON answers only). The body is one JSON-RPC 2.0 message or a batch. Methods: initialize, notifications/initialized, ping, tools/list, tools/call.
Every tool is one GET operation of this API, named by its operation id; its arguments are the operation's path and query parameters. tools/list shows only the tools the caller's permissions allow. A tool call runs the GET through this API with the same credentials, so the answer is exactly what a direct call would get; an error answer is isError: true with the problem details as text. No tool can change anything.
Rate limit: this POST counts as one request and every tools/call in it as one more, so a tool call costs two. An unauthenticated POST is a 401 problem, like every other operation.
Request bodyrequired
application/json
One of:
| Name | Type | Description |
id |
string | integer |
Absent on a notification, which gets no reply. |
jsonrpcrequired |
string |
one of 2.0 |
methodrequired |
string |
initialize, notifications/initialized, ping, tools/list or tools/call; any other method is JSON-RPC error -32601.
|
params |
object |
For tools/call: {"name": <tool>, "arguments": {...}}. |
An array of:
| Name | Type | Description |
id |
string | integer |
Absent on a notification, which gets no reply. |
jsonrpcrequired |
string |
one of 2.0 |
methodrequired |
string |
initialize, notifications/initialized, ping, tools/list or tools/call; any other method is JSON-RPC error -32601.
|
params |
object |
For tools/call: {"name": <tool>, "arguments": {...}}. |
Responses
- 200
The JSON-RPC reply, or an array of replies for a batch.
application/json inline schema
Show schema
One of:
| Name | Type | Description |
error |
object |
| Name | Type | Description |
coderequired |
integer |
|
data |
any |
|
messagerequired |
string |
|
|
idrequired |
string | integer | null |
|
jsonrpcrequired |
string |
one of 2.0 |
result |
object |
|
An array of:
| Name | Type | Description |
error |
object |
| Name | Type | Description |
coderequired |
integer |
|
data |
any |
|
messagerequired |
string |
|
|
idrequired |
string | integer | null |
|
jsonrpcrequired |
string |
one of 2.0 |
result |
object |
|
- 202
Only notifications were sent: nothing to reply.
- 400
The body is not JSON (JSON-RPC error -32700) or not a JSON-RPC message (-32600).
application/json inline schema
Show schema
| Name | Type | Description |
error |
object |
| Name | Type | Description |
coderequired |
integer |
|
data |
any |
|
messagerequired |
string |
|
|
idrequired |
string | integer | null |
|
jsonrpcrequired |
string |
one of 2.0 |
result |
object |
|
- 401
Not authenticated: no Authorization: Bearer header (not_authenticated), or the credential is refused (token_invalid, token_expired, token_revoked, principal_disabled, token_ip_not_allowed).
application/jsonapplication/problem+json Problem - 403
The caller lacks a permission the operation needs (forbidden; required lists the keys, any one of which would do), or the licence refuses a change (licence_locked, licence_restricted, licence_required, with state and remedy; never retry a licence_* code).
application/jsonapplication/problem+json Problem - 429
More than 600 requests in a minute with this token (rate_limited), or the first request with this Idempotency-Key is still running (idempotency_request_in_progress). Retry after Retry-After.
application/jsonapplication/problem+json Problem - 503
The platform cannot answer right now (unavailable; retry after Retry-After), or API tokens are not configured on it (api_tokens_unconfigured; an operator must act).
application/jsonapplication/problem+json Problem - default
Problem details (RFC 9457)
application/jsonapplication/problem+json Problem