Skip to content
VS Code

cbp-guard for VS Code

io.github.teddytigers/certbeforepay

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

client:VS Code transport:stdio runtime:npm

Install cbp-guard in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "cbp-guard-private-key",
      "description": "CBP_GUARD_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cbp-guard-base-url",
      "description": "CBP_GUARD_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cbp-guard-daily-budget-usd",
      "description": "CBP_GUARD_DAILY_BUDGET_USD",
      "password": true
    }
  ],
  "servers": {
    "certbeforepay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cbp-guard"
      ],
      "env": {
        "CBP_GUARD_PRIVATE_KEY": "${input:cbp-guard-private-key}",
        "CBP_GUARD_BASE_URL": "${input:cbp-guard-base-url}",
        "CBP_GUARD_DAILY_BUDGET_USD": "${input:cbp-guard-daily-budget-usd}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

cbp-guard in other clients