cbp-guard

v0.1.3
io.github.teddYTIgers/certbeforepay Checked 14 hours ago Published 5 days ago

Check an x402 payTo for scam/phishing and address-poisoning lookalikes before paying.

Values you need

VariableWhat it is
CBP_GUARD_PRIVATE_KEYrequired secret Private key (0x + 64 hex) of YOUR wallet that pays for each check via x402 (USDC on Base). Use a low-balance wallet.
CBP_GUARD_BASE_URLoptional CertBeforePay base URL (default https://certbeforepay.com). Must be https.
CBP_GUARD_DAILY_BUDGET_USDoptional Spend cap per UTC day for this server process in USD (default 2.50; Infinity for no cap).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add certbeforepay -e 'CBP_GUARD_PRIVATE_KEY=<CBP_GUARD_PRIVATE_KEY>' -- npx -y cbp-guard@0.1.3 mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "certbeforepay": {
      "args": [
        "-y",
        "cbp-guard@0.1.3",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "CBP_GUARD_PRIVATE_KEY": "<CBP_GUARD_PRIVATE_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "certbeforepay": {
      "args": [
        "-y",
        "cbp-guard@0.1.3",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "CBP_GUARD_PRIVATE_KEY": "<CBP_GUARD_PRIVATE_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CBP_GUARD_PRIVATE_KEY",
      "id": "cbp-guard-private-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "certbeforepay": {
      "args": [
        "-y",
        "cbp-guard@0.1.3",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "CBP_GUARD_PRIVATE_KEY": "${input:cbp-guard-private-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.certbeforepay]
command = "npx"
args = ["-y", "cbp-guard@0.1.3", "mcp"]
env = { "CBP_GUARD_PRIVATE_KEY" = "<CBP_GUARD_PRIVATE_KEY>" }

For AI agents

  1. Ask the user for: CBP_GUARD_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: wallet_check, gate, peer_challenge.
  5. 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