Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
mcpdoctor — read-only CLI for inspecting MCP & x402 endpoints. One `inspect` command: 402 payment document (v1/v2), well-known discovery manifests, response SHA-256. Not an MCP server — the preflight/debugging tool for AI-agent payment endpoints.
From the repo.
mcpdoctor is a read-only CLI for inspecting MCP and x402 endpoints.
Point it at a URL, get one PASS / FAIL / UNKNOWN report:
Payment-Required / X-Payment-Required / WWW-Authenticate headers or
the response body), in both x402 v1 (accepts[]) and v2 (x402.accepts)
shapes, with every scheme / network / asset / amount / payTo field checked;/.well-known/mcp/server.json and
/.well-known/x402 are reachable, with a SHA-256 of each;mcpdoctor is not an MCP server and does not implement the MCP protocol. It is the endpoint inspector you run before pointing an MCP client or an x402 buyer at an endpoint — a preflight/debugging tool for AI-agent payment infrastructure. Zero dependencies. Node ≥ 18. Never touches keys, never pays.
npm install -g @eidonze/mcpdoctor # or run without installing:
npx @eidonze/mcpdoctor inspect <url>
mcpdoctor inspect <url> [--method=GET|POST] [--format=json|markdown]
| Option | Default | Description |
|---|---|---|
--method | GET | HTTP verb for the probe (POST sends {}) |
--format | markdown | json for CI / machine-readable reports |
--json | — | shorthand for --format=json |
Exit codes: 0 PASS · 1 FAIL · 2 UNKNOWN (network/timeout) · 3 usage error.
Inspecting an MCP endpoint that is free (no payment gate) — the tool reports the 200 instead of a 402, and still verifies the discovery manifests:
{
"endpoint": "https://agenttoll-receipts.app.workbuddy.host/mcp",
"method": "POST",
"finalStatus": "FAIL",
"http": { "status": 200, "elapsedMs": 2830, "bodyBytes": 82,
"bodySha256": "598dc097dcca1e573c742100863899c00724a021b421a5bb49952d49fec6b4f4" },
"findings": [
{ "status": "FAIL", "code": "NO_402", "message": "Expected HTTP 402, received 200" }
],
"metadata": [
{ "path": "/.well-known/mcp/server.json", "status": 200, "reachable": true }
]
}
Inspecting the official x402 demo endpoint — it does return 402, but ships a payment document mcpdoctor cannot parse, which is exactly the class of silent breakage this CLI exists to catch:
{
"endpoint": "https://x402.org/protected",
"finalStatus": "FAIL",
"http": { "status": 402 },
"headers": { "paymentRequired": true },
"findings": [
{ "status": "FAIL", "code": "NO_ACCEPTS",
"message": "No recognizable payment requirement found" }
]
}
initialize, no tools/list — mcpdoctor
checks what an endpoint advertises (402 documents, discovery manifests),
not a full MCP handshake.PASS means the observed 402 document had recognizable, complete fields —
it is not a security or payment-success certification.We ship an x402 service ourselves (ReceiptRail) and hit every way a paid endpoint can silently break:
402;accepts[] can shadow the real payment document.Each check in mcpdoctor maps to a failure mode we actually hit in production.
Read-only diagnostics for AI agents on Web3 — hub & docs · ReceiptRail (live MCP service) · npm: @eidonze/mcpdoctor
MIT licensed. Known limitations are documented, not hidden.
Replace {MCP_ENDPOINT_URL} with this MCP’s endpoint URL (from its repo or docs above). No API key — you connect directly.
Tool
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "{MCP_ENDPOINT_URL}"
}
}
}Paste into mcpServers in the config file. Restart Cursor after saving.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.