Basic information
About Run402 MCP Server
MCP server for Run402 — AI-native Postgres + REST + auth + storage + static sites. Pay with x402 USDC on Base. No signups.
Run402 is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by MajorTal. It exposes 200 tools, including provision_postgres_project, run_sql, rest_query, apply_expose and more. Supported transport: stdio. Runtime: node. License: MIT. The repository has 22 GitHub stars. Source code is hosted on github.com. Related topics: ai-agent, auth, backend, database, mcp.
Connection details
https://mcp.run402.com/mcp
Setup
claude mcp add run402-mcp --transport http https://mcp.run402.com/mcp
[mcp_servers.run402-mcp] url = "https://mcp.run402.com/mcp"
{
"mcpServers": {
"run402-mcp": {
"url": "https://mcp.run402.com/mcp"
}
}
}
{
"servers": {
"run402-mcp": {
"type": "http",
"url": "https://mcp.run402.com/mcp"
}
}
}
Run402 MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"run402": {
"command": "npx",
"args": [
"-y",
"run402-mcp"
]
}
}
}
Run402 MCP Server tools
- provision_postgres_project — Provision a new Postgres database. Returns project credentials on success, or payment details if x402 payment is needed.
- run_sql — Execute SQL (DDL or queries) against a provisioned project. Returns results as a markdown table.
- rest_query — Query or mutate data via the PostgREST REST API. Supports GET/POST/PATCH/DELETE with query params.
- apply_expose — Apply a declarative authorization manifest to a project (POST /projects/v1/admin/:id/expose). The manifest describes the full authorization surface: tables (with policy, owner_column, force_owner_on_insert, i_understand_this_is_unrestricted, custom_sql), views (with base, sele...
- validate_manifest — Validate an auth/expose manifest without applying it. This checks the authorization manifest used by manifest.json, database.expose, and apply_expose; it is not deploy-manifest validation. Optional migration_sql is reference context only and is not executed. Use deploy plannin...
- app_up — Plan or run the canonical app-aware `run402 up` workflow from a local path or repo URL. Delegates to the SDK and returns the shared app-up result envelope with graph steps, resources, diagnostics, and next_actions.
- get_expose — Get the current authorization manifest for a project (GET /projects/v1/admin/:id/expose). Returns the last-applied manifest from `internal.project_manifest`, or a manifest reconstructed by introspecting live DB state if none has ever been applied. The `source` field is `"appli...
- get_schema — Introspect the database schema — tables, columns, types, constraints, and RLS policies. Useful for understanding the database structure before writing queries.
- get_usage — Get project usage report — API calls, storage usage, limits, and lease expiry.
- export_project_archive — Export the supported Run402 Core runtime slice of a Cloud project as a portable .r402ar archive. Can wait for readiness and write the downloaded archive to a local path. Secrets, credentials, billing, allowance, logs, fleet, and Cloud operations are never exported.
- inspect_project_archive — Inspect a local run402-project-archive.v1 directory or .r402ar tar offline. Reports digest, required secrets, auth stubs, export report, portability report, and compatibility diagnostics without Cloud credentials.
- verify_project_archive — Verify a local run402-project-archive.v1 directory or .r402ar tar offline. Checks integrity and compatibility only; archives remain untrusted input.
- import_project_archive — Import a verified portable archive into a new local Run402 Core project through the Core gateway. Automatically verifies before import, supports dry_run and require_runnable, and reports SECRET_VALUES_REQUIRED with next actions.
- create_project_snapshot — Capture a manual project data snapshot. Snapshots are internal restore points, not downloadable archives.
- list_project_snapshots — List project data snapshots with optional kind filter and keyset pagination.
- get_project_snapshot — Get one project data snapshot and its next actions.
- restore_project_snapshot — Plan or confirm a project snapshot restore. Omit confirm for the loss statement and confirm token; pass confirm to execute the atomic restore.
- delete_project_snapshot — Delete a project data snapshot and release its CAS references.
- create_project_branch — Create a contained branch project from a fresh or existing snapshot. Email is sandboxed/off and cron is off unless explicitly enabled.
- list_project_branches — List active contained branch projects for a parent project.
- renew_project_branch — Extend a contained branch project's TTL.
- delete_project_branch — Delete a contained branch project and purge its resources.
- deploy_rehearse — Run a persisted apply plan against a contained branch and return the rehearsal report. Source project and plan stay untouched.
- assets_put — Upload a blob (file or inline content) to project storage via direct-to-S3. Accepts local_path (any size up to 5 TiB) or content (≤ 1 MB inline). Public blobs get a CDN URL; private blobs require authenticated reads. Use `immutable: true` to produce a content-addressed URL t...
- assets_get — Download a blob to a local file path. Writes bytes directly to disk (no context-window bloat). Returns size + SHA-256 header (if the blob has one stored).
- assets_ls — List blobs in a project with optional prefix filter over a flat key namespace. Supports pagination via cursor.
- assets_rm — Delete a blob from project storage and decrement the project's storage_bytes.
- assets_sign — Generate a time-boxed S3 presigned GET URL for a blob. Use this to share a private blob externally without exposing your apikey. Default TTL 1 hour, max 7 days.
- diagnose_public_url — Returns the live CDN state for a public blob URL (probed once from gateway-us-east-1 — NOT a global view). Use this when a deployed asset shows the wrong version or you suspect cache staleness. The result includes `expectedSha256` (from gateway DB), `observedSha256` (what Cl...
- wait_for_cdn_freshness — Polls the CDN until a MUTABLE blob URL serves the expected SHA-256, or the timeout elapses. **For mutable URLs only** — for immutable URLs (the `immutableUrl` returned by `assets_put`), no waiting is needed; they're bound to a SHA at upload time and never previously cached. ...
- deploy_function — Deploy a serverless function (Node 22) to a project. Handler signature: export default async (req: Request) => Response. The function can `import { db, adminDb, auth, email, ai } from '@run402/functions'` — auto-bundled by the platform. Additional npm packages are bundled at...
- invoke_function — Invoke a deployed function via HTTP. Free functions behave like the direct test path; paid functions require idempotency_key and may spend allowance, returning a result or pollable run_id. Stable errors preserve code and set isError=true.
- get_function_logs — Get recent logs from a deployed function. Shows console.log/error output and error stack traces from CloudWatch.
- list_functions — List all deployed functions for a project. Shows names, URLs, Node runtime, timeout, memory, resolved direct deps, and injected `@run402/functions` compatibility metadata: deployed `runtime_version`, gateway `runtime_current_version`, guaranteed `runtime_minimum_version`, and ...
- delete_function — Delete a deployed function from a project.
- update_function — Update a function's timeout or memory without re-deploying code. Legacy schedule mutation remains for old simple-function surfaces; new schedule/email background triggers should be declared through ReleaseSpec `triggers[]`.
- functions_rebuild — Refresh function(s) onto the platform's current entry wrapper + bundled runtime WITHOUT changing source (capability function-runtime-rebuild, gateway v1.69+). Provide `name` to rebuild one function, or omit it to rebuild every function in the project. Re-bundles from each func...
- create_function_run — Create a durable function run with a required idempotency key. Supports immediate, delayed, or run_at scheduling, expiry, retry policy, and optional wait. Use this instead of ad hoc cron/polling when work must survive retries or be redriven.
- list_function_runs — List durable runs for a function, filterable by status, event_type, time window, limit, and cursor.
- get_function_run — Fetch one durable function run by fnrun_ id.
- get_function_run_logs — Fetch logs correlated to one durable function run.
- cancel_function_run — Cancel a scheduled/queued durable function run when it has not completed yet.
- redrive_function_run — Redrive a failed/cancelled/expired durable function run with an optional retry override and optional wait.
- set_secret — Set a project secret (e.g. STRIPE_SECRET_KEY). Values are write-only and injected as process.env variables in functions. Setting an existing key overwrites it. Use this before deploy, then declare the key with secrets.require.
- list_secrets — List secret keys for a project. Values and value-derived hashes are never shown; use this only to check which keys are configured.
- delete_secret — Delete a secret from a project.
- jobs_submit — Submit a platform-managed job. The request must match the gateway jobs API shape: job_type, input with input.json, and max_cost_usd_micros. The SDK supplies the required idempotency header.
- jobs_get — Get a managed job run by id.
- jobs_logs — Read recent runner logs for a managed job. Use tail to cap entries and since for an ISO-8601 lower bound; legacy epoch milliseconds are still accepted.
- jobs_cancel — Cancel a queued or running managed job.
- jobs_purge — Purge all managed job runs for a project, terminating known active runners first.
- jobs_download_artifact — Download a completed managed job's artifact by filename to a local file. Discover the recorded filenames from the artifacts map returned by jobs_get; the legacy run402:// refs were retired in favor of these gateway URLs.
- deploy_site — Deploy a static site (HTML/CSS/JS) from inline file bytes. Files are staged to a temp directory, then uploaded via the v1.32 plan/commit transport — only bytes the gateway doesn't already have are PUT. Served at a unique URL via CloudFront. Free with active tier.
- deploy_site_dir — Deploy a static site from a local directory. Walks the tree, hashes each file, and uploads only the bytes the gateway doesn't already have via the v1.32 plan/commit transport. Files named .git, node_modules, or .DS_Store are skipped; symlinks are rejected. Re-deploying an unch...
- deploy — Unified apply primitive. Accepts a structured ReleaseSpec — database (migrations + expose), value-free secrets.require/delete declarations, functions, site, site.public_paths, subdomains, and routes.replace web routes — with explicit replace vs patch semantics per resource...
- deploy_diagnose_url — Read-only authenticated diagnostics for a Run402 public URL or host/path pair. Explains whether the current live release would serve the URL, including match, diagnostic body status, static manifest/cache metadata when returned, structured warnings for ignored query/fragment, ...
- deploy_resume — Resume a deploy operation that ended in `activation_pending` or `schema_settling` (e.g. transient gateway failure between SQL commit and the pointer-swap activation). The gateway re-runs only the failed phase forward — SQL is never replayed. Idempotent: calling on an already...
- deploy_list — List recent deploy operations for a project. Returns operation_id, status, release_id, and timestamps. Use this to build deploy-history UIs or to find a recent operation_id to feed into `deploy_resume` / `deploy_events`. Pass `limit` to bound the result set; the gateway also r...
- deploy_events — Fetch the recorded phase-event stream for a deploy operation. Returns the same `DeployEvent` shapes the `deploy` tool emits inline during an in-flight deploy — useful for inspecting a deploy after the fact (e.g., a deploy that the agent didn't observe directly, or one being ...
- deploy_verify_edge — Verify gateway/edge release coherence for a deploy operation. Returns the canonical edge-coherence report, including pointer-update state, probed paths, stale-release evidence, and next actions. Set wait=true to poll until coherent or timeout_seconds elapses.
- deploy_release_get — Fetch a release inventory by id. Returns release metadata, effective/desired state kind, site path inventory, function inventory, secret keys, subdomains, and applied migrations. Use `site_limit` to cap large site inventories. Canonical SDK errors are preserved.
- deploy_release_active — Fetch the current-live release inventory for a project. Returns `release_id: null` with an empty current-live inventory when no release is active yet. Use this before deploy diffs to understand what is currently serving. Canonical SDK errors are preserved.
- deploy_release_diff — Diff two release targets for a project. `from` may be `empty`, `active`, or a release id; `to` may be `active` or a release id. Returns release-to-release diff buckets and `migrations.applied_between_releases`. Semantic gateway errors such as invalid targets, same-release diff...
- ci_create_binding — Create a GitHub Actions CI/OIDC deploy binding by sending a locally signed delegation to the SDK. This MCP wrapper does not sign or broaden authority; the signed delegation defines the repository/branch or environment, allowed events/actions, and optional route_scopes. Without...
- ci_list_bindings — List CI/OIDC deploy bindings for a project, including route_scopes when delegated. Use this to inspect which GitHub Actions subjects can deploy before editing bindings.
- ci_get_binding — Get one CI/OIDC deploy binding by id, including its subject, allowed events/actions, repository id, revocation state, and route_scopes.
- ci_revoke_binding — Revoke one CI/OIDC deploy binding. Revocation stops future CI gateway requests, but does not undo already deployed releases or rotate secrets.
- claim_subdomain — Claim a custom subdomain (e.g. myapp.run402.com) and point it at an existing deployment. Free, requires service_key auth.
- delete_subdomain — Release a custom subdomain. The URL will stop serving content.
- list_subdomains — List all subdomains claimed by a project.
- browse_apps — Browse public apps available for forking. Optionally filter by tags.
- fork_app — Fork a published app into a new project. Creates a full copy including database, functions, site, and optionally claims a subdomain.
- publish_app — Publish a project as a forkable app. Set visibility and tags for discoverability.
- list_versions — List published versions of a project.
- get_quote — Get tier pricing for Run402 projects. Free, no auth required. Shows prices, lease durations, storage limits, and API call limits.
- pay_url — Call an arbitrary HTTP(S) URL and automatically satisfy a supported x402 exact-payment challenge. Defaults to a $0.10 ceiling, uses the configured allowance wallet, forwards Idempotency-Key, and returns the HTTP response plus a structured payment receipt.
- tier_status — Check current tier subscription — tier name, status, expiry, usage, and function authoring caps when returned (max timeout, memory, scheduled functions, min cron interval). Requires allowance auth.
- set_tier — Subscribe, renew, or upgrade tier. Auto-detects action based on allowance state. Returns success or payment details if x402 payment is needed.
- delete_project — Immediately and irreversibly delete a project: the gateway runs the full destructive cascade (drop tenant schema, delete Lambda functions, release subdomains, tombstone mailbox, remove sender domain, wipe secrets and app versions) and sets status=purged. This tool also removes...
- rename_project — Rename a project (PATCH /projects/v1/:id) — fix an auto-generated name. Authorization is org-membership based (admin+ on the owning org, or a project:write grant) and authorize-before-reveal: an unauthorized or guessed id returns the same 403 as a real-but-unauthorized proje...
- admin_set_lease_perpetual — Toggle an organization's `lease_perpetual` escape hatch (v1.57+). When `lease_perpetual: true`, the organization never advances past `active` regardless of lease expiry; every project in the organization inherits the pinned state. Enabling on a grace-state organization (past_d...
- admin_archive_project — Operator moderation action — archive a single project (sets `projects.archived_at = NOW()`). Independent of organization-level lifecycle: sibling projects on the same organization keep serving. No-op when the project is already archived. Platform-admin only. Calls POST /proj...
- admin_reactivate_project — Operator un-archive — flips `projects.archived_at` back to NULL. In v1.57 this was narrowed: it no longer touches organization-level lifecycle. To reactivate a grace-state organization, subscribe a tier (`tier_set`) or enable lease-perpetual (`admin_set_lease_perpetual`). Pl...
- initiate_project_transfer — Initiate a project transfer (owned-org recipient shape v1.96+). Addressed to a WALLET (`to_wallet`, completed by `accept_project_transfer`), an EMAIL (`to_email`, completed by `claim_project_transfer`), OR an owned ORG (`to_org_id`, same-actor move that completes immediately i...
- preview_project_transfer — Fetch the preview document for a project transfer of any pending kind (v1.93+). Returns the safe review payload: project name, custom domains, subdomains, function names, secret NAMES (values are never returned), CI bindings that will be revoked at completion, mailbox summary,...
- accept_project_transfer — Accept an incoming WALLET transfer (v1.93+). Your wallet must equal the transfer's to_wallet. The accept transaction atomically: (a) flips ownership to your wallet, (b) revokes the previous owner's CI bindings on the project, (c) enqueues notifications to both parties, (d) sta...
- claim_project_transfer — Claim an incoming EMAIL transfer into an org (v1.93+) — the email analog of `accept_project_transfer`. The transfer's addressed email must match your verified email. Provide `org_id` to claim into an org you own/admin, or omit to create a new org. Atomically flips ownership ...
- cancel_project_transfer — Cancel a pending project transfer of any kind (v1.93+). You must be authorized for the row's kind (a wallet signing party, an owner/admin of the offering org, or the addressed-email principal). Already-accepted/cancelled/expired transfers return 409 TRANSFER_ALREADY_PROCESSED....
- list_incoming_transfers — List pending project transfers OFFERED TO the authenticated wallet (v1.59+). Each entry carries `preview_path` for deep-linking into the preview tool. Calls GET /agent/v1/transfers/incoming.
- list_outgoing_transfers — List pending project transfers INITIATED BY the authenticated wallet (v1.59+). Each entry carries `preview_path` for deep-linking into the preview tool. Calls GET /agent/v1/transfers/outgoing.
- promote_user — Promote a user to project_admin role by email. Admins can manage secrets from the browser. Requires service_key.
- demote_user — Demote a user from project_admin role by email. Reverts to default authenticated role. Requires service_key.
- check_balance — Check the organization balance for the agent's allowance wallet — available and held funds. The wallet is resolved to its organization over SIWX (signed automatically); reading a wallet that is not linked to yours requires an admin key.
- list_projects — List projects from the named, domain-aware inventory (GET /projects/v1). Membership-scoped by default: every project owned by an org the agent's wallet is an active member of, with name, site_url, custom_domains, org (org_id), and status. SIWX wallet auth is signed automatical...
- list_tenant_payments — List redacted tenant x402 payment records for priced function web routes on a project (GET /projects/v1/:project_id/tenant-payments). Requires project.tenant_payments.read: org developer+ or read-scoped project grant/delegate. Raw X-PAYMENT headers, authorization hashes, and i...
- allowance_status — Check local agent allowance status — address, network, and funding status.
- allowance_create — Create a new local agent allowance (Base Sepolia testnet). Generates a private key and derives the Ethereum address. Saved to ~/.config/run402/allowance.json.
- allowance_export — Export the local agent allowance address. Safe to share publicly. This is also the MAINNET on-ramp: to pay with real USDC on Base mainnet, send USDC to this address — `request_faucet` only funds Base Sepolia testnet, which cannot settle a real payment.
- request_faucet — Request free testnet USDC from the Run402 faucet (Base Sepolia). Rate limit: 1 per IP per 24h. Returns 0.25 USDC — enough for 2 prototype databases.
- redeem_voucher — Redeem a promo code (voucher) for Run402 prepaid credit. Use this whenever the user hands you a code like R402-K8F3-Q2W9. The credit spends like any other prepaid balance — a tier purchase settles from it with no on-chain payment. Works before or after setup, and retrying th...
- generate_image — Generate a PNG image from a text prompt. Costs $0.03 USDC via x402. Aspect ratios: square (1:1), landscape (16:9), portrait (9:16).
- create_mailbox — Create a project-scoped mailbox local part. The managed address is <slug>@<project-mail-host>.mail.run402.com; matching slugs in other projects are allowed. Returns mailbox_settings and next_actions when the gateway provides default-role repair guidance. Not idempotent: same-p...
- list_mailboxes — List a project's mailboxes, including address/managed_address, default-role metadata (`is_default_outbound`, `is_auth_sender`), readiness (`can_send`, `can_receive`, `send_blocked_reason`, `domain_kind`), footer-policy fields, mailbox_settings, and next_actions. Use before cho...
- set_mailbox_defaults — Set default_outbound_mailbox_id and/or auth_sender_mailbox_id for a project. Use list_mailboxes first to choose an explicit mailbox id; sending without a mailbox uses the configured outbound default instead of guessing.
- send_email — Send an email. Two modes: template (project_invite, magic_link, notification) or raw HTML (subject + html). Optional from_name for display name. Single recipient only. Pass mailbox to target a slug/id; otherwise the configured default_outbound_mailbox_id is used. Result echoes...
- list_emails — List sent emails from the project's mailbox. Shows message ID, template, recipient, status, and timestamp.
- get_email — Get a sent email with details and any replies.
- get_email_raw — Get the raw RFC-822 bytes of an inbound email message, base64-encoded. The decoded bytes are bit-identical to the DKIM-signed original — no parsing, normalization, or CRLF cleanup. Use this for cryptographic verification (DKIM checks, zk-email proofs). Inbound messages only;...
- get_mailbox — Get the project's mailbox info (ID, address, slug, default/readiness metadata, and footer-policy fields when returned). Use to check if a mailbox exists.
- update_mailbox — Update per-mailbox settings. Currently supports footer_policy: run402_transparency or none. Prototype projects are locked to run402_transparency; attempting none surfaces the gateway's FOOTER_POLICY_TIER_REQUIRED typed error.
- delete_mailbox — Delete the project's mailbox (irreversible — drops all messages and webhook subscriptions). Requires confirm=true. If mailbox_id is omitted, resolves the project's mailbox.
- register_mailbox_webhook — Register a webhook on the project's mailbox. Receives POST notifications for email events (delivery, bounced, complained, reply_received).
- list_mailbox_webhooks — List all webhooks registered on the project's mailbox.
- get_mailbox_webhook — Get details of a specific webhook by ID.
- delete_mailbox_webhook — Delete a webhook. Idempotent — succeeds even if already deleted.
- update_mailbox_webhook — Update a webhook's URL and/or events. At least one field required. Events is a full replacement, not a merge.
- list_mailbox_webhook_deliveries — List durable webhook delivery rows for the project's mailbox. Webhook delivery is at-least-once with bounded retries + backoff; failures land in 'failed_permanent' (the dead-letter queue). Filter by status to inspect what was lost. Consumers must dedupe on the envelope idempot...
- redrive_mailbox_webhook_delivery — Re-queue a dead-lettered (failed_permanent) webhook delivery so the worker attempts delivery again. Use after fixing the consumer endpoint.
- ai_translate — Translate text to a target language. Requires service key and active AI Translation add-on. Supports optional source language and context hint.
- ai_moderate — Run content moderation on text. Returns flagged status and category scores. Free for all projects, requires service key.
- ai_usage — Get AI translation usage for the current billing period — used words, quota, and remaining balance.
- send_message — Send a message to the Run402 developers. Requires an active tier.
- set_agent_contact — Register agent contact info (name, email, webhook). New or changed emails start operator email reply verification. Free with allowance auth.
- get_agent_contact_status — Get the current agent contact assurance state: wallet_only, email_pending, email_verified, passkey_pending, or operator_passkey.
- verify_agent_contact_email — Start or resend the operator email reply challenge for the active agent contact email. Does not expose the challenge secret.
- start_operator_passkey_enrollment — Email a short-lived Run402 operator passkey enrollment link to the verified contact email. Requires email_verified.
- get_operator_status — Compact operator-health snapshot: contact assurance, critical items, skipped notifications, organizations, projects, active thresholds. Read via run402 doctor.
- get_notification_preferences — Read the operator's notification preferences (channels, cadence, threshold/lifecycle/security toggles, locale, timezone).
- set_notification_preferences — Update operator notification preferences. Cross-wallet effects require email_verified assurance; webhook URL changes require operator_passkey assurance.
- list_notifications — List the operator's notification audit log (delivered, failed, and skipped attempts). Paginated; filter by event type or since timestamp.
- list_project_events — Catch up on what happened to a project since you last looked: the durable, cursored feed of deploy activations, mailbox suspensions, transfers, lifecycle cliffs, and verification outcomes, each with platform-suggested next_actions. The feed also carries app-emitted business fa...
- join_room — Arrive in a project's coordination room: register (or reuse) this session's presence and see who else is live, what they're working on, and what they've claimed — the one-call 'arrive and look' before starting work. Every project has a default room (project_id addresses it; ...
- send_room_message — Send a message to the other agents in a coordination room. Messages are room-visible (to/cc route ATTENTION — unread filters and ack expectations — they are not access control), support threads and importance, and are durable: an agent that isn't running now reads it when ...
- raise_escalation — Page a HUMAN because you judged one is needed — the hotline, not a room message. Raise when: you assess a person is required; your instructions conflict with each other or with your constraints; something looks security-shaped; or you are blocked in a way only a human can cl...
- get_escalation — Poll an escalation you raised until a human takes it — the wait-for-human loop — or list your escalations when escalation_id is omitted. status 'acknowledged' names the human who owns it; 'open' means nobody has answered yet and it is still climbing the contact chain. incl...
- get_buzz_route — Check whether project events are flowing into a Buzz community channel: one route's honest health (derived from route + credential state, never from queue emptiness) with delivery counts, or the organization's route list when buzz_project_event_route_id is omitted. Reach for i...
- list_buzz_route_deliveries — Did a Buzz route delivery actually land? Keyset newest-first history for one route — dead letters included, the signed envelope never. Use it to poll a queued test delivery (pass delivery_id from the CLI's test response), to see WHY a route auto-paused (last_error per attemp...
- read_room_messages — Read a coordination room's messages: cursored catch-up ('what did the other agents say since I last looked'), unread-only filtering for messages addressed to you, thread filtering, or one full message by message_id (lists carry snippets; the get-one read carries the FULL body)...
- ack_room_message — Acknowledge a room message addressed to this session's presence. The sender sees your acked_at on the message — acks are how an agent confirms it saw a handoff or agreed to a split. Recipients only (422 otherwise); idempotent (a replay reports the original ack time).
- claim_room_resource — Declare what you're working on before you collide with another agent: an ADVISORY, TTL-expiring claim on a resource — repo:<glob> paths (glob-overlap conflict detection, e.g. repo:src/auth/**), function:<name>, table:<name>, deploy, or free-form strings. Creation ALWAYS succ...
- release_room_claim — Release a claim you hold in a coordination room (holder's credential only; idempotent — already-released claims report already_released: true with the original time). Pair it with a send_room_message handoff note so the room's timeline tells the story.
- errors_list — Grouped, release-baselined error memory for a project, verdict-first: every page leads with a computed promote-vs-revert verdict (the gateway's numbers — never recomputed here), then the collapsed error identities. The post-promote watch: right after an apply/promote activat...
- test_notification — Trigger a real test notification (audit row marked is_test=true). Rate-limited per wallet at 1/min. Verifies the full pipeline end-to-end.
- rotate_webhook_secret — Generate a fresh HMAC signing secret for the operator's webhook endpoint. Returned EXACTLY once. Previous secret remains valid for 24h. Requires operator_passkey assurance.
- list_notification_channels — List every notification channel for the operator: email, webhook, and every live (non-revoked) Telegram binding with its id, status (pending/active/revoked), chat metadata, and label. Use this to find a telegram_binding_id for create_notification_rule.
- list_notification_rules — List the operator's Telegram routing rules. Each rule ANDs its match dimensions (project_id, source, event_types, classes); an omitted dimension is a wildcard. One rule always targets exactly one Telegram binding.
- create_notification_rule — Create a Telegram routing rule: one match (project_id / source / event_types / classes, all ANDed, each optional — omitted = wildcard) routes to one Telegram binding. Requires operator_passkey assurance. An unusable or foreign telegram_binding_id returns the same 404 as a no...
- delete_notification_rule — Delete a Telegram routing rule. Requires operator_passkey assurance.
- create_checkout — Create a Stripe checkout URL for an organization. Products: balance_topup, tier, email_pack.
- billing_history — View billing ledger history for the agent's allowance wallet. The wallet is resolved to its organization over SIWX (signed automatically); a wallet not linked to yours requires an admin key.
- update_version — Update metadata (description, tags, visibility, fork_allowed) of a published app version.
- delete_version — Delete a published app version.
- get_app — Inspect a specific published app — details, required secrets, fork pricing.
- init — Set up agent allowance, request faucet funding, and check tier status — single-call bootstrap. Idempotent, safe to re-run.
- status — Full organization snapshot — allowance, billing balance, tier subscription, projects, and active project. Single-call overview.
- project_get — Authoritative server read of a project — name, owning org, tier, effective status, active deploy, mailbox addresses, and usage vs. tier limits. Live API call; returns no keys (use project_key_cache_status/export for local cached keys).
- project_use — Server-validate a project and store its id as the active project pointer for this local profile.
- project_key_cache_status — Read redacted local project-key cache status for one project. Local cache only; not authoritative project inventory and never returns full keys.
- project_key_cache_export — Export local cached anon/service keys for one project. Requires reveal:true and emits secret material; use only when a credential-required operation needs keys.
- request_magic_link — Send a passwordless login email (magic link) to a project user. Auto-creates the user on first verification. Rate limited per email (5/hr) and per project (by tier).
- verify_magic_link — Exchange a magic link token for access_token + refresh_token. Creates the user if they don't exist. Token is single-use and expires in 15 minutes.
- create_auth_user — Create or update a project auth user with the service key. Can set project_admin and optionally send a trusted invite.
- invite_auth_user — Create/update a project auth user and send a trusted invite magic link. Requires service_key and an allowed redirect_url.
- set_user_password — Change, reset, or set a user's password. Change: provide current_password + new_password. Reset (via magic link login): just new_password. Set (passwordless user): requires allow_password_set=true on project.
- auth_settings — Update project auth settings: allow_password_set, preferred_sign_in_method, public_signup, and require_passkey_for_project_admin. Requires service_key.
- scaffold_roles — Generate a role-table migration + requireRole gate snippet + first-operator bootstrap for Run402 function role gates. Offline and deterministic (no project or network). Inputs: table, user_col, role_col, roles[], cache_ttl.
- passkey_register_options — Create WebAuthn passkey registration options for the authenticated user.
- passkey_register_verify — Verify a browser WebAuthn registration response and store the user's passkey.
- passkey_login_options — Create WebAuthn passkey login options for a project app origin.
- passkey_login_verify — Verify a browser WebAuthn assertion and return a normal Run402 auth session.
- list_passkeys — List the authenticated user's active passkeys.
- delete_passkey — Delete one authenticated-user passkey by id.
- domains_ensure — Create or update a project-scoped ProjectDomain desired state for web, email sending, inbound receive, mailbox addresses, and activation. Returns the aggregate with checks, DNS records, and next actions.
- domains_get — Get one ProjectDomain aggregate with desired, observed, effective, DNS records, checks, and next actions.
- domains_list — List all ProjectDomain aggregates for a project.
- domains_check — Re-observe DNS/provider state for a ProjectDomain and return the current checks. Useful as a preflight and drift detector before validation cycles.
- domains_apply — Apply safe provider-managed ProjectDomain changes when authority is available. Manual-DNS domains return a typed next action instead of mutating external DNS.
- domains_repair — Repair Run402-owned ProjectDomain infrastructure, such as missing SES receipt-rule recipients, without changing external DNS.
- domains_test_receive — Create a ProjectDomain receive test token for a mailbox address. Send mail to the returned address/token and poll domains_check for receive readiness.
- domains_activate — Activate custom mailbox addresses once ProjectDomain receive checks have passed. This switches addresses from managed fallback to the custom domain.
- domains_disconnect — Disconnect a ProjectDomain from the project and return mailbox addresses to managed fallback.
- create_email_organization — Create an email-based organization (Stripe-only, no wallet required). Sends a verification email. Idempotent — duplicate emails return the existing organization.
- link_wallet_to_organization — Link a wallet to an existing email organization, enabling hybrid Stripe + x402 access. Fails if the wallet is already linked elsewhere.
- set_auto_recharge — Enable or disable automatic email pack repurchase when credits drop below a threshold. Requires a saved Stripe payment method.
- provision_signer — Provision an AWS KMS-backed Ethereum signer for signing smart-contract write transactions. Private keys never leave KMS. Cost: $0.04/day rental ($1.20/month) plus $0.000005 per contract call. Requires $1.20 in cash credit at creation (30 days of rent). Non-custodial.
- get_signer — Get a KMS signer's metadata + live native-token balance + USD-micros (Chainlink-cached price).
- list_signers — List all KMS signers owned by the project, including deleted ones.
- set_recovery_address — Set or clear the optional recovery address used for auto-drain on day-90 deletion of a KMS signer.
- set_low_balance_alert — Set the low-balance threshold (in wei) for a KMS signer. Email alerts fire when the signer's native balance drops below this threshold.
- contract_call — Submit a smart-contract write call from a KMS signer. The gateway encodes via viem, signs the digest via AWS KMS, and broadcasts. Idempotent on optional idempotency_key. Cost: chain gas at-cost + $0.000005 KMS sign fee per call.
- contract_deploy — Deploy a smart contract from a KMS signer (signs a contract-creation tx with `to: null + data: bytecode`). The `bytecode` is full creation calldata — creation bytecode + ABI-encoded constructor args, concatenated client-side (run402 does NOT compile Solidity). Returns the de...
- contract_read — Read-only smart-contract call (view/pure functions). No signing, no gas, no billing — pure RPC convenience.
- get_contract_call_status — Look up a previously submitted contract call by call_id. Returns lifecycle state (pending/confirmed/failed), block number, gas used, gas cost in USD-micros, receipt, and any error.
- drain_signer — Drain a KMS signer's entire native-token balance to a destination address. Works on suspended signers — the safety valve. Cost: chain gas + $0.000005 KMS sign fee.
- delete_signer — Schedule the KMS key for a signer for deletion (7-day AWS minimum window). Refused if the signer has on-chain balance ≥ dust — drain first.
- service_status — Reports on the Run402 SERVICE (availability, capabilities, operator, deployment) — not your organization. For your organization status (allowance, tier, projects), use `status`. Reads public GET /status. No auth, no allowance required.
- service_health — Liveness check for the Run402 SERVICE — not your organization. For your organization status (allowance, tier, projects), use `status`. Reads public GET /health with per-dependency check results. No auth required.
- create_org — Create an empty organization on the prototype tier (POST /orgs/v1); you become its owner. Accepts only an optional `display_name` (no tier input); the response reports `tier`, `lease_started_at`, and `lease_expires_at`. Step-up gated; the soft per-owner free-org cap may return...
- get_org — Read one organization (GET /orgs/v1/:org_id) — its `org_id`, `display_name`, `tier`, `lease_started_at`, `lease_expires_at`, and your `role`. Any active member may read; a non-member (including a guessed id) gets the same non-revealing 403. Params: `org_id`.
- rename_org — Set or clear an organization's display label (PATCH /orgs/v1/:org_id). Owner-only + step-up gated. Pass `display_name: null` (or `""`) to clear. Returns the updated `org_id`, `display_name`, `tier`, `lease_started_at`, and `lease_expires_at`. Params: `org_id`, `display_name`.
Overview
What is Run402?
Run402 is an MCP server that provides core Run402 operations as MCP tools. It allows AI agents to provision and manage a full Postgres database, REST API, user auth, content-addressed file storage, static site hosting, serverless functions, and image generation — all via the Model Context Protocol. The server is designed for use with MCP-compatible hosts such as Claude Desktop, Cursor, Cline, and Claude Code.
How to use Run402?
Install the run402-mcp npm package and configure it as an MCP server in your MCP host. The MCP tools are thin shims over the Run402 SDK and expose the same operations as the CLI and SDK. Refer to your MCP host’s documentation for adding a custom MCP server (e.g., pointing to the run402-mcp binary).
Key features of Run402
- Provision Postgres, storage, and deploys with one MCP call.
- Content-addressed file storage with built-in SRI integrity.
- Dark-by-default API tables managed via expose manifest.
- Serverless functions with same-origin web routes.
- Pay-per-use with USDC on Base or Stripe credits (testnet free).
- Works with Claude Desktop, Cursor, Cline, Claude Code.
Use cases of Run402
- AI agents needing a full backend stack (database, API, auth, hosting).
- Deploying static sites with serverless functions and custom routes.
- Managing database access policies via manifest without manual SQL.
- Hosting and serving assets with automatic cache invalidation.
Frequently asked questions
1 What does Run402 MCP let me do?
It provides MCP tools to create and manage Postgres databases, REST APIs, user auth, file storage, static sites, serverless functions, and image generation — all provisioned from an AI agent.
2 How is Run402 paid for?
Usage is paid with x402 USDC on Base or with Stripe credits. A prototype tier is free on testnet.
3 What are the runtime requirements?
The MCP server is installed via npm (run402-mcp). It requires Node.js (version 22, Deno, Bun, or V8 isolates are supported by the underlying SDK).
4 Where does my data live?
Data is stored on Run402’s cloud infrastructure. The MCP server interacts with the Run402 gateway and CDN.
5 Which MCP hosts are supported?
The MCP server is explicitly designed for Claude Desktop, Cursor, Cline, and Claude Code.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In