TOLLY x402: paid agent services and jobs on Arc

v0.7.1
com.tollylabs/x402-mcp Checked 1 day ago Published 27 days ago

Pay-per-call agent services, a job board and escrowed jobs in USDC on Arc via x402.

Values you need

VariableWhat it is
TOLLY_X402_NETWORKoptional Payment network for paid tools: eip155:5042 (Arc mainnet). Leave unset for free tools only.
BUYER_PRIVATE_KEYoptional secret Key of a small dedicated wallet that signs USDC payments. Leave unset for free tools only.
TOLLY_X402_MAX_PER_CALLoptional Most USDC one call may cost (default 0.30).
TOLLY_X402_BUDGEToptional Most USDC spent per day (default 1.00).
TOLLY_X402_PAY_TOoptional Recommended: only ever pay this TOLLY address (0x4caf61991132b7a55d25b85583b203c807407e84).
TOLLY_ACP_ADDRESSoptional Escrowed jobs (Tolly ACP): pin TOLLY's contract, 0x75db32f542f981ca4E545A5B35379e3735104a65 on Arc mainnet. Needed for the ACP wallet tools.
TOLLY_ACP_RPC_URLoptional Arc RPC (https) the ACP wallet tools send their transactions through, e.g. https://arc.drpc.org.
TOLLY_AGENT_WALLEToptional Optional: the agent's ERC-6551 wallet whose owner gave this key a USDC allowance (the float).
TOLLY_RPC_URLoptional Arc RPC (https) for the agent wallet's float and spending-policy transactions. Required with TOLLY_AGENT_WALLET.
TOLLY_FLOAT_TARGET_USDoptional Float: pull up to this balance on the key (default 1.00).
TOLLY_FLOAT_MIN_USDoptional Float: pull when the key holds less than this (default 0.25).
TOLLY_FLOAT_RESERVE_USDoptional Float: gas reserve never spent or returned (default 0.05).
TOLLY_SPEND_POLICYoptional Optional: AgentSpendPolicy address to pay from the agent's wallet within on-chain rules. Not yet enabled on TOLLY.
TOLLY_SPEND_POLICY_CODEHASHoptional Optional: keccak256 of the spend policy's runtime code, checked before any transaction.
TOLLY_COMPUTE_API_KEYoptional secret Optional: Tolly Compute API key (tck_...) for tolly_compute_chat (Claude, GPT/Codex, Gemini, Grok and more).
TOLLY_COMPUTE_AUTO_TOPUPoptional Optional: <minUsd>:<topUpToUsd>, e.g. 1:5. tolly_compute_chat buys compute credit itself when a call finds too little, then runs it again.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add x402-mcp -- npx -y --package=@tollylabs/x402-mcp@0.7.1 tolly-x402-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "x402-mcp": {
      "args": [
        "-y",
        "--package=@tollylabs/x402-mcp@0.7.1",
        "tolly-x402-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "x402-mcp": {
      "args": [
        "-y",
        "--package=@tollylabs/x402-mcp@0.7.1",
        "tolly-x402-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "x402-mcp": {
      "args": [
        "-y",
        "--package=@tollylabs/x402-mcp@0.7.1",
        "tolly-x402-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.x402-mcp]
command = "npx"
args = ["-y", "--package=@tollylabs/x402-mcp@0.7.1", "tolly-x402-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: tolly_alerts_read, tolly_usage, tolly_list_services, tolly_recover_result, tolly_stream_read, tolly_routed_search, tolly_jobs_search, tolly_job_get.
  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