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.

Every tool outside the project registry group, rebase_cloud_projects_list, rebase_cloud_provision and rebase_dev_logs also takes an optional project (a registered name, or a Cloud slug or id), checked against the session directory’s Cloud link before it runs. See Which project a call acts on.

Spawn the Corabase CLI in the active project directory.

Tool Required Description
rebase_schema_generate — Generate the Drizzle schema from the tables in backend/schema
rebase_db_push ⚠ — Apply the schema directly to the database (dev shortcut)
rebase_schema_introspect — Write a defineTable into backend/schema for each table the live database holds
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 the tables in backend/schema, the 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 patches The SQL a list of TablePatch edits would run, and which statements destroy data — see Live schema editing

The same names the remote /mcp uses; they were list_documents, get_document, create_document, update_document and delete_document, with a collection argument.

Tool Required Description
query_table table Read rows, with optional limit, offset, orderBy, where, as data.table(name).find() does
get_row table, id Fetch a single row by ID
create_row ⚠ table, data Create a row
update_row ⚠ table, id, data Update a row; only the columns given are touched
delete_row ⚠ table, 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 Corabase 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 Corabase 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, confirm). Without confirm: true it only says what it would do
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, confirm). A production deploy without confirm: true only says what it would do
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, confirm). In production, without confirm: true it only says what it would do
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, confirm). Without confirm: true it only says what it would do

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.