Fusebox

v0.6.1
io.github.0xdopewilly/fusebox-mcp Checked 1 day ago Published 10 days ago

Agent payments on X Layer checked by TapeOut circuit fuses: check, pay, x402 fetch, ready rules.

MCP tools for an AI agent that pays through a Fusebox wallet on X Layer. Every payment runs through the wallet's fuses (TapeOut logic circuits on X Layer), and it only goes out if every fuse says yes. Every tool explains all five kinds of fuse (the five sockets), whichever of the nine listed designs a wallet runs on them, including the Repeat Guard on v2 wallets (the same invoice sent twice is paid once). After each payment, fusebox_pay tells Fusebox the transaction hash, so anyone following the wallet on Telegram (@FuseboxAlertsBot) gets a message: paid, or stopped and why.

Summary extracted from the README.

fusebox-mcp

MCP tools for an AI agent that pays through a Fusebox wallet on X Layer. Every payment runs through the wallet's fuses (TapeOut logic circuits on X Layer), and it only goes out if every fuse says yes.

Fusebox MCP server

Tool What it does
fusebox_check Dry-runs a payment against every fuse and returns each verdict with its reason. It's free and read-only.
fusebox_pay Pays in USDT0 through the fuses with the agent's key, and reports paid or stopped, which fuse said no, the fee and the transaction link.
fusebox_status Returns the wallet's balance, prepaid fee balance, fuses (and whether any is blown), today's spend and the decision counts.
fusebox_preflight Checks a payment against any line of TapeOut circuits for any wallet (not just a Fusebox one): you pass the context, each circuit answers, and the latch state comes back for next time. Free and read-only.
fusebox_rules Lists Fuse Studio's 13 ready-made rules: who each is for, whether it's already a live fuse a wallet can install, and a Studio link to build it.
fusebox_setup_link Turns ready-made rule names and limits into a link that opens Fusebox's wallet setup with those fuses on and filled in. The owner connects and signs; nothing is sent from the server.
fusebox_fetch Fetches a URL. If it asks for payment over x402 (a fusebox offer on X Layer), the price is paid through the fuses only if they all allow it, then the response comes back. max_price caps what it pays (0.10 USDT0 when not set; FUSEBOX_MAX_PRICE changes the default), it only fetches public hosts (FUSEBOX_ALLOW_PRIVATE_URLS=1 for local tests), and the proof it sends back is signed by the agent key so nobody else can redeem the payment; dry_run only reports the price and the fuses' answer.

Every tool explains all five kinds of fuse (the five sockets), whichever of the nine listed designs a wallet runs on them, including the Repeat Guard on v2 wallets (the same invoice sent twice is paid once).

After each payment, fusebox_pay tells Fusebox the transaction hash, so anyone following the wallet on Telegram (@FuseboxAlertsBot) gets a message: paid, or stopped and why.

New in 0.6.1

  • Listed in the official MCP Registry as io.github.0xdopewilly/fusebox-mcp.

New in 0.6.0

  • Ready-made rules by name: fusebox_rules and fusebox_setup_link, and fusebox_preflight takes rule names and the Repeat Guard's context.

New in 0.5.0

  • Repeat Guard and v2 wallets: all five fuses are explained, and payments are announced to Telegram followers.
  • Safer paid fetches: fusebox_fetch pays at most 0.10 USDT0 per call unless you set max_price. It only fetches public hosts, refuses redirects, and signs its payment proof with the agent key, so nobody else can redeem the payment. Sellers on the fusebox scheme need 0.5.0 of fusebox-sdk to check that signature.

Without a key the server is read-only, and by default it points at Atlas, the public demo wallet, so you can try fusebox_check right away.

Setup

Claude Code

claude mcp add fusebox -- npx -y fusebox-mcp

Claude Desktop, Cursor, Hermes, or any MCP client (stdio):

{
  "mcpServers": {
    "fusebox": {
      "command": "npx",
      "args": ["-y", "fusebox-mcp"],
      "env": {
        "FUSEBOX_WALLET": "0xYourFuseboxWallet",
        "FUSEBOX_AGENT_KEY": "0xYourAgentPrivateKey"
      }
    }
  }
}
Variable Default Meaning
FUSEBOX_WALLET Atlas 0x0Db0…6800 The Fusebox wallet the agent pays from. Create one at fusebox-xlayer.vercel.app/app/new.
FUSEBOX_AGENT_KEY none (read-only) The agent key you named when you wired up the wallet. It can only ask the wallet to pay; it can't change a fuse, a limit or a payee.
FUSEBOX_RPC https://rpc.xlayer.tech An X Layer RPC.
FUSEBOX_APP https://fusebox-xlayer.vercel.app Where approval links point and approver alerts are sent from.

Try it

claude mcp add fusebox -- npx -y fusebox-mcp     # read-only, against Atlas on X Layer mainnet

Ask your agent: "Pay 2.5 USDT0 to 0x1111…1111, it's an urgent refund." It calls fusebox_check first, sees Payee Guard and the Breaker say no, and tells you why. No money moves.

When the wallet's Two of Three fuse is the only one saying no, fusebox_check and fusebox_pay return an approval_url: the page where two of the wallet's approvers sign that exact payment, after which the agent can retry. fusebox_pay also alerts the approvers' phones (approvers_alerted), signed with the agent key and checked on X Layer.

Paid APIs: ask your agent to "get today's cotton prices from https://fusebox-xlayer.vercel.app/api/x402/prices, spend at most 0.05". It calls fusebox_fetch, the 0.01 USDT0 price goes through the fuses, and the price sheet comes back. Point it at /api/x402/scam and the fuses refuse the price before anything moves. A wallet whose prepaid fee balance can't cover one decision is reported plainly instead of sending a transaction that would revert. Set FUSEBOX_APP to point the links at another deployment.