PayPal, guarded

v0.3.0
io.github.Fizzl13/paypal-guard Checked 7 hours ago Published 22 days ago

PayPal's Agent Toolkit with limits on refunds and the owner's Approve/Deny above them.

Values you need

VariableWhat it is
PAYPAL_CLIENT_IDrequired Client ID of your PayPal REST app (developer.paypal.com)
PAYPAL_CLIENT_SECRETrequired secret Secret of your PayPal REST app
PAYPAL_ENVIRONMENToptional SANDBOX (default) or PRODUCTION
LIMIT_REFUNDoptional Most per refund without asking you (default 25.00)
LIMIT_REFUND_PER_DAYoptional Refunds a day in total (default 100.00)
LIMIT_REFUNDS_PER_DAYoptional Number of refunds a day (default 10)
LIMIT_CURRENCYoptional Currency of the limits (default USD)
GUARD_POLICYoptional Other rules as JSON, e.g. {"dispute":"deny","stop":"ask"}
FIZZL_AGENT_KEYoptional secret Approvals in the Fizzl Agent Wallet (Telegram + dashboard): an agent key awk_… from wallet.fizzl.eu
TELEGRAM_BOT_TOKENoptional secret Approvals through your own Telegram bot
TELEGRAM_CHAT_IDoptional Your Telegram chat id (approvals go only there)
APPROVAL_IN_CHAToptional off to never ask in the chat app (MCP elicitation)
APPROVAL_MINUTESoptional How long you have to answer (default 10)

npm (npx) discovery passed

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET. 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: create_invoice, create_recurring_series, activate_recurring_series, get_recurring_series, cancel_recurring_series, delete_recurring_series, list_invoices, get_invoice, ….
  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