{"server":"@aifinpay/mcp-http","version":"2.3.1","mcp_version":"2.21.1","protocol":"Model Context Protocol","transport":"Streamable HTTP","protocol_version":"2024-11-05","mcp_endpoint":"https://mcp.aifinpay.io/mcp","description":"AiFinPay MCP server: an AI agent pays for HTTP APIs that answer 402, within the limits its owner sets.","tools":[{"name":"agent_address","description":"Return the agent's currently derived on-chain addresses. This tool is read-only and never authorizes or signs a payment. Production value movement is available only through the verified SDK v2 settlement executor after trusted deployment pins are released.","inputSchema":{"type":"object","properties":{}}},{"name":"agent_claim_self","description":"Link this agent to its owner's AiFinPay dashboard, so the owner sees the agent's balance, payments and receipts. Offer this after creating a wallet. The owner generates a one-time URL at https://dash.aifinpay.io → My Agents → Link an agent → Claim via MCP and gives it to you; pass it here. Do not open the URL in a browser tool: that links nothing. The tool signs only an AiFinPay claim challenge for this agent's own address and, after an EVM claim, a summary of this server's payment settings for the owner's dashboard (never keys, the passphrase or file paths); it moves no funds.","inputSchema":{"type":"object","properties":{"magic_link_url":{"type":"string","description":"The one-time URL from My Agents → Link an agent → Claim via MCP. Looks like https://dash.aifinpay.io/api/auth/verify?token=… — single use, expires 15 minutes after it was generated."},"label":{"type":"string","description":"Optional human-friendly label (e.g. 'claude-research-bot')."}},"required":["magic_link_url"]}},{"name":"agent_reload","description":"Reload the configured local wallet files after init or a file update, without starting a new conversation. Returns public addresses only. With payments on (the default) it also opens the payment journal for the loaded wallet, so a server that started with an ephemeral wallet can pay right after init, without a restart. Env changes (owner overrides, AIFINPAY_PAYMENTS_ENABLED=0) take effect only after the client restarts the aifinpay MCP server; agent_reload does not read them.","inputSchema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"payment_setup_status","description":"Read-only checklist for paying with payable_fetch: wallet (persistent or ephemeral), whether payments are on, the ceiling and each limit with its source (built-in default or the owner's env), the wallet's native balance on the pay chain when readable, pay_options (what payable_fetch may pay with, in order, with balances), the owner's dashboard Controls in `dashboard`, and next_step — exactly one instruction for the first unmet item. First payment in five steps: (1) get the exact endpoint URL from the user (its AIFP-1 402 sets the price; never take a price from the merchant's web pages or a web search); (2) call payment_setup_status; (3) no persistent wallet: run `npx @aifinpay/mcp init` without a terminal, put its printed env into the MCP client config, then call agent_reload (no restart: payments are on by default); (4) tell the owner the address and the amount in `funding`, the answer to how much to send (the smallest batch at today's rate plus the gas cap; if no rate could be read, ask for the batch price in the native currency at today's rate plus the gas cap and name no number), and offer the dashboard link so the owner can claim the agent (agent_claim_self) and set the working limits in Controls; (5) payable_fetch the URL. Payments are on by default within a built-in ceiling of $5 per payment and $20 per 24 hours, only through a persistent wallet, only to merchants registered with AiFinPay via a quote signed by its backend; an unfunded wallet spends nothing. AIFINPAY_MAX_USD and AIFINPAY_DAILY_USD can only lower that ceiling; AIFINPAY_PAYMENTS_ENABLED=0 turns payments off; AIFINPAY_GATEWAY_ORIGINS, when set, is the only list of payable sites. Moves nothing and signs no payment: for a persistent wallet it signs one short AiFinPay read statement to fetch the owner's Controls and, for a linked agent, one more to share a summary of these settings with the owner's dashboard (the MCP version, whether payments are on, AIFINPAY_GATEWAY_ORIGINS, the per-payment and daily USD limits, the pay chain and asset; never keys, the passphrase or file paths). Never asks the owner's limits from the model.","inputSchema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"payable_fetch","description":"Fetch a GET resource from an AiFinPay merchant, paying its AIFP-1 402 when needed. Always listed: until a persistent wallet exists (npx @aifinpay/mcp init, then agent_reload) it signs nothing and returns the payment_setup_status checklist with the one next step. Payments are on by default within a built-in ceiling of $5 per payment and $20 per 24 hours (the owner can only lower it in env; the working limits are the dashboard Controls after agent_claim_self) and only ever reach a merchant registered with AiFinPay, through a quote signed by the AiFinPay backend; a 402 never chooses who is paid. Without AIFINPAY_GATEWAY_ORIGINS it pays only a merchant whose site AiFinPay reports as DNS-verified, on that very site (or through the AiFinPay hosted gateway); with it, only the origins the owner listed; AIFINPAY_PAYMENTS_ENABLED=0 turns payments off.  Buys a prepaid batch through verified v1.4 on the chain the owner set in AIFINPAY_PAY_CHAIN (Polygon by default; other supported networks require explicit owner selection) — with what the wallet holds: the pinned stablecoins of that chain first, then its native coin (POL, ETH, AVAX, BNB or XRP), or only the options the owner listed in AIFINPAY_PAY_OPTIONS, in that order, or only AIFINPAY_PAY_ASSET (Solana: SOL or AIFINPAY_PAY_ASSET); gas is native, on Arc USDC. The answer names paid_with. Within owner limits, then reuses its receipt. With scope \"merchant\" one batch covers every path on the site. When the merchant sells under a content licence, the paid result carries `license` (id, terms, text_url): use the content only as it allows. Pending payments are recovered without sending another transaction. Other payment protocols are unsupported. The price is the AIFP-1 402 of this exact URL, not the merchant's website plans; if the endpoint is not known, ask the user for it instead of browsing the site.","inputSchema":{"type":"object","properties":{"url":{"type":"string","description":"HTTPS resource to fetch. Without AIFINPAY_GATEWAY_ORIGINS, payment goes only to a merchant that verified this site with AiFinPay; with it, only to the origins the owner listed."},"max_amount_usd":{"type":"number","exclusiveMinimum":0,"description":"Optional tighter per-payment USD limit; cannot increase the owner's cap."},"scope":{"type":"string","enum":["exact","merchant"],"description":"What a new batch covers. \"exact\" (default): this one resource. \"merchant\": every path on this site — use it when the owner asked for access to the site; each request still costs its own listed price. Does not change the price or the owner limits."},"expected_merchant_id":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,64}$","description":"Optional merchant id (e.g. mrch_…) this call may pay; a site answering as any other merchant is refused before quoting. Paying re-pins the site to it. Set it only to a merchant the owner confirmed, e.g. after this tool reported that a site changed merchant."}},"required":["url"],"additionalProperties":false}},{"name":"agent_quota","description":"Read this agent's prepaid quota, per service. Lists the agent's active quota batches (merchant, resource, used, remaining, expiry). Read-only; never spends, pays, or signs anything. Ask it things like: how much prepaid quota do I have left at mrch_x?","inputSchema":{"type":"object","properties":{"merchant_id":{"type":"string","description":"Optional mrch_… filter — only batches bought from this service."},"include_exhausted":{"type":"boolean","default":false,"description":"Also list batches with 0 remaining (still retained, not yet expired)."}}}},{"name":"agent_history","description":"Read an agent's indexed AiFinPay payment history by wallet address, public passport identifier, or both. Defaults to the configured payment chain and its local wallet. Solana history requires the owner-selected cluster; arbitrary wallet transfers are excluded. Receipts include retained prepaid batches and test payments. Never pass a seed, private key or API secret as a passport.","inputSchema":{"type":"object","additionalProperties":false,"properties":{"address":{"type":"string"},"passport":{"type":"string","description":"Public @username, AIFP-… number or aifp_agent_… identifier"},"network":{"type":"string","description":"Exact wallet chain; defaults to the configured payment chain (Polygon when unset). Solana cluster comes from owner configuration."},"source":{"type":"string","enum":["transactions","receipts"],"default":"transactions"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":25},"offset":{"type":"integer","minimum":0,"maximum":100000,"default":0}}}},{"name":"agent_passport_resolve","description":"Resolve an AiFinPay Agent Passport by @username, permanent AIFP number, or immutable agent id. Returns verified public wallet bindings only. Resolution never authorizes a payment.","inputSchema":{"type":"object","properties":{"identifier":{"type":"string","description":"@username, AIFP-#########, or aifp_agent_* id"}},"required":["identifier"]}},{"name":"settlement_routes","description":"Where an agent can pay today. Lists the splitter v1.4 AIFP-1 routes payable_fetch uses first — one per chain the backend serves (read from the issuer's /api/health and /.well-known/x402.json, pinned against the SDK's deployment registry) with chain_id, assets, quote_endpoint and pay_endpoint. \"live\": true means payable now through payable_fetch on that chain. Splitter v1.2 and v1.3 are deprecated, not recommended for use, and not listed. AIFP-1 is merchant monetisation: the protocol fee is included in the quoted price and each quote shows the exact split, creator 0%. AIFP-2/x402 is 100% provider / 0% AiFinPay / 0% creator.","inputSchema":{"type":"object","properties":{"route_class":{"type":"string","enum":["AIFP-1","AIFP-2"]}}}},{"name":"settlement_invoice","description":"DEPRECATED — not recommended for use: splitter v1.3 is superseded by v1.4 on every served network; pay with payable_fetch instead. Builds and validates a NON-SIGNING v1.3 settlement invoice for EVM chains. This tool never moves funds. Use the published @aifinpay/agent v2 settlement executor to verify bytecode/profile and sign it.","inputSchema":{"type":"object","properties":{"route_class":{"type":"string","enum":["AIFP-1","AIFP-2"]},"chain":{"type":"string","enum":["polygon","avalanche","arbitrum","bnb","base","unichain","optimism","botchain","robinhood","xrplevm"]},"asset":{"type":"string","description":"Native symbol, USDC, or USDT if the route advertises it."},"gross_amount":{"type":"string","description":"Gross payer amount in base units."},"merchant_wallet":{"type":"string","description":"Merchant/provider EVM wallet (0x...)."},"order_id":{"type":"string"},"valid_until":{"type":"integer","description":"Optional Unix seconds, max 20 minutes ahead."}},"required":["route_class","chain","asset","gross_amount","merchant_wallet","order_id"]}},{"name":"settlement_solana","description":"Build and validate a NON-SIGNING Solana settlement invoice. This tool never moves funds. Uses the AiFinPay Solana B2B split program (Anchor). Use the published @aifinpay/agent v2 settlement executor to sign and submit.","inputSchema":{"type":"object","properties":{"route_class":{"type":"string","enum":["AIFP-1","AIFP-2"]},"chain":{"type":"string","enum":["solana"]},"asset":{"type":"string","enum":["SOL","USDC"],"description":"SOL (native) or USDC (SPL token)."},"gross_amount":{"type":"string","description":"Gross payer amount in base units (lamports for SOL, 6 decimals for USDC)."},"merchant_wallet":{"type":"string","description":"Merchant/provider Solana base58 public key."},"order_id":{"type":"string"},"valid_until":{"type":"integer","description":"Optional Unix seconds, max 20 minutes ahead."}},"required":["route_class","chain","asset","gross_amount","merchant_wallet","order_id"]}},{"name":"settlement_casper","description":"Build and validate a NON-SIGNING Casper settlement invoice. This tool never moves funds. Casper uses Wasm smart contracts and deploys (not EVM transactions). Use the published @aifinpay/agent v2 settlement executor to sign and submit.","inputSchema":{"type":"object","properties":{"route_class":{"type":"string","enum":["AIFP-1","AIFP-2"]},"chain":{"type":"string","enum":["casper"]},"asset":{"type":"string","enum":["CSPR"],"description":"CSPR (native Casper token)."},"gross_amount":{"type":"string","description":"Gross payer amount in motes (10^-8 CSPR)."},"merchant_wallet":{"type":"string","description":"Merchant/provider Casper account hex (account-hash-...)."},"order_id":{"type":"string"},"valid_until":{"type":"integer","description":"Optional Unix seconds, max 20 minutes ahead."}},"required":["route_class","chain","asset","gross_amount","merchant_wallet","order_id"]}},{"name":"deployment_info","description":"Get AiFinPay deployment details across EVM, Solana, Aptos, NEAR, Tron and Casper — addresses, stablecoins, program IDs, and settlement status. Registry metadata only: a listed network is not necessarily payable by payable_fetch. Filter by ecosystem, environment (prod/dev), or network name.","inputSchema":{"type":"object","properties":{"ecosystem":{"type":"string","enum":["evm","solana","aptos","near","tron","casper"],"description":"Filter by ecosystem. Omit for all."},"environment":{"type":"string","enum":["prod","dev","testnet","mainnet"],"description":"Filter by environment. Omit for all."},"network":{"type":"string","description":"Filter by exact network name (e.g. 'optimism', 'mainnet', 'casper-test')."}},"additionalProperties":false}}]}