PurseString

v0.4.0
io.github.suseendar1414/pursestring Checked 48 minutes ago Published 3 hours ago

Spending guardrails for AI agents: your rules, and a human when needed, checked before money moves.

Values you need

VariableWhat it is
PURSESTRING_POLICYoptional Path to policies.yaml (default ./policies.yaml, then ~/.pursestring/policies.yaml)
LITHIC_API_KEYoptional secret Use Lithic virtual cards (sandbox by default) instead of the mock rail
PAYPAL_CLIENT_IDoptional secret Enable PayPal payouts to vendor accounts set in the policy (sandbox by default)
PAYPAL_CLIENT_SECREToptional secret PayPal client secret, needed with PAYPAL_CLIENT_ID
SLACK_WEBHOOK_URLoptional secret Slack incoming webhook for approval requests

npm (npx) discovery passed

Requires Node.js 18+

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

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: check_policy_compliance, submit_purchase_intent, request_ephemeral_card, send_payment, check_payout, replace_payout, get_intent_status, report_untrusted_content.
  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