Skip to main content
POST
Handle MCP JSON-RPC request

Body

application/json

A JSON-RPC 2.0 request for the Model Context Protocol.

jsonrpc
enum<string>
required

JSON-RPC version, must be "2.0".

Available options:
2.0
Example:

"2.0"

method
string
required

The MCP method to invoke.

Example:

"tools/list"

id

Request identifier.

Example:

1

params
object

Optional parameters for the method.

Example:

Response

MCP response.

A JSON-RPC 2.0 response for the Model Context Protocol.

jsonrpc
enum<string>
required

JSON-RPC version.

Available options:
2.0
Example:

"2.0"

id

Request identifier (matches the request ID, null for notifications).

Example:

1

result
object

The result of the method call (present on success).

Example:
error
object

JSON-RPC 2.0 error object.

Example: