Skip to content
Cursor

Spend Guard for Cursor

io.github.vulinh1704/spend-guard

Budgets, payee allowlists, price-spike checks and human approval for agents paying x402 paywalls

client:Cursor transport:stdio runtime:npm

Install Spend Guard in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "spend-guard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vulinh1704/spend-guard"
      ],
      "env": {
        "SPEND_GUARD_POLICY": "<SPEND_GUARD_POLICY>",
        "SPEND_GUARD_RAILS": "<SPEND_GUARD_RAILS>",
        "SPEND_GUARD_LEDGER": "<SPEND_GUARD_LEDGER>",
        "SPEND_GUARD_DASHBOARD_PORT": "<SPEND_GUARD_DASHBOARD_PORT>",
        "SPEND_GUARD_APPROVAL_TIMEOUT": "<SPEND_GUARD_APPROVAL_TIMEOUT>",
        "SPEND_GUARD_MOCK_NETWORK": "<SPEND_GUARD_MOCK_NETWORK>",
        "ARC_PRIVATE_KEY": "<ARC_PRIVATE_KEY>",
        "NEAR_ACCOUNT_ID": "<NEAR_ACCOUNT_ID>",
        "NEAR_PRIVATE_KEY": "<NEAR_PRIVATE_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Spend Guard in other clients