UNPKG

run402-mcp

Version:

MCP server for Run402 — full-stack backend infrastructure for AI agents: Postgres, auth, storage, serverless functions and atomic deploys. Paid with x402/MPP. Includes $0.03 image generation.

38 lines • 1.48 kB
/** * The bootstrap `next_actions` the Node SDK's local-state verbs author * (`wallets.current`, `init`, `status`, `doctor`), in the one spelling every * surface prints. Each is the literal CLI invocation plus why, the same shape * the gateway's `next_actions` carry extended with `command`. */ export function localAction(type, fields = {}) { const action = { type }; for (const key of ["command", "method", "path", "auth", "why"]) { if (fields[key] !== undefined) action[key] = fields[key]; } return action; } export function initializeWalletAction() { return localAction("initialize_wallet", { command: "run402 init", why: "Create and fund a local wallet, then retry.", }); } export function deployAction() { return localAction("deploy", { command: "run402 deploy --manifest app.json", why: "Deploy your release manifest.", }); } /** * The cold-start deploy when the account holds no tier yet: `run402 up -y` * sets the prototype tier itself as part of the first deploy, so `init` * hands the agent ONE command instead of `tier set` + a separate deploy. */ export function upDeployAction() { return localAction("deploy", { command: "run402 up -y", why: "Deploy with run402 up -y — it sets the prototype tier (free on testnet) as part of the first deploy. Or set it separately: run402 tier set prototype.", }); } //# sourceMappingURL=local-actions.js.map