PayStage — x402 payment safety and spend policy

v0.8.19
io.github.base-buzz/x402-payment-safety Checked 3 hours ago Published 3 days ago

x402 payment safety: judge a payment against your policy before signing.

Values you need

VariableWhat it is
PAYSTAGE_POLICY_PATHoptional Path to policy.json spending rules
PAYSTAGE_RPC_URLoptional Base RPC URL override

npm (npx) discovery passed

Requires Node.js 18+

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

Remote (hosted)

Run in a terminal
claude mcp add --transport http x402-payment-safety https://api.paystage.xyz/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "x402-payment-safety": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.paystage.xyz/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "x402-payment-safety": {
      "url": "https://api.paystage.xyz/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "x402-payment-safety": {
      "type": "http",
      "url": "https://api.paystage.xyz/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.x402-payment-safety]
command = "npx"
args = ["-y", "mcp-remote", "https://api.paystage.xyz/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: evaluate_mcp_payment, list_outstanding_auths, evaluate_outstanding_auths, evaluate_hip3_trade, evaluate_velocity, verify_receipt, decode_payment_required, validate_policy, ….
  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