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.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fusebox_check Check a payment against the fuses

Dry-run a USDT0 payment from the Fusebox wallet 0x0Db0457715a6445D8a65F820d717a6B39Be66800 on X Layer. Every fuse (TapeOut circuits) answers yes or no, with the reason. Free and read-only; nothing moves. Call this before fusebox_pay: a blocked payment still costs fees and can blow the Breaker.

ParameterTypeDescription
amount *stringAmount in USDT0, e.g. "2.5"
to *stringPayee address (0x…)

fusebox_pay Pay through the fuses

Ask the Fusebox wallet 0x0Db0457715a6445D8a65F820d717a6B39Be66800 to pay in USDT0 on X Layer. Every fuse decides in the same transaction; the money moves only if all of them say yes. The memo is recorded on-chain but no fuse reads it. Requires FUSEBOX_AGENT_KEY.

ParameterTypeDescription
amount *stringAmount in USDT0, e.g. "0.05"
memo *stringOne line: what this payment is for
to *stringPayee address (0x…)

fusebox_status Wallet status

The Fusebox wallet 0x0Db0457715a6445D8a65F820d717a6B39Be66800: USDT0 balance, prepaid fee balance, each fuse and whether it's blown, today's spend, and decision counts.

fusebox_fetch Fetch a URL, paying for it through the fuses if it asks (x402)

Fetch a URL. If it answers 402 with an x402 offer that takes Fusebox payments (scheme "fusebox" on X Layer, in USDT0), the price is paid from the Fusebox wallet 0x0Db0457715a6445D8a65F820d717a6B39Be66800 only if every fuse allows it, then the request is retried with the proof and the response comes back. A refused price moves nothing. It pays at most max_price (default 0.10 USDT0 when you don't set one), only to public hosts. Use dry_run to see the price and the fuses' answer without paying. Without FUSEBOX_AGENT_KEY it behaves as a dry run.

ParameterTypeDescription
url *stringThe URL to fetch
bodystringRequest body for POST (sent as-is)
content_typestringContent-Type for the body, default application/json
dry_runbooleanOnly report the price and what the fuses would say
max_pricestringMost you'll pay for this call, in USDT0, e.g. "0.05". Default 0.10
methodstringDefault GET

fusebox_rules List Fuse Studio's ready-made rules

Fuse Studio's library of ready-made payment rules (13 common agent policies: daily budgets, payee books with a trial, breakers, approvals, no double payments). Each says who it's for, whether it's already a live fuse a wallet can install today (fuse_id), and a Studio link to prove, change or tape it out. Use the names with fusebox_setup_link and fusebox_preflight.

ParameterTypeDescription
live_onlybooleanOnly rules that are already live fuses
socketintegerOnly rules for one socket: 1 Daily Cap, 2 Payee Guard, 3 Breaker, 4 Two of Three, 5 Repeat Guard

fusebox_preflight Pre-flight a payment against TapeOut circuits (any wallet)

Before signing a payment from ANY wallet, run it through a line of TapeOut circuits on X Layer: each circuit's own eval/step answers yes or no, free and read-only. You supply the context a Fusebox wallet would keep on-chain. Pass the returned state back next time so latches (the Breaker) remember. Shipped fuses: 1 Daily Cap (a = cap per UTC day, USD₮0), 2 Payee Guard (a = cooling-off hours, b = trial USD₮0), 3 Breaker, 4 Two of Three (a = approvals above, USD₮0). If it says no, don't sign.

ParameterTypeDescription
amount *stringPayment amount in USD₮0, e.g. "2.5"
line *arrayFuses by registry id with their settings
approvalsintegerHow many of three approvers signed this exact payment
hours_since_savedintegerHours since the payee was saved
payee_savedbooleanIs the payee in your payee book?
repeat_clearedbooleanRepeat Guard: the owner cleared one repeat of this payment
same_payment_hours_agointegerRepeat Guard: hours since this exact payment (payee and amount) last went out; omit if never
spent_todaystringUSD₮0 already paid today through this line
stateobjectLatch state from the previous pre-flight's state