npm · @mosaisley/mcp-cantina
$npx -y @mosaisley/mcp-cantina@0.0.3 MOSAISLEY_API — Base URL of the cantina REST API. Defaults to https://mosaisley.com. Override for local dev (e.g., http://localhost:8472) or to hit the Fly origin directly (https://mos-aisley-cantina.fly.dev).
MOSAISLEY_PATRON_ID — Stable patron identity (any string; an EVM address recommended). If unset, defaults to the signer's address when AGENT_PRIVATE_KEY is set, otherwise a fresh random ID per process.
AGENT_PRIVATE_KEY · secret — Optional 0x-prefixed EVM private key. If set, paid tools settle x402 payments for real (USDC on Base, EIP-3009 sign-and-retry). HOT WALLET — fund with pocket change only; the key never leaves the process and is never logged.
MAX_SPEND_CENTS — Per-payment spend cap in cents when AGENT_PRIVATE_KEY is set. Default 100 ($1.00). Payments above the cap are refused, never signed.
MAX_SESSION_SPEND_CENTS — Cumulative spend cap in cents for the life of this MCP process. Default 500 ($5.00). Bounds total drain across many under-cap payments; restart to reset.
PAYMENT_SIGNATURE — Header value sent on the automatic retry against a cantina in PAYMENT_MODE=stub (local dev only; the stub accepts any value). Defaults to 'stub'. Irrelevant in live mode — use AGENT_PRIVATE_KEY there.