# Using the MCP server

## Endpoint

    POST /mcp      JSON-RPC 2.0
    tools/list     paged discovery
    tools/call     invoke one tool (same 402 path as HTTP)

## Paging

tools/list accepts params.limit, cursor, category, query. No params returns the whole catalog
(several hundred KB) - page it. A cursor is bound to the filters that produced it.

## Payment

A tools/call that needs payment answers 402 the same way HTTP does. Auto-pay is the client's
decision, not a default we set.

## Which to use

- MCP runtime -> /mcp (same catalog with tool schemas)
- plain HTTP -> /openapi.json + /x402/<id>
