Handles JSON-RPC requests for the Model Context Protocol (MCP). Supports MCP methods for discovering x402 payment resources and tools.
A JSON-RPC 2.0 request for the Model Context Protocol.
MCP response.
A JSON-RPC 2.0 response for the Model Context Protocol.
JSON-RPC version.
2.0 "2.0"
Request identifier (matches the request ID, null for notifications).
1
The result of the method call (present on success).
{ "tools": [] }JSON-RPC 2.0 error object.
{
"code": -32600,
"message": "Invalid Request",
"data": {}
}