Staticbot
v1.8.2Deploy websites, migrate app backends, and run continuous sync with explicit approval gates.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_account_status
START HERE. The first call of any Staticbot conversation, and the cheapest: it answers in one request who the credential belongs to, which integrations are connected, what the plan allows, and what is actually outstanding — so you never propose work whose prerequisites are missing. Read `pendingAction` and follow it, exactly as you would follow a migration's pendingAction: • CONNECT_SOURCE_CONTROL / CONNECT_DATABASE — nothing can start. Give the user the `url` and stop; do not propose a migration or a deployment until they have connected it and you have called this tool again. • CH…
list_templates
List available templates (slim response: id, name, category, repoLink). Use get_template to see full details including config variables. Templates feed both hosting and migration. Reuse an exact repository match when one exists; otherwise create a new template from the repository resolved through list_source_repositories. Ask the user to choose only when multiple existing templates or repositories are plausible — and when two repositories share a name, show which account each is hosted in (sourceLabel) so the choice is meaningful.
get_template
Get details of a template including its backend-classified configuration variables. Each entry has `key`, `configured` (whether a value is set at all), and sanitized `value`. Staticbot never returns credential values, so read `configured` to tell "withheld" apart from "not set". For migrations, follow `migrationAction`, `collectionStage`, `sensitivity`, `resolution`, `integration`, and `migrationHint`; do not infer meaning or safety from prefixes. Include a configOverride only when `migrationEditable=true`. `migrationBackendDerived=true` means Staticbot derives the value from target state and…
| Parameter | Type | Description |
|---|---|---|
id * | string | Template ID |
create_template
Create a new template by scanning a source repository (GitHub or GitLab). Auto-detects platforms, env vars, and builders. Both public and private repositories are supported through the organization's connected Staticbot source-control integration. Before asking the user for a URL, call list_source_repositories and use an unambiguous repository match from the current client/project context, passing that repository's integrationInstanceId as sourceControlIntegrationInstanceId — with several accounts connected, only that one's token can read the repo, and omitting it makes a private repository…
| Parameter | Type | Description |
|---|---|---|
repoLink * | string | Repository URL (public or private; e.g. https://github.com/owner/repo or https://gitlab.com/group/project). Resolve it with list_source_repositories when a source-control integration is connected. |
name | string | Template name (derived from repo name if omitted) |
sourceControlIntegrationInstanceId | string | The repository's integrationInstanceId from list_source_repositories — the account it is hosted in. Pass it whenever the repo came from discovery: with several accounts connected on one provider, on… |
list_stacks
List all infrastructure stacks. A stack groups one or more templates with a domain assignment. Each stack can have multiple deployments.
get_stack
Get details of a stack including its templates and config overrides. Every override key is listed; values are returned for location-shaped keys (URLs, regions, names, branches) and "[REDACTED]" for credential-shaped ones.
| Parameter | Type | Description |
|---|---|---|
id * | string | Stack ID |
create_stack
Create a new infrastructure stack from a template. A stack ties a template to a domain and becomes deployable. Call list_templates first to find the right templateId. Staticbot analyzes the template's repository and owns the hosting decision: static sites route to the supported AWS static target, SSR/full-stack apps route to the supported Cloudflare Workers target. Report the returned `hostingWorkload`, `deploymentTarget`, and `infrastructureOwnership` fields to the user. **Never invent a provider or an account.** Cloudflare alone accepts an account-placement default during stack creation bec…
| Parameter | Type | Description |
|---|---|---|
domainOption * | How to assign a domain to this stack | |
name * | string | Human-readable name for the stack (e.g. 'My Portfolio Site') |
templateId * | string | Template ID — get this from list_templates |
cloudflareChoice | string | Optional, Cloudflare Workers / SSR apps only. Where to host the app: the `value` of a choice from list_cloudflare_hosting_targets (its `managed.value` for Staticbot hosting, or a `customerOptions[].va… |
configOverrides | object | Non-secret key/value overrides for template config variables. See get_template for available keys. Never put passwords, tokens, private keys, or provider credentials here — secret-looking keys are R… |
supabaseIntegrationInstanceId | string | Optional. Supabase integration instance ID from list_integration_instances. Combined with supabaseProjectRef, enables auto-refresh of anon keys from Supabase Management API on each deploy — you neve… |
supabaseProjectRef | string | Optional. Supabase project reference (the subdomain part of https://<ref>.supabase.co) — get it from list_supabase_projects. Must be set together with supabaseIntegrationInstanceId to enable auto-re… |
list_deployments
List all deployments. Optionally filter by stackId. Each deployment represents one execution of a stack's infrastructure.
| Parameter | Type | Description |
|---|---|---|
stackId | string | Filter deployments by stack ID |
create_deployment
Create a new deployment for a stack. This prepares the deployment but does NOT start it — call start_deployment next. Default type is APPLY (creates real resources). Use PLAN for a dry-run preview. For an AWS-hosted stack, call list_aws_hosting_targets with the stackId first and pass the selected option's exact `value` as targetAccountId. That value DECIDES infrastructure ownership: the managed value means Staticbot-managed hosting and a customer account value means customer-managed hosting. Never invent an account id or send infrastructureOwnership. Do not set cloudflareChoice or cloudfla…
| Parameter | Type | Description |
|---|---|---|
stackId * | string | Stack ID to deploy |
cloudflareChoice | string | Optional, Cloudflare Workers apps deployed into the user's own account only. The `value` of a choice from list_cloudflare_hosting_targets. Omit to use the stack's existing hosting (Staticbot's account… |
cloudflareHostname | string | Optional. The hostname the app will serve, e.g. 'example.com' or 'app.example.com'. Required together with a customer cloudflareChoice, and one of the hostnames that account's zones cover. Apex is sup… |
deploymentType | string | APPLY creates real infrastructure (default). PLAN shows what would change without creating anything. DRY_RUN validates the template. |
targetAccountId | string | AWS-hosted stacks only. The exact `value` selected from list_aws_hosting_targets. This value is the ownership choice: the managed value means Staticbot-managed infrastructure; a customer account value… |
start_deployment
Start a deployment that was created with create_deployment. The deployment must be in CREATED status. Once started, Staticbot provisions the repository-derived target stored on the stack. Poll get_deployment to track progress.
| Parameter | Type | Description |
|---|---|---|
id * | string | Deployment ID |
get_deployment
Get the status of a deployment and the per-domain DNS state. Poll this for progress. Statuses: CREATED → PENDING → IN_PROGRESS → WAITING → COMPLETED (or FAILED). **Response fields you should always read:** - `status` — pipeline state. - `dns` — per-domain DNS state, populated once Terraform emits a state snapshot. Present regardless of `status`; check it on every poll, not just on WAITING. - `requiredAction` — legacy; only set when `status=WAITING` and there are records to add. Prefer `dns`. **For each entry in `dns`, read `action` and behave as follows:** - `NO_ACTION` — reg…
| Parameter | Type | Description |
|---|---|---|
id * | string | Deployment ID |
push_dns_to_cloudflare
Push a deployment's certificate-validation and website-routing DNS records into the customer's linked Cloudflare zone. This is an external DNS write, although it is idempotent and never changes nameservers or mail records. First call get_deployment and select the exact dns item whose action is OFFER_CLOUDFLARE_PUSH; pass the deployment response's id as deploymentId and that DNS item's domainId as domainId. Present the intended action and obtain the user's authorization before calling. Do not infer a domain ID, use this for MANUAL_RECORDS_AT_REGISTRAR, or describe it as DNS delegation. Present…
| Parameter | Type | Description |
|---|---|---|
deploymentId * | string | Deployment ID returned by get_deployment |
domainId * | string | Exact domainId from the OFFER_CLOUDFLARE_PUSH item in get_deployment.dns |
recheck_dns_verification
Ask Cloudflare to retry custom-hostname domain-control validation for a Cloudflare Workers deployment, then return refreshed certificate and hostname-routing status. Call this after DNS records were published or when the user explicitly asks to recheck verification. This action does not write DNS records or change nameservers. A null result means the deployment has no applicable Cloudflare custom hostname. Surface verificationErrors and do not report the domain live unless both customHostnameStatus and hostnameStatus are active.
| Parameter | Type | Description |
|---|---|---|
deploymentId * | string | Cloudflare Workers deployment ID |
list_aws_hosting_targets
Use this when an existing stack's deploymentTarget is AWS_STATIC and you need to choose which AWS account will own its next deployment. Call it with that stack's stackId before create_deployment because managed-account eligibility and the current selection are stack-specific. Render the response; do not derive or repair it: - `managed` is the Staticbot-hosted option. It can be null; when null, do not offer it. - `customerOptions` contains ready-to-render `label`s and opaque `value`s for connected customer accounts. - `notices` explains why an option is absent or unusable. Surface every notice…
| Parameter | Type | Description |
|---|---|---|
stackId | string | Optional stack ID. Supply it before create_deployment so `managed`, `notices`, and `selectedValue` reflect that stack's AWS hosting rules. |
list_cloudflare_hosting_targets
List the Cloudflare accounts this app can be hosted in: Staticbot's managed account (the default) plus any Cloudflare account the user has connected. Call this before create_stack or create_deployment for a Cloudflare Workers / SSR app whenever the user has a connected Cloudflare account and might want the Worker deployed into it rather than hosted by Staticbot. Read the response, do not compute from it: - `managed` is the Staticbot-hosted option. It is always present and always valid. - `customerOptions` lists the user's own accounts — each with a ready-to-render `label` and the `value` yo…
| Parameter | Type | Description |
|---|---|---|
stackId | string | Optional stack ID. When supplied, `selectedValue` and `selectedHostname` come back as that stack's current hosting choice and hostname, suitable as the default selection. |
preflight_cloudflare_hosting
Check that a hosting choice and hostname can actually be deployed, before create_stack or create_deployment. Read-only: it never creates, deletes or takes over anything. It answers for the managed choice too, so call it the same way whichever option the user picked. **How to use the result:** - `ok: true` — deployable. Report `connectionLabel`, and `hostname` / `workerName` when present. `note` may add useful context (for example that an apex hostname is supported). - `ok: false` — **do not create anything.** Show the user `blockingMessage` verbatim; it names the exact collision and what…
| Parameter | Type | Description |
|---|---|---|
choice * | string | The `value` of the chosen option from list_cloudflare_hosting_targets — either its `managed.value` or a `customerOptions[].value`. Pass it through unchanged. |
hostname * | string | The hostname the app will serve, e.g. 'example.com' or 'app.example.com'. Required for a customer account (apex is supported); ignored for the managed choice. |
get_auto_deploy_settings
Get the automatic-update flags for a deployment. `autoDeployLatestWebsite` controls whether a new website template version is deployed automatically; `autoDeployLatestInfra` is reserved for infrastructure updates.
| Parameter | Type | Description |
|---|---|---|
id * | string | Deployment ID |
update_auto_deploy_settings
Update automatic-update flags for a deployment. Omitted fields keep their current values. IMPORTANT: Confirm the requested settings with the user before calling this tool.
| Parameter | Type | Description |
|---|---|---|
id * | string | Deployment ID |
autoDeployLatestInfra | boolean | Enable or disable automatic infrastructure template updates (reserved for future use) |
autoDeployLatestWebsite | boolean | Enable or disable automatic deployment of new website template versions |
get_auto_deploy_info
Check whether Automatic Updates are available for a deployment and inspect its GitHub webhook state. Returns fields including `available`, `webhookConfigured`, `canSetupWebhook`, and `isGithubRepo`. Automatic Updates do not apply to preview stacks.
| Parameter | Type | Description |
|---|---|---|
id * | string | Deployment ID |
list_rollback_versions
List the recent commit-pinned website template versions that are valid rollback targets for a deployment, newest first. Use only a returned `templateId` with rollback_website; do not infer a target from a commit SHA or version label.
| Parameter | Type | Description |
|---|---|---|
id * | string | Deployment ID |
rollback_website
Roll a static website back to a specific commit-pinned template version. Call list_rollback_versions first. IMPORTANT: Present the exact returned target version and commit to the user and get explicit confirmation before calling this tool. Never supply an inferred or unverified template ID. Returns the worker job ID; poll get_deployment to track progress.
| Parameter | Type | Description |
|---|---|---|
id * | string | Deployment ID |
templateId * | string | Target template version ID from list_rollback_versions |
redeploy_website
Rebuild and redeploy the static website component. By default it redeploys the currently pinned template version; set `useLatest=true` to pull the latest version first. Returns the worker job ID; poll get_deployment to track progress.
| Parameter | Type | Description |
|---|---|---|
id * | string | Deployment ID |
useLatest | boolean | Pull the latest website template version before redeploying (default: false) |
list_migrations
List all migrations. Optionally filter by status. Migrations orchestrate moving a full project (database, auth, storage, edge functions) from a source platform (Lovable, Bolt, Firebase, Base44) to target Supabase infrastructure.
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by migration status |
get_migration
Get the current status and phase breakdown of a migration. The response includes all migration phases (Discovery, DB Migration, Data Import, Edge Functions, Storage Buckets, Auth Config, Backend Switchover, Preview & Verify, Continuous Sync, Download, Follow-ups) with their individual statuses, plus sourceType (LOVABLE_SUPABASE / BOLT_SUPABASE / FIREBASE / BASE44_SUPABASE / BASE44_NATIVE), targetType (SUPABASE_CLOUD / SUPABASE_SELF_HOSTED), and packageAvailable (true once the downloadable zip is ready — fetch via download_package). **Self-navigating:** the response includes a `pendingAction…
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
get_migration_discovery_report
Read the migration's discovery report and its revisionId. Present source coverage (including unknown or partial areas), findings, proposed work and approvalBlockers before asking the user to approve initial execution. Reading may retain a proposal but never starts migration or records approval. Send the exact reviewed revisionId as approvedRevisionId to confirm_migration only after explicit approval. A stale-plan 409 needs a fresh report and a new approval; never approve a changed revision automatically. Approved reports are historical and read-only; legacy baselines do not establish customer…
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
get_migration_execution_revisions
Read retained, sanitized migration execution revisions. A discovery proposal or legacy baseline is not proof of approval; get_migration_discovery_report identifies the approved report. Opaque code, SQL and credentials are withheld. Reading never starts work or activates a replacement plan.
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
get_migration_job_history
Read retained, sanitized job attempts and amendments, newest payload versions first, including deleted queue jobs. Use the oldest returned payloadVersion as the exclusive beforeVersion cursor for another page. Missing historical evidence remains unknown; credentials and opaque SQL/code bodies are withheld. Reading never retries or repairs work.
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID owning the job |
jobId * | string | Current or deleted migration job ID |
beforeVersion | integer | Exclusive payload-version cursor |
limit | integer | Page size, default 25, maximum 100 |
confirm_migration
Approve the exact reviewed discovery plan, resolve a pre-flight strategy choice, or resume an already approved/legacy migration. Initial execution writes tables and data to the target: first fetch get_migration_discovery_report, present its findings, unknown coverage, proposed work and approvalBlockers, obtain the user's explicit approval, then send that report's revisionId as approvedRevisionId. On a stale-plan 409, fetch and present the updated report and ask again; never substitute a revision automatically. With gateChoice, this records the strategy and returns to review at every gating lev…
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
approvedRevisionId | string | Exact revisionId explicitly reviewed and approved from get_migration_discovery_report. Required for initial execution; omit for a strategy choice or already approved/legacy resume. |
gateChoice | string | Exact enabled action ID from get_migration.preFlightGate.actions. Required when pendingAction.type is CHOOSE_MIGRATION_STRATEGY; do not invent or default a value. |
gateSelection | string | For USE_OFFICIAL_EXPORT only: a path from preFlightGate.exportFiles. Omit to restore the newest detected export. |
recheck_migration_gate
Run a pre-flight gate's re-check action: the enabled action in get_migration.preFlightGate.actions whose ID is RECHECK_EXPORT, RECHECK_OFFICIAL_EXPORT, RECHECK_CAPACITY or RECHECK_TARGET_EMPTY. These never go to confirm_migration, which refuses them. A re-check only queues a fresh measurement: it does not confirm or start the migration, and the migration stays paused. Each assumes the user fixed something outside Staticbot first, so ask them to do that and confirm it is done before calling: RECHECK_EXPORT / RECHECK_OFFICIAL_EXPORT — they created a Cloud Data export in their Lovable project (…
| Parameter | Type | Description |
|---|---|---|
action * | string | Exact enabled re-check action ID from get_migration.preFlightGate.actions |
id * | string | Migration ID |
get_clean_target_plan
Inspect a destructive target cleanup BEFORE asking the user to authorize it. Always call this immediately before presenting cleanup, and never rely on the targetConflictReport from an earlier get_migration: that is a snapshot taken at discovery, while this is the current state of the target. Returns `available` (cleanup is only possible before execution starts, and only for Supabase Cloud targets) with `unavailableReason` when it is not, the exact `confirmationProjectRef` the user must approve, `countsAvailable` plus live per-scope `rows` describing what each of DATABASE, STORAGE and PROJECT w…
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
clean_migration_target
Destructively clean conflicting objects from a Supabase Cloud migration target before execution starts. Call get_clean_target_plan first and take confirmProjectRef from its response — it reports the live state and whether cleanup is even available. DATABASE deletes user-created database objects, Supabase migration history, and existing authentication users/sessions while preserving Storage. STORAGE empties and deletes every Storage bucket and file while preserving database/auth data. PROJECT performs both cleanups. This cannot be undone. Before calling, get the migration, present the exact s…
| Parameter | Type | Description |
|---|---|---|
confirmProjectRef * | string | Exact targetConflictReport.confirmationProjectRef repeated after explicit user confirmation |
id * | string | Migration ID |
scope * | string | Exact destructive scope explicitly approved by the user |
resume_migration
Resume a migration that is PAUSED_BY_USER or PAUSED_FOR_USER_ACTION. Use this after the user has completed the required manual step (e.g. DNS configuration, backend switchover review).
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
pause_migration
Pause a running migration. The current in-progress job will finish, but no new jobs will be started. Use resume_migration to continue later.
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
set_migration_gating_level
Change how often a migration stops for the user. GUARDED stops at every choice, before every phase, and asks who can see data that has no access rules. STREAMLINED takes the recommended option and stops only when it cannot continue safely and still requires initial plan approval; lowering to STREAMLINED lets Staticbot answer phase reviews that are currently open with its suggestion. Call only when the user explicitly asks — never to get past a stop yourself. Refused while the migration is IN_PROGRESS: pause it first (with the user's agreement).
| Parameter | Type | Description |
|---|---|---|
gatingLevel * | string | The level the user asked for |
id * | string | Migration ID |
get_migration_jobs
Get all jobs for a migration. Jobs are the individual work units within each phase (e.g. 'migrate_schema', 'import_data', 'deploy_edge_function_X'). Use this to understand what's happening at a granular level, diagnose failures, or find a jobId for retry/skip. For IN_PROGRESS long-running jobs (e.g. CALL_EXPORT_TO_TARGET on multi-table sources), each job's `progressMessage` field carries a human-readable subtitle like "Exporting table 'startups' (8/10)" so you can report concrete progress without waiting for completion. Each job also carries `skipGuard`: null means it is freely skippable, non-…
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
get_app_secrets
Which secrets (API keys for third-party services — Stripe, OpenAI, AWS and the like) a migrated app uses, which already have a value, what the app uses each for, and where a saved value is applied — names and states only, never a value. Pass connectedProjectId for a project (the app after go-live), migrationId for a migration, or stackId for a stack that deploys a migrated app (its preview, or a hosted version, including ones Continuous Sync minted). A project's answer is per ENVIRONMENT — what its deployments run against (the Supabase project and its values). An environment is not a pip…
| Parameter | Type | Description |
|---|---|---|
connectedProjectId | string | Connected project ID — the app after go-live; answers per environment |
migrationId | string | Migration ID. Ignored when connectedProjectId is given. |
stackId | string | Stack ID, for a stack that deploys a migrated app. Ignored when connectedProjectId or migrationId is given. |
retry_migration_job
Retry a failed migration job, or a skipped one whose `retryableAfterSkip` is true. It will be reset to READY and picked up by the worker again. A skipped SQL file can be retried while the migration is paused: it runs first, and whatever step is failing then runs again after it; retry one skipped file at a time. Use get_migration_jobs first to find the job's ID, error message and retryableAfterSkip.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Migration job ID (from get_migration_jobs) |
skip_migration_job
Skip a migration job that is blocking progress. The job will be marked as SKIPPED and dependent jobs will proceed. Use this when a job is non-critical (e.g. an edge function that can be deployed manually later) or when retry won't help. FIRST check the job's `skipGuard` from get_migration_jobs. When it is non-null, skipping breaks the rest of the migration — present `skipGuard.consequence` and `skipGuard.alternative` to the user verbatim, get explicit approval, then call again with acknowledged=true. The jobs that deploy the Staticbot export function to the source project (MANUAL_SYNC_LOVABL…
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Migration job ID (from get_migration_jobs) |
acknowledged | boolean | Required for jobs with a non-null skipGuard. Only set true after the user has been shown the consequence and has explicitly agreed. |
get_migration_deployments
List all AWS deployments associated with a migration's infrastructure stack. Migrations that deploy to AWS (self-hosted Supabase) create deployments for the infrastructure provisioning.
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
create_migration
Create a new migration. Starts a multi-phase pipeline: Discovery → DB Migration → Data Import → Edge Functions → Storage Buckets → Auth Config → Backend Switchover → Preview & Verify → Continuous Sync → Download → Follow-ups. Two delivery modes via targetType: • SUPABASE_CLOUD (default) — Staticbot applies the migration end-to-end against a managed Supabase project you own. Requires targetSupabaseProjectRef plus the Supabase integration instance. • SUPABASE_SELF_HOSTED — Staticbot runs discovery + data export, then produces a downloadable AES-256-encrypted zip…
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable name for this migration |
base44AppId | string | Base44 app id (24-char hex) to migrate, from list_base44_apps. Required for BASE44_NATIVE: a Base44 personal access token is scoped to a workspace and reaches every app in it, so the integration does… |
configOverrides | object | Optional non-secret creation-time values. Call get_template and include only keys where the backend reports migrationEditable=true and migrationAction is REQUIRED_INPUT or OPTIONAL_OVERRIDE. Never sen… |
description | string | Optional human-readable migration description |
gatingLevel | string | How often the migration stops for the user. Omit to use the default for this connection (GUARDED). STREAMLINED only when the user explicitly asks for fewer stops. |
githubIntegrationInstanceId | string | GitHub integration instance ID for repo access |
packageOptions | object | Optional self-hosted package build options for BASE44_NATIVE migrations. |
sourceDeployedUrl | string | Deployed *.base44.app URL used only for legacy BASE44_SUPABASE source discovery. Staticbot extracts source metadata server-side and never returns keys. |
sourceIntegrationInstanceId | string | Source integration instance ID. Required for BASE44_NATIVE (the Base44 integration from list_integration_instances). Omit for other source types. |
sourceType | string | Source platform. Defaults to LOVABLE_SUPABASE. |
supabaseIntegrationInstanceId | string | Supabase integration instance ID (from list_integration_instances). Required for SUPABASE_CLOUD; omit for SUPABASE_SELF_HOSTED. |
targetSchemaName | string | Optional target Postgres schema name |
targetSupabaseProjectRef | string | Target Supabase project reference (the subdomain part of the URL). Required for SUPABASE_CLOUD; omit for SUPABASE_SELF_HOSTED. |
targetType | string | Target delivery mode. SUPABASE_CLOUD (default) for managed Supabase; SUPABASE_SELF_HOSTED produces a downloadable package instead of applying to a target project. |
templateId | string | Template ID for the target infrastructure (from list_templates). Required for every source type reachable from here. |
download_package
Fetch the downloadable migration package for a migration. Returns a presigned URL to the AES-256-encrypted zip plus the password to extract it. Availability: • SUPABASE_SELF_HOSTED: this is the delivery mechanism. The user unzips with the password, runs Claude Code against the folder, and follows the bundled CLAUDE.md to apply the migration to their self-hosted Supabase. • SUPABASE_CLOUD: this is a portable backup of the applied migration (re-applicable to any Supabase later). The package is ready once the GENERATE_PACKAGE job is COMPLETED — check via get_migration_jobs first. Call…
| Parameter | Type | Description |
|---|---|---|
id * | string | Migration ID |
complete_migration_job
Complete a manual job that requires user action. Used for jobs with type MANUAL_SYNC_LOVABLE, MANUAL_SYNC_BASE44, MANUAL_EXPORT_DATA, MANUAL_IMPORT_DATA, etc. The job must be in READY status. For MANUAL_SYNC_LOVABLE / MANUAL_SYNC_BASE44 you normally do NOT need this tool: ask the user to open their Lovable project and paste 'deploy staticbot edge function' into the Lovable AI chat (Base44: sync the project from GitHub). Staticbot detects the deployed function and completes the step by itself within about 15 seconds — poll get_migration, or call validate_function_url to check immediately (a r…
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Migration job ID (from get_migration_jobs) |
accessDefault | string | MANUAL_REVIEW_DATA_ACCESS only: the user's choice for every listed entity. |
accessOverrides | object | MANUAL_REVIEW_DATA_ACCESS only: {EntityName: option} for entities the user wants different from accessDefault. Only entities listed in the job's inputData.entities are accepted. |
approvedSql | string | User-reviewed DDL (MANUAL_REVIEW_SCHEMA only). Omit for every other manual job type. |
functionUrl | string | Edge function URL (required for MANUAL_SYNC_LOVABLE; omit for MANUAL_SYNC_BASE44) |
choose_data_import_method
Choose how to import data in Phase 3. Call this when a MANUAL_CHOOSE_DATA_IMPORT_METHOD job is READY. IMPORTANT: You MUST present these options to the user and ask them to choose before calling this tool: 1. 'automated' (recommended) — Staticbot deploys an edge function, exports data, imports to target, copies storage, migrates secrets/cron/auth. Fully automated. 2. 'manual' — User exports data from Lovable and imports via Supabase SQL editor themselves. Do NOT pick an option without asking the user first. When the source check (PROBE_SOURCE) already deployed and verified the export f…
| Parameter | Type | Description |
|---|---|---|
jobId * | string | The MANUAL_CHOOSE_DATA_IMPORT_METHOD job ID |
method * | string | Import method |
migrationId * | string | Migration ID |
choose_backend_switchover
Choose how to handle backend switchover in Phase 7. Call when MANUAL_CHOOSE_BACKEND_SWITCHOVER is READY. IMPORTANT: You MUST present these options to the user and ask them to choose before calling this tool. Four `choice` values are supported (use the literal string in your `choice` arg): 1. 'switch-fully-to-supabase' (method='auto') — Staticbot opens a GitHub PR that replaces ALL Supabase env vars (URL, anon key) in the repo with the migrated target's values. After the PR is merged, BOTH the source platform's previews AND production use the new Supabase. This is the 'I'm leaving Lovable/B…
| Parameter | Type | Description |
|---|---|---|
jobId * | string | The MANUAL_CHOOSE_BACKEND_SWITCHOVER job ID |
method * | string | Switchover method |
migrationId * | string | Migration ID |
choice | string | Switchover strategy: 'switch-fully-to-supabase' | 'source-preview-supabase-prod' | 'source-primary-supabase-backup' | 'handle-myself' (or the deprecated `lovable-*` aliases for backward compat) |
choose_frontend_deploy
Choose how to handle frontend deployment in Phase 8 (Next Steps). Call when MANUAL_CHOOSE_FRONTEND_DEPLOY is READY. IMPORTANT: You MUST present these options to the user and ask them to choose before calling this tool: 1. 'continuous-sync' (method='continuous-sync', choice='setup-continuous-sync') — Sets up automatic GitHub-to-target sync. Every push to the repo automatically deploys to the new Supabase. Recommended for most users. 2. 'staticbot' (method='staticbot', choice='deploy-with-staticbot') — Deploy the frontend with Staticbot. Staticbot analyzes the repository and selects the…
| Parameter | Type | Description |
|---|---|---|
jobId * | string | The MANUAL_CHOOSE_FRONTEND_DEPLOY job ID |
method * | string | Deploy method |
migrationId * | string | Migration ID |
choice | string | Deploy strategy |
validate_function_url
Check that the Staticbot export edge function is reachable, and COMPLETE its sync step when it is. Use after the user pasted 'deploy staticbot edge function' into the Lovable AI chat (Base44: synced from GitHub). The function URL is in the MANUAL_SYNC_LOVABLE / MANUAL_SYNC_BASE44 job's inputData (function_url), or derive it as https://{sourceProjectRef}.supabase.co/functions/v1/{functionName}. Returns {status: 'ok'|'error', message, completed}. completed=true means the step is done — by this call or because Staticbot already detected the deployment — so do NOT call complete_migration_job a…
| Parameter | Type | Description |
|---|---|---|
functionUrl * | string | Edge function URL to validate |
jobId * | string | The MANUAL_SYNC_LOVABLE or MANUAL_SYNC_BASE44 job ID |
list_integration_instances
List all connected integrations for the organization. Each instance has a 'type' field identifying whether it is 'supabase', 'github', 'base44', etc. Use the instance with type='supabase' as supabaseIntegrationInstanceId, type='github' as githubIntegrationInstanceId, and type='base44' as sourceIntegrationInstanceId (for BASE44_NATIVE migrations) when calling create_migration. To resolve a repository, call list_source_repositories instead — it covers every connected source-control account in one call and reports which account each repository is hosted in. Use this tool for the supabase/base44…
list_source_repositories
List all public and private repositories accessible through the organization's connected Staticbot source-control integrations — GitHub and GitLab. Call this whenever a workflow needs a repository, with NO arguments: it covers every connected account in one call. An organization can connect several accounts on the same provider, and passing one instance ID narrows the listing to that account, which hides the others' repositories — only do that when the user has already chosen an account. The response is { sources[], repositories[] }. Each repository has `fullName`, `webUrl`, `private`, `de…
| Parameter | Type | Description |
|---|---|---|
integrationInstanceId | string | Optional: restrict the listing to ONE connected account (from list_integration_instances or a previous sources[] entry). Omit to list every connected account, which is almost always what you want. |
list_github_repositories
Deprecated — use list_source_repositories, which serves GitHub and GitLab through one tool. Lists the public and private GitHub repositories accessible through a connected Staticbot GitHub integration: call list_integration_instances first, then pass the selected GitHub instance ID here. Returns a flat array whose repository URL field is `htmlUrl`. Never claim that Staticbot requires a public repository.
| Parameter | Type | Description |
|---|---|---|
githubIntegrationInstanceId * | string | GitHub integration instance ID (from list_integration_instances) |
list_supabase_projects
List all Supabase projects accessible through a connected Supabase integration instance. Returns project name, reference ID, region, and status. Use the project's id field as targetSupabaseProjectRef when creating a migration. Only ACTIVE_HEALTHY projects can be used as targets. Present the list and let the user choose an existing target, or offer to create a customer-owned project with create_supabase_project.
| Parameter | Type | Description |
|---|---|---|
supabaseIntegrationInstanceId * | string | Supabase integration instance ID (from list_integration_instances) |
list_supabase_organizations
List the Supabase organizations accessible through a connected Supabase integration instance. Call this before create_supabase_project and present the organization names to the user. Use the selected organization's id unchanged as organizationId. Do not guess an organization when more than one is available.
| Parameter | Type | Description |
|---|---|---|
supabaseIntegrationInstanceId * | string | Supabase integration instance ID (from list_integration_instances) |
list_supabase_regions
List the regions Staticbot supports when creating a customer-owned Supabase project. Call this before create_supabase_project and use the user's selected region id unchanged. When the user has not expressed a location preference, explain the available choices rather than silently choosing one.
| Parameter | Type | Description |
|---|---|---|
supabaseIntegrationInstanceId * | string | Supabase integration instance ID (from list_integration_instances) |
create_supabase_project
Create a new project directly inside the customer's selected Supabase organization. This changes an external account, consumes a project slot, and may affect the customer's Supabase billing. Before calling, use list_supabase_organizations and list_supabase_regions, present the exact project name, organization, and region, and obtain the user's explicit confirmation. Staticbot generates and encrypts the database password; it is intentionally never returned through MCP. Provisioning is asynchronous: after creation, call get_supabase_project_status with the returned id until healthy=true. Do not…
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact project name explicitly confirmed by the user |
organizationId * | string | Exact Supabase organization id selected from list_supabase_organizations |
region * | string | Exact region id selected from list_supabase_regions |
supabaseIntegrationInstanceId * | string | Supabase integration instance ID (from list_integration_instances) |
get_supabase_project_status
Read the lifecycle state of a Supabase project created or selected through Staticbot. After create_supabase_project, poll this tool until healthy=true before using the project as a migration target. A transitioning state means wait; it is not permission to create another project. Stop and report the returned state if unavailable=true.
| Parameter | Type | Description |
|---|---|---|
projectRef * | string | Supabase project reference returned as create_supabase_project.id |
supabaseIntegrationInstanceId * | string | Supabase integration instance ID (from list_integration_instances) |
list_base44_apps
List the Base44 apps a connected Base44 integration can migrate. Call this before create_migration for any BASE44_NATIVE migration: a Base44 personal access token is scoped to a WORKSPACE and reaches every app in it, so the integration alone does not identify which app to migrate. Pass the chosen app's `id` as create_migration's `base44AppId`. Ask the user which app when more than one is returned — never guess, and never assume the first or the most recently edited one is meant. Migrating the wrong app is not cheaply reversible. An empty list means the token cannot see any apps: usually a to…
| Parameter | Type | Description |
|---|---|---|
base44IntegrationInstanceId * | string | Base44 integration instance ID (from list_integration_instances, type='base44') |
list_connected_projects
List all connected projects. Connected projects sync changes from a GitHub repo to a target Supabase instance and optional Staticbot deployment. After a migration completes, enable continuous sync to keep the target up-to-date with Lovable, Bolt, Base44, or Firebase changes.
| Parameter | Type | Description |
|---|---|---|
syncMode | string | Filter by sync mode |
get_connected_project
Get details of a connected project including sync mode, webhook status, linked migration, and deployment.
| Parameter | Type | Description |
|---|---|---|
id * | string | Connected project ID |
list_connected_project_previews
List every tracked branch preview for a connected project, including the preview deployment ID, raw deployment status, preview URL, and dashboard status URL. Always use deploymentStatus to distinguish builds in progress from FAILED, ABORTED, or COMPLETED previews; hasPreview only means preview resources exist.
| Parameter | Type | Description |
|---|---|---|
id * | string | Connected project ID |
trigger_sync
Trigger a manual sync for a connected project. Detects changes since the last sync (new database migrations, edge function updates, frontend changes) and applies them to the target Supabase instance and the project's Staticbot-selected deployment target.
| Parameter | Type | Description |
|---|---|---|
id * | string | Connected project ID |
commitSha | string | Specific commit SHA to sync to (defaults to latest on branch) |
list_sync_runs
List sync run history for a connected project. Each sync run represents one execution of the sync pipeline — applying migrations, deploying edge functions, and rebuilding the frontend.
| Parameter | Type | Description |
|---|---|---|
id * | string | Connected project ID |
get_sync_run
Get details of a specific sync run including status, source and target repository versions, summary of changes, and error information. Use the returned version fields when explaining or reviewing the diff; do not infer them. Statuses: PENDING → IN_PROGRESS → COMPLETED/FAILED. Destructive migrations cause PAUSED_FOR_REVIEW.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Connected project ID |
runId * | string | Sync run ID |
get_sync_run_jobs
Get all jobs for a sync run. Jobs are the individual work units (e.g. apply_migration, deploy_edge_function, frontend_deploy). Use this to diagnose sync failures at the job level.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Connected project ID |
runId * | string | Sync run ID |
confirm_sync_run
Confirm a sync run that is PAUSED_FOR_REVIEW. Destructive database migrations (DROP TABLE, ALTER COLUMN) pause the sync for review before applying. Optionally skip the destructive migrations instead of applying them. WARNING: skipDestructive is PERMANENT, not a deferral. The run still completes, so the next sync diffs from this run's commit and the skipped migrations are never re-applied — they stay in the repo, absent from the live database, and nothing reports the divergence. Later migrations that assume the change will fail with errors that look unrelated. The API returns 400 unless ackno…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Connected project ID |
runId * | string | Sync run ID |
acknowledged | boolean | Required with skipDestructive. Only set true after the user has been shown that the skip is permanent and has explicitly agreed. |
skipDestructive | boolean | If true, skip destructive migrations instead of applying them |
retry_sync_run
Retry a connected-project sync run in FAILED status. Resets its failed jobs to PENDING and reopens the run. Use get_sync_run and get_sync_run_jobs first to explain the failure to the user.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Connected project ID |
runId * | string | Failed sync run ID |
skip_sync_run
Skip all failed jobs in a connected-project sync run, marking them completed with `skipped=true`. The run must be FAILED. WARNING: this is PERMANENT, not a deferral. The run completes, so the next sync diffs from this run's commit and the skipped migrations are never re-detected — they stay in the repo, absent from the live database, and nothing reports the divergence afterwards. Prefer retry_sync_run: most sync failures are transient (expired token, upstream 5xx, timeout), and re-applying a migration that already landed is safe — it is detected as already-existing rather than failing. The…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Connected project ID |
runId * | string | Failed sync run ID |
acknowledged | boolean | Only set true after the user has been shown which work is permanently discarded and has explicitly agreed. |
get_sync_schema_gaps
List SQL migrations that continuous sync was asked to apply to this project's live database and never applied — a run failed and was never retried, or the work was skipped — where the diff window has since moved past them, so no future sync will re-offer them. Each entry means the file exists in the repo and is missing from the database. An empty list is the healthy case. Report these to the user; do NOT try to re-apply them automatically — replaying months-old DDL against a live database is the user's decision.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Connected project ID |
set_connected_project_sync_mode
Change a connected project's continuous-sync mode. AUTOMATIC syncs every push (and requires a Supabase backend), MANUAL syncs only when trigger_sync is called, PAUSED ignores pushes, and ARCHIVED stops syncing. IMPORTANT: Confirm the new mode with the user before calling this tool.
| Parameter | Type | Description |
|---|---|---|
id * | string | Connected project ID |
syncMode * | string | New continuous-sync mode |
create_migration_preview
Trigger (or retrieve) a preview deployment for a migration. The preview builds the migrated app on Staticbot's infrastructure so the customer can verify it works before finalising backend switchover. Optional mode: 'light' (fast, single SOFTWARE job) or 'full'.
| Parameter | Type | Description |
|---|---|---|
migrationId * | string | Migration ID |
mode | string | Preview mode (default: light) |
resolve_schema_gap
Resolve a MANUAL_REVIEW_SCHEMA_GAP gate. IMPORTANT: You MUST present these options to the user and ask them to choose before calling: 1. 'recheck' — Re-check the source schema for drift. 2. 'abort' — Skip the migration. Do NOT pick an option without asking the user first.
| Parameter | Type | Description |
|---|---|---|
action * | string | Resolution action |
jobId * | string | The MANUAL_REVIEW_SCHEMA_GAP job ID |
migrationId * | string | Migration ID |