AgentPay — trust routing + spend caps for x402 agents

v2.9.2
io.github.romudille-bit/agentpay Checked 3 hours ago Published 13 days ago

Buyer-side trust oracle + capped sessions for x402 agents: verified_route, receipts, 17 free tools.

Values you need

VariableWhat it is
AGENTPAY_BASE_KEYoptional secret Optional EVM private key for wallet mode: settle paid tools in-place (gasless EIP-3009 on Base). Keyless free-tools mode works without it.
AGENTPAY_ENABLE_PAIDoptional Set to 1 to settle paid tools from the wallet the server mints on first run (fund it with USDC on Base first). Off by default.
AGENTPAY_MAX_SPENDoptional Hard per-session spend cap in USD when wallet mode is enabled (default 0.10).

npm (npx) discovery passed

Requires Node.js 18+

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

Remote (hosted)

Run in a terminal
claude mcp add --transport http agentpay https://agentpay.tools/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "agentpay": {
      "args": [
        "-y",
        "mcp-remote",
        "https://agentpay.tools/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agentpay": {
      "url": "https://agentpay.tools/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "agentpay": {
      "type": "http",
      "url": "https://agentpay.tools/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agentpay]
command = "npx"
args = ["-y", "mcp-remote", "https://agentpay.tools/mcp"]

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: verified_route, route, estimate_plan, session_cap.
  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