Run402
MCP server for Run402 — AI-native Postgres databases with REST API, auth, storage, and row-level security. Pay with x402 USDC micropayments.
Versions
4.17.1latest4.17.04.16.14.16.04.15.1+ show 283 moreshow less
4.15.04.14.44.14.34.14.24.14.14.14.04.13.44.13.34.13.24.13.14.13.04.12.54.12.44.12.34.12.24.12.14.12.04.11.24.11.14.11.04.10.24.10.14.10.04.9.04.8.04.7.04.6.04.5.04.4.14.4.04.3.04.2.14.2.04.1.14.1.04.0.34.0.24.0.14.0.03.8.33.8.23.8.13.8.03.7.143.7.133.7.123.7.113.7.103.7.93.7.83.7.73.7.63.7.53.7.43.7.33.7.23.7.13.7.03.6.03.5.73.5.63.5.53.5.43.5.33.5.23.5.13.5.03.4.03.3.53.3.43.3.33.3.23.3.13.3.03.2.03.1.03.0.02.49.02.48.02.47.12.47.02.46.02.45.02.44.02.43.02.42.02.41.12.41.02.40.02.39.42.39.32.39.22.39.12.39.02.38.12.38.02.37.02.36.02.35.02.34.02.33.12.33.02.32.02.31.02.30.02.29.02.28.02.27.02.26.02.25.02.24.12.24.02.23.02.22.02.21.02.20.12.19.12.19.02.18.02.17.02.16.12.16.02.15.32.15.22.15.12.15.02.14.02.13.02.12.02.11.02.10.02.9.02.8.12.8.02.7.12.7.02.6.02.5.12.5.02.4.02.3.12.3.02.2.02.1.02.0.12.0.01.70.11.70.01.69.81.69.71.69.61.69.51.69.41.69.31.69.21.69.11.69.01.68.01.67.01.66.01.65.11.65.01.64.01.63.01.62.11.62.01.61.01.60.31.60.21.60.11.60.01.59.01.58.11.58.01.57.51.57.41.57.31.57.21.57.11.57.01.56.01.55.01.54.41.54.31.54.21.54.11.54.01.53.11.53.01.52.01.51.11.51.01.50.11.50.01.49.01.48.01.47.01.46.01.45.01.44.01.43.01.42.01.41.01.40.21.40.11.40.01.39.01.38.01.37.01.36.11.36.01.35.41.35.31.35.21.35.11.35.01.34.21.34.11.34.01.33.21.33.11.33.01.32.11.32.01.31.01.30.01.29.11.29.01.28.01.27.01.26.01.25.01.24.01.23.21.23.11.23.01.22.01.21.01.20.11.20.01.19.61.19.51.19.41.19.31.19.21.19.11.19.01.18.11.18.01.17.01.16.01.15.01.14.01.13.61.13.51.13.41.13.31.13.21.13.11.13.01.12.31.12.21.12.11.12.01.11.01.10.21.10.11.10.01.9.21.9.11.9.01.8.21.8.11.8.01.7.01.6.01.5.01.4.01.3.01.2.00.2.00.1.10.1.0Tools 9
name up Plan or run the canonical app-aware `run402 up` workflow from a local path or repo URL: any missing setup (wallet, tier, project, workspace link), then the deploy. Delegates to the SDK and returns the shared up result envelope with graph steps, resources, diagnostics, and next_actions. `deploy` only deploys.
deploy Unified apply primitive. Accepts a structured ReleaseSpec — database (migrations + expose), value-free secrets.require/delete declarations, functions, site, site.public_paths, site.embedding (framing opt-in by catalog key, e.g. { frame_ancestors: ['localhost'] }; null = deny), site.sign_in_path (the app's own same-origin sign-in page for MCP authorization, e.g. '/join'; null = hosted page), site.noindex (true = X-Robots-Tag: noindex, nofollow, nosnippet on every response of the host; false or null = indexable), subdomains, and routes.replace web routes — with explicit replace vs patch semantics per resource. Migration entries use id for immutable versioned SQL or name for generated/idempotent content-tracked SQL; name compiles client-side to <name>_<sha256(sql)[0:16]>. Use site.public_paths for clean static URLs such as /events backed by release asset events.html; explicit mode does not expose /events.html unless separately declared, while mode: 'implicit' restores filename-derived reachability and can widen access. Route entries map exact/final-wildcard browser paths like /admin and /admin/* to Node 22 Fetch Request -> Response functions, or exact GET/HEAD method-aware static aliases such as /events to { type: 'static', file: 'events.html' }; acknowledge an intentionally read-only GET/HEAD wildcard function route with allow_warning_codes: ['WILDCARD_ROUTE_EXCLUDES_MUTATION_METHODS']. Direct /functions/v1/:name remains API-key protected. Secret values are set first with `r.secrets.set` (a `run` snippet) or `run402 secrets set`, never placed in deploy specs. All bytes ride through CAS (no inline-body cap). Returns release_id, URLs, warnings, and a structured progress-event log. Stops before upload/commit on confirmation-required warnings unless reviewed codes are passed with allow_warning_codes or allow_warnings is true.
status The organization's state as this server's wallet sees it (r.status()): the wallet's local_label, server_label, and address, the tier and its lease, the allowance, the projects, and the active project. Never key material. ${RUN_HINT}
whoami The remote identity (r.orgs.whoami()): the control-plane principal this server's wallet resolves to, its active authenticator and linked identities, its org memberships, and the sign-in session grade (none for a wallet). For the local wallet use status. ${RUN_HINT}
doctor Local health and configuration diagnostics (r.doctor()): { ok, blocking[], warnings[], checks[] }, the same report as \
docs The SDK reference for \
run Run a TypeScript snippet against the SDK in a sandbox. `r` is the Node SDK client (@run402/sdk/node); call `docs` for its reference. The code is the body of an async function: await r chains, and the value of the last expression (or a return) is the result, e.g. `(await r.projects.list()).projects.map((p) => p.id)`. It is type-checked against the SDK before anything runs: a type error comes back with its line and TypeScript's message, and makes no call. No filesystem, process, fetch, timers, or imports; console is captured. Returns { status, value, value_ref, shown, total, logs, logs_ref, calls, duration_ms, wallet, error? }; a large value is stored whole and expand_result pages it. Operations that return or consume a one-time secret (grant keys, Handoff and Invite Keys, project credentials, wallet keys) refuse with SECRET_REQUIRES_CLI naming the exact CLI command to hand the person. Any other operation is a run snippet against r.
expand_result Fetch more of a result a previous tool showed you only a window of. Tools on this surface truncate the VIEW, never the DATA: when one prints a ref together with shown and total, the full result is held behind that ref and this is how you read the rest of it. Pass the ref plus offset and limit to page through it. Refs live in this server process only — they expire after 30 minutes and only the most recent handful are kept, so re-run the producing tool rather than storing a ref across sessions. A result that carried a secret is never retained and never has a ref, so nothing here can hand one back.
Permissions 4
network medium filesystem low shell high env_vars low