Handle MCP JSON-RPC request
Changed onHandles JSON-RPC requests for the Model Context Protocol (MCP). Supports MCP methods for discovering x402 payment resources and tools.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP none
Request body
A JSON-RPC 2.0 request for the Model Context Protocol.
JSON-RPC version, must be "2.0".
Request identifier.
The MCP method to invoke.
Optional parameters for the method.
Example request
{
"jsonrpc": "2.0",
"method": "tools/list",
"params": {}
}Response
MCP response.
A JSON-RPC 2.0 response for the Model Context Protocol.
JSON-RPC version.
Request identifier (matches the request ID, null for notifications).
The result of the method call (present on success).
JSON-RPC 2.0 error object.
Example response
{
"jsonrpc": "2.0",
"result": {
"tools": []
},
"error": {
"code": -32600,
"message": "Invalid Request",
"data": {}
}
}Changes
- warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status
- warning
- warning
added the new
entity_not_configured_for_top_upenum value to theerrorTyperesponse property for the response status
1 more change in this revision
- warning