buyforme-mcp

v1.0.3
io.github.stevemilton/buyforme-mcp Checked 2 days ago Published 3 months ago

BuyForMe: pay any x402 URL (USD or EUR) with ArisPay delegated custody.

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

create_user

Cold-start in one call: create an ArisPay user account plus the master funding account. Safe to re-run — it recovers the existing account instead of creating duplicates.

ParameterTypeDescription
email *stringEmail for the new ArisPay account.
namestringHuman name. Falls back to the email local-part.

create_wallet

Create a sub-wallet / spending profile. Sub-wallets draw from the master funding account and enforce per-transaction, daily, and monthly spend limits.

ParameterTypeDescription
daily *integerDaily spend cap in cents.
monthly *integerMonthly spend cap in cents.
name *stringHuman name for this sub-wallet, e.g. 'Daily' or 'Travel'.
perTx *integerPer-transaction spend cap in cents.
allowedDomainsarrayIf provided, restrict this sub-wallet to paying only these domains.

list_wallets

List all sub-wallets under this account.

fund_wallet

Add money to the master funding account so a sub-wallet can spend. rail='card' mints a hosted card-setup URL. rail='europ' needs an operator-configured handoff host (BUYFORME_URL); without one it returns a structured FUNDING_HANDOFF_UNAVAILABLE error that lists alternatives, including permissionless x402 via PAYAGENT_PRIVATE_KEY.

ParameterTypeDescription
rail *stringFunding rail: 'europ' for SEPA/EURØP, 'card' for debit/credit card.
wallet *stringName of a sub-wallet (used only for handoff context).
amountnumberOptional preset amount in dollars.

get_balance

Show the master funding-account balance(s) and a sub-wallet's spend limits. If no wallet is named, lists all sub-wallets.

ParameterTypeDescription
walletstringOptional sub-wallet name. Omit to list all sub-wallets.

pay_merchant

Pay a merchant from the master wallet through a sub-wallet. For balance-rail payments (from FundingAccount), merchantId is required. For card-rail payments, the user must have a verified card on file.

ParameterTypeDescription
amount *integerAmount in cents.
memo *stringHuman-readable memo, e.g. 'T-shirt from getwatta.com'.
merchantUrl *stringCanonical merchant URL for this payment.
wallet *stringName of the sub-wallet to spend through.
currencystringCurrency code. Default: USD.
merchantIdstringRequired for balance-rail payments to a registered merchant.
railstringForce balance or card rail. Default: server picks based on available funding.

pay_api

Advanced: make an HTTP request to an x402-protected API, paying with USDC on Base. Signs locally when PAYAGENT_PRIVATE_KEY is set (self-custody, no ArisPay account needed); otherwise pays via delegated signing with server-enforced limits. This is a separate rail from the wallet-centric balance/card flows.

ParameterTypeDescription
url *stringThe full URL of the API endpoint to call.
agentstringOptional name of a stored x402 payer agent.
bodystring
headersobject
methodstring

create_agent

Advanced: provision an x402 payer agent with its own Base USDC wallet. Use create_wallet instead unless you specifically need to pay x402-protected HTTP resources.

ParameterTypeDescription
daily *integerDaily spend cap in cents.
monthly *integerMonthly spend cap in cents.
name *stringLocal identifier for this x402 agent.
perTx *integerPer-transaction spend cap in cents.
agentTypestring
allowedDomainsarray
networkstring

fund_agent

Advanced: get the USDC deposit address for an x402 payer agent.

ParameterTypeDescription
name *stringName of a locally-stored x402 agent.

get_balance_agent

Advanced: on-chain USDC balance for an x402 payer agent.

ParameterTypeDescription
name *stringName of a locally-stored x402 agent.

list_agents

Advanced: list x402 payer agents with on-chain wallets.

ParameterTypeDescription
withBalancebooleanFetch on-chain USDC balance per agent.

rename_agent

Advanced: rename an x402 payer agent.

ParameterTypeDescription
name *stringCurrent local name of the x402 agent.
newName *stringNew name.

discover_paid_api

Search the ArisPay marketplace for paid APIs by capability or plain-language intent, optionally budget-bounded (integer cents). Read-only — costs nothing and needs no API key. Returns ranked candidates with endpoint URL, price in cents, health and verification flags. Follow up with pay_api to actually call one, or inspect_paid_api to see a URL's exact payment requirements first.

ParameterTypeDescription
query *stringCapability or plain-language intent, e.g. 'flight search'.
budgetCentsMaxintegerMaximum acceptable price in INTEGER CENTS (500 = $5.00). Free listings always pass.
categorystringOptional category filter (inference, data, media, search, social, infrastructure, trading, other).
limitintegerMax results (default 5, max 20).

inspect_paid_api

Fetch an x402-protected URL WITHOUT paying to see its price, asset, network, and payment requirements. Read-only, never pays — no payment header, no auth, no API key. Use before pay_api to know what a resource costs.

ParameterTypeDescription
url *stringThe URL to inspect. Expected to return HTTP 402 with an x402 challenge.

create_enduser

Platform mode: register an end-customer under your account.

ParameterTypeDescription
externalId *stringYour own stable id for this customer.
emailstring
findOrCreateboolean

attach_card_for_user

Platform mode: mint a hosted card-entry URL for an end-user.

ParameterTypeDescription
userId *stringArisPay-internal end-user id.
agentNamestringOptional x402 agent name to scope the session to.

set_user_limits

Platform mode: set per-(user, agent) spend caps.

ParameterTypeDescription
agentName *string
userId *string
allowedMccarray
blockedMccarray
dailyinteger
monthlyinteger
perTxinteger

get_user_status

Platform mode: report an end-user's card and wallet readiness.

ParameterTypeDescription
userId *string

check_wallet

Legacy diagnostic for x402 payer agents. Also derives the deposit address when PAYAGENT_PRIVATE_KEY (local self-custody key) is set. Use get_balance for wallet-centric balances.

ParameterTypeDescription
agentstringOptional name of a locally-stored x402 agent.