x402-x402fix / tree / README.md ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)

x402fix: x402 endpoint doctor

x402fix logo

Point x402fix at any paid x402 URL and it tells you, in order of severity, what will break payments or keep the route out of the Bazaar / x402scan, and how to fix each problem. It probes the route without paying: GET, HEAD, an empty POST, POST {} and a CORS preflight. Then it grades the route A to F.

Live API: https://api.youraitools.co/x402fix (origin: https://x402fix.agentgate.workers.dev)

Route Price (USDC) Returns
GET /v1/preview?url= free, 10/min grade, score, status, counts, detected versions and networks
GET|POST /v1/lite?url= $0.005 every check plus a numbered fix list
GET|POST /v1/check?url=&framework=hono $0.02 lite + CDP verdict, payee checks, docs drift, generated Bazaar block and accepts
GET|POST /v1/site?url=https://origin $0.05 finds up to 8 paid routes from /.well-known/x402 and /openapi.json, grades each, checks doc drift

Payment: x402 v2 or v1, exact USDC on Base, Polygon, Arbitrum One or Solana. Prepaid credits (Authorization: Bearer) are also accepted, via https://api.youraitools.co/credits.

MCP

CI

curl -s "https://api.youraitools.co/x402fix/v1/preview?url=https://your.api/v1/paid" | jq -e '.status != "broken"'

Notes

Develop: npm test; npm start (Node, port 8795); npx wrangler deploy. MIT.


agentgate-source: code mirror on Cloudflare Pages. All repos