x402check

v0.3.3
io.github.caiovicentino/x402check Checked 2 days ago Published 1 month ago

Risk-check counterparties before an AI agent pays; pay x402 resources only after a verified allow

Values you need

VariableWhat it is
X402CHECK_CREDIT_TOKENoptional secret Prepaid credit token (x402c_…, from POST https://x402check.xyz/v1/credits): $0.001 a check
X402CHECK_PAYER_KEYoptional secret Private key of a dedicated low-balance wallet: pays the x402 resources x402check_pay clears, and per-call checks without credits
X402CHECK_BUDGET_USDoptional Spend cap for this server process: the payer's spend (checks and resources), and separately what checks spend from prepaid credits Default: 1.00
X402CHECK_PINNED_KEYSoptional Comma-separated RFC 7638 thumbprints of the attestation keys accepted (default: x402check's own keys, for its own issuer)
X402CHECK_MAX_PAYMENT_USDoptional The most a single payment may cost (a check or a resource) Default: 0.05

npm (npx) discovery passed

Requires Node.js 18+

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

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: x402check_check, x402check_pay, x402check_verify_attestation, x402check_methodology.
  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