Agent402.Tools: payments and trust for AI agents

v0.18.0
tools.agent402/agent402 Checked 1 hour ago Published 1 day ago

Payment and trust layer for agentic commerce (Agentic Finance): pay and verify over x402 and MPP

Values you need

VariableWhat it is
AGENT_KEYoptional secret Hex private key of an EVM wallet funded with USDC on any EVM rail the server offers (Base, Polygon, Arbitrum One, Monad, Celo, Avalanche C-Chain, Sei, OP Mainnet, Arc, Ink) or USDG on Robinhood Chain; use SOLANA_AGENT_KEY for Solana. Stellar and Algorand are not signed by this package. Unset = proof
AGENT402_BUDGEToptional Optional hard cap on total USD spent per session (e.g. 1.00; unset or off = no session cap). Enforced on the payment that is signed.
AGENT402_MAX_PER_CALLoptional Max USD price for any single call (default 5; e.g. 0.05; 0 or off = no per-call cap). Enforced on the payment that is signed.
AGENT402_CREDITS_KEYoptional secret Prepaid credits key (a402_...) for Agent402's own services. With it set and no wallet key, every tool except the wallet-scoped ones (memory, usage) and the outside-seller routes (router.execute, seller-payability, decide.execute, the flight tools) is debited from the key; the list price is debited o
SOLANA_AGENT_KEYoptional secret Optional base58 (or JSON byte-array) secret key of a Solana wallet funded with USDC on Solana.
AGENT402_NETWORKSoptional Optional: restrict and order the chains to pay on (e.g. "base,solana" or a CAIP-2 like eip155:4663).

npm (npx) verified

Requires Node.js 18+

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

Remote (hosted)

Run in a terminal
claude mcp add --transport http agent402 https://agent402.tools/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "agent402": {
      "args": [
        "-y",
        "mcp-remote",
        "https://agent402.tools/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agent402": {
      "url": "https://agent402.tools/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "agent402": {
      "type": "http",
      "url": "https://agent402.tools/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agent402]
command = "npx"
args = ["-y", "mcp-remote", "https://agent402.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: catalog.search, catalog.find, catalog.call, payment.info, server.describe.
  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