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