{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.vulinh1704/spend-guard",
  "slug": "io.github.vulinh1704.spend-guard",
  "title": "Spend Guard",
  "summary": "Budgets, payee allowlists, price-spike checks and human approval for agents paying x402 paywalls",
  "version": "0.2.0",
  "serverKey": "spend-guard",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.vulinh1704.spend-guard",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.vulinh1704.spend-guard/install.md",
  "trust": {
    "score": 87,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-02T02:25:42.513163387Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vulinh1704/spend-guard@0.2.0",
        "mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add spend-guard -- npx -y @vulinh1704/spend-guard@0.2.0 mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"spend-guard\": {\n      \"args\": [\n        \"-y\",\n        \"@vulinh1704/spend-guard@0.2.0\",\n        \"mcp\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"spend-guard\": {\n      \"args\": [\n        \"-y\",\n        \"@vulinh1704/spend-guard@0.2.0\",\n        \"mcp\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"spend-guard\": {\n      \"args\": [\n        \"-y\",\n        \"@vulinh1704/spend-guard@0.2.0\",\n        \"mcp\"\n      ],\n      \"command\": \"npx\",\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.spend-guard]\ncommand = \"npx\"\nargs = [\"-y\", \"@vulinh1704/spend-guard@0.2.0\", \"mcp\"]"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "SPEND_GUARD_POLICY",
      "required": false,
      "secret": false,
      "description": "Policy JSON file: networks, budgets, approval amount, spike ratio, known services and their payees. Without one, every payment waits for your approval.",
      "help": "Policy JSON file: networks, budgets, approval amount, spike ratio, known services and their payees. Without one, every payment waits for your approval.",
      "placeholder": "<SPEND_GUARD_POLICY>"
    },
    {
      "name": "SPEND_GUARD_RAILS",
      "required": false,
      "secret": false,
      "description": "How to pay: mock (pays nothing), near, arc, gateway, or a comma list. arc and gateway need ARC_PRIVATE_KEY, near needs NEAR_ACCOUNT_ID and NEAR_PRIVATE_KEY.",
      "help": "How to pay: mock (pays nothing), near, arc, gateway, or a comma list. arc and gateway need ARC_PRIVATE_KEY, near needs NEAR_ACCOUNT_ID and NEAR_PRIVATE_KEY.",
      "default": "mock",
      "placeholder": "mock"
    },
    {
      "name": "SPEND_GUARD_LEDGER",
      "required": false,
      "secret": false,
      "description": "Decisions file, read back on start so a restart keeps today's spend; servers on one file share one budget. Default ~/.spend-guard/ledger.jsonl; off keeps it in memory.",
      "help": "Decisions file, read back on start so a restart keeps today's spend; servers on one file share one budget. Default ~/.spend-guard/ledger.jsonl; off keeps it in memory.",
      "placeholder": "<SPEND_GUARD_LEDGER>"
    },
    {
      "name": "SPEND_GUARD_DASHBOARD_PORT",
      "required": false,
      "secret": false,
      "description": "Port of the approval dashboard on 127.0.0.1. 0 picks a free one; off means no dashboard, and payments that need approval are declined.",
      "help": "Port of the approval dashboard on 127.0.0.1. 0 picks a free one; off means no dashboard, and payments that need approval are declined.",
      "default": "4400",
      "placeholder": "4400"
    },
    {
      "name": "SPEND_GUARD_APPROVAL_TIMEOUT",
      "required": false,
      "secret": false,
      "description": "Seconds a payment waits for your answer before it is declined. Raise it together with your client's tool timeout.",
      "help": "Seconds a payment waits for your answer before it is declined. Raise it together with your client's tool timeout.",
      "default": "55",
      "placeholder": "55"
    },
    {
      "name": "SPEND_GUARD_MOCK_NETWORK",
      "required": false,
      "secret": false,
      "description": "Network the mock rail pretends to pay on.",
      "help": "Network the mock rail pretends to pay on.",
      "default": "near-testnet",
      "placeholder": "near-testnet"
    },
    {
      "name": "ARC_PRIVATE_KEY",
      "required": false,
      "secret": true,
      "description": "Agent key for the arc and gateway rails. Testnet keys only.",
      "help": "Agent key for the arc and gateway rails. Testnet keys only.",
      "placeholder": "<ARC_PRIVATE_KEY>"
    },
    {
      "name": "NEAR_ACCOUNT_ID",
      "required": false,
      "secret": false,
      "description": "Agent account for the near rail (testnet).",
      "help": "Agent account for the near rail (testnet).",
      "placeholder": "<NEAR_ACCOUNT_ID>"
    },
    {
      "name": "NEAR_PRIVATE_KEY",
      "required": false,
      "secret": true,
      "description": "Agent key for the near rail. Testnet keys only.",
      "help": "Agent key for the near rail. Testnet keys only.",
      "placeholder": "<NEAR_PRIVATE_KEY>"
    }
  ],
  "expectedTools": [
    "pay_and_fetch",
    "spending_status",
    "spending_policy"
  ],
  "agentSteps": [
    "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).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: pay_and_fetch, spending_status, spending_policy.",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-02T02:25:42.513163387Z"
}
