x402 Conformance

v1.6.1
io.github.atsp-protocol/x402-conformance Checked 2 days ago Published 21 days ago

x402 payment safety checks: validate a 402 answer, prove a server never serves before settlement.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add x402-conformance -- npx -y x402-conformance-mcp@1.6.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "x402-conformance": {
      "args": [
        "-y",
        "x402-conformance-mcp@1.6.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "x402-conformance": {
      "args": [
        "-y",
        "x402-conformance-mcp@1.6.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "x402-conformance": {
      "args": [
        "-y",
        "x402-conformance-mcp@1.6.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.x402-conformance]
command = "npx"
args = ["-y", "x402-conformance-mcp@1.6.1"]

Docker

Requires Docker

Run in a terminal
claude mcp add x402-conformance -- docker run -i --rm ghcr.io/atsp-protocol/x402-conformance:1.6.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "x402-conformance": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/atsp-protocol/x402-conformance:1.6.0"
      ],
      "command": "docker"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "x402-conformance": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/atsp-protocol/x402-conformance:1.6.0"
      ],
      "command": "docker"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "x402-conformance": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/atsp-protocol/x402-conformance:1.6.0"
      ],
      "command": "docker",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.x402-conformance]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/atsp-protocol/x402-conformance:1.6.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: x402_check_payment_required, x402_demo, x402_explain_check, x402_share_case, x402_start_facilitator_double, x402_probe_resource_server, x402_stop_facilitator_double.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json