{
  "$schema": "https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json",
  "version": "1.0",
  "protocolVersion": "2025-06-18",
  "serverInfo": {
    "name": "x402fix",
    "title": "x402fix",
    "version": "0.1.0"
  },
  "description": "x402 endpoint doctor for sellers: point it at a paid x402 URL and get a graded A-F list of what will break payments or Bazaar / x402scan listing (402 on GET/HEAD/POST, CORS, v2 header and v1 body, CAIP-2, USDC asset and EIP-712 domain, Solana feePayer, Bazaar schema, multichain drift), with paste-ready fixes, a facilitator validate verdict and a generated Bazaar block. Unpaid probes only.",
  "instructions": "Call check_x402_endpoint with the URL of a paid x402 route after deploying or changing it. Returns a grade and counts; the fix list is on the paid x402 routes.",
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://api.youraitools.co/x402fix/mcp"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    }
  },
  "pricing": "$0.005 lite / $0.02 check / $0.05 site USDC per call via x402, or prepaid credits (https://api.youraitools.co/credits/).",
  "documentation": "https://api.youraitools.co/x402fix/",
  "openapi": "https://api.youraitools.co/x402fix/openapi.json",
  "x402": "https://api.youraitools.co/x402fix/.well-known/x402",
  "hub": "https://api.youraitools.co/mcp/hub",
  "contact": "hello@youraitools.co",
  "tools": [
    {
      "name": "check_x402_endpoint",
      "title": "Is my x402 endpoint correct?",
      "description": "x402 endpoint doctor: probes a paid x402 URL unpaid (never pays) and grades it A-F: 402 on GET / HEAD / empty POST, CORS, v2 PAYMENT-REQUIRED header and v1 body, accepts (USDC asset, EIP-712 domain, Solana feePayer, amounts, payTo), multichain consistency and the discovery metadata. Free preview tier: grade, score, status and counts. The paid x402 endpoints /v1/lite ($0.005), /v1/check ($0.02, adds an external validation verdict, payee checks and generated fixes) and /v1/site ($0.05, whole origin) return the fix list.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Full https URL of the paid x402 route (site tier: the origin or API base URL)"
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST"
            ],
            "description": "Method your paid route uses (default: from its discovery metadata, else GET)"
          }
        },
        "required": [
          "url"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": true,
        "idempotentHint": true
      }
    }
  ]
}