Skip to main content
The default endpoint is https://mcp.pxxl.app/mcp. The SDK sends JSON-RPC 2.0 requests with your API key and protocol version 2025-06-18, and returns the inner result. To connect an AI client to Pxxl instead, see MCP. In Node.js, pxxl.mcp uses the client’s apiKey. Pass mcpApiKey or mcpEndpoint to the Pxxl constructor to change either one.

MCP operations

In Go, Python, and Rust, one method sends any JSON-RPC call:

List tools

Call a tool

string
required
Tool name returned by listTools().
object
default:"{}"
Arguments validated against the tool input schema.
MCP errors can arrive as a JSON-RPC error or as isError: true inside a tool result. The SDK throws for JSON-RPC errors. Check isError yourself for tool-level failures. pxxl.mcp throws a plain Error with the JSON-RPC message. The flat pxxl.mcpRPC(method, params?, endpoint?) method throws PxxlAPIError instead. Go returns an error, Python raises RuntimeError for a JSON-RPC error and PxxlAPIError for an HTTP error, and Rust returns PxxlError::Api.