Skip to content

AI & Agents

MCP tool reference

The tools @rebasepro/mcp offers an assistant. How it connects, which credential it holds and how the loopback gate decides what ⚠ means are on the MCP server page.

53 tools, in ten groups. Tools marked ⚠ are refused against non-local targets unless you opt out.

Spawn the Rebase CLI in the active project directory.

Tool Required Description
rebase_schema_generate — Generate Drizzle schema from collection definitions
rebase_db_push ⚠ — Apply the schema directly to the database (dev shortcut)
rebase_schema_introspect — Introspect the live database into collection definitions
rebase_db_generate — Generate SQL migration files from schema changes
rebase_db_migrate ⚠ — Run all pending SQL migrations
rebase_generate_sdk — Generate the fully-typed TypeScript SDK
rebase_doctor — Detect drift between definitions, generated schema and the live database
rebase_db_branch_create ⚠ name Create a database branch (admins only)
rebase_db_branch_list — List database branches (admins only)
rebase_db_branch_delete ⚠ name Delete a database branch (admins only)
rebase_db_branch_info name Branch information and status (admins only)
rebase_db_branch_diff name What a branch changed against the database it was made from — schema, policies and rows, with conflicts; changes neither (admins only)
rebase_db_branch_switch — Point this checkout at a branch, or back at the main database (admins only)

Asks the backend what a change would do, over POST /api/admin/schema/plan. No CLI, and nothing written to disk — it works on the managed development database, which the Atlas-backed commands cannot.

Tool Required Description
rebase_schema_plan collectionId, collection The SQL one collection’s change would run, and which statements destroy data
Tool Required Description
list_documents collection List rows, with optional limit, offset, orderBy, where
get_document collection, id Fetch a single row by ID
create_document ⚠ collection, data Create a row
update_document ⚠ collection, id, data Update a row
delete_document ⚠ collection, id Delete a row
Tool Required Description
list_users — List all users, including roles
create_user ⚠ email Create a user (optional displayName, password, roles)
update_user ⚠ uid Update email, display name or roles
delete_user ⚠ uid Delete a user
list_roles — List defined roles
rebase_auth_reset_password ⚠ email Reset a password via the admin API

create_user and update_user both accept roles, so either can mint an admin. That is why they are gated rather than treated as merely “additive”.

Tool Required Description
storage_list_objects — List stored objects
storage_get_download_url key A temporary signed download URL and its expiry — not object metadata
storage_delete_object ⚠ key Delete an object

storage_get_download_url is classified as a read because it does not change the environment — but the signed URL it mints is a bearer capability that outlives the tool call.

Tool Required Description
cron_list_jobs — List scheduled jobs and their status
cron_get_job jobId Job details
cron_get_job_logs jobId Execution logs
cron_trigger_job ⚠ jobId Run a job immediately
cron_toggle_job ⚠ jobId, enabled Enable or disable a job

cron_toggle_job can silently disable a backup or a billing job — a change with no error and no output until something is missing later.

Tool Required Description
invoke_function ⚠ name Invoke a custom function with any method and payload

This calls code the MCP server has never seen, with a method and body the model chose. Its blast radius is whatever your functions do.

Tool Required Description
rebase_dev_start — Start the dev server; returns immediately
rebase_dev_logs — Read recent output (default 50 lines, 500-line buffer)
rebase_dev_stop — Stop the dev server
Tool Required Description
rebase_project_list — List registered projects and show the active one
rebase_project_switch name Change the active project
rebase_project_add name Register a project (optional projectDir, baseUrl, token)
rebase_project_remove name Remove a project (the default project cannot be removed)
rebase_project_current — Show the active project and its auth status
rebase_project_status — Health-check the active backend
rebase_project_use_cloud project Target a Rebase Cloud project of the signed-in account by id, slug or name, through the console’s Studio proxy

rebase_project_switch is not gated, because it retargets everything else rather than acting on a target itself. An assistant can therefore switch to a remote project without tripping the gate — it just cannot then run a destructive tool there. rebase_project_use_cloud is the same kind of switch: it points the data and admin tools at a production project, where reads work and the gate refuses writes.

Spawn rebase cloud … --json in the active project directory, against the project it is linked to, with the CLI’s own credential. See Rebase Cloud for what they act on and why none of them is gated.

Tool Required Description
rebase_cloud_provision — A live backend with no account (rebase cloud init --claim): the live URL, the admin URL and a claim URL (name, deploy)
rebase_cloud_status — The linked project’s URL, status, last deploy, runtime, database, storage, and its claim URL while unclaimed
rebase_cloud_deploy — Deploy and follow it to the end (app, bundle, message, wait, timeoutSeconds, preview, previewName)
rebase_cloud_logs — One snapshot of the runtime log, or the latest build log (source, since, tail, grep, level, previous, preview). Never follows
rebase_cloud_env_list — Variable keys, never values (preview)
rebase_cloud_env_set key, value Set one variable; the value goes through stdin and is never returned (secret, preview)
rebase_cloud_deployments_list — Recent deployments, and which ones can be rolled back to (limit)
rebase_cloud_projects_list — Every project the signed-in account can reach, across all its organizations
rebase_cloud_rollback — Put a previous successful deployment back into service (deploymentId)

rebase_cloud_provision creates a project and links this directory. It never reads the active project’s baseUrl, so the gate does not check it; the CLI refuses it in a directory that is already linked.