Skip to main content
POST
/
v2
/
x402
/
discovery
/
mcp
Handle MCP JSON-RPC request
curl --request POST \
  --url https://api.cdp.coinbase.com/platform/v2/x402/discovery/mcp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "id": 1,
  "params": {}
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "tools": []
  },
  "error": {
    "code": -32600,
    "message": "Invalid Request",
    "data": {}
  }
}

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:
{ "tools": [] }
error
object

JSON-RPC 2.0 error object.

Example:
{
"code": -32600,
"message": "Invalid Request",
"data": {}
}