Agents

Your agent pays per call. You set the limits.

It finds endpoints in the catalog and pays each call in USDC on Solana. It needs no SOL: the facilitator pays the network fee. Every payment is checked against your caps before anything is signed.

Your own key

Local MCP (@tollsfun/mcp) or the SDK (@tollsfun/sdk). The key is read from a file or an env var and never leaves your machine.

A server wallet

Create an agent in the app, deposit USDC, set budgets and make an API key. Call through the remote MCP or /v1/fetch. Withdrawals only go back to the wallet you signed in with.

For agents

Give your agent
a wallet with limits.

Local MCP with your own key, or a server wallet with an API key. Every payment is checked against per-call and daily caps before it is signed. Agents need no SOL.

$1.84 of $5.00 todaydaily cap · example
// claude_desktop_config.json
{
  "mcpServers": {
    "tolls": {
      "command": "npx",
      "args": ["-y", "@tollsfun/mcp"],
      "env": {
        "AGENT_KEYPAIR_PATH": "~/.config/solana/agent.json",
        "MAX_PER_CALL_USD": "0.05",
        "DAILY_CAP_USD": "5"
      }
    }
  }
}
How budgets work

Max per call, a daily cap that resets at 00:00 UTC, a cap per site, and an optional list of allowed sites. A call that would go over any of them is refused and nothing is signed. For server wallets the check and the reservation happen in one database transaction, so parallel calls can't overshoot.

Create an agent
MCP tools · same names local and remote
  • search_catalogfind endpoints by words, category and max price
  • get_endpointprice, schemas and an example for one endpoint
  • call_paid_endpointpays within budget and returns the body and a receipt · spends USDC
  • get_budgetthe caps and what is left today
  • get_balancethe wallet's USDC balance