## MCP

The MCP endpoint is `https://api.dexra.dev/mcp`, over Streamable HTTP. `tools/list` returns every tool with its JSON schema and price; `tools/call` runs one and returns the answer as text and as `structuredContent`.

- With a key, paid calls use your credits. The answer's `_meta["dexra/subscription"]` carries the plan and the credits left.
- When a call needs a payment, the result is an error whose `structuredContent` holds the x402 requirements and whose text says why (credits used up, Free not covering the call, email not confirmed). Pay one of the `accepts` and repeat the call with the payment in `params._meta["x402/payment"]` or a `Payment-Signature` header.
- Past the per-second limit, the result is an error with `retry-after` in its meta; wait and retry.
- A JSON-RPC batch holds at most 20 messages.

Source: https://dexra.dev/docs/mcp
