MCP tool reference
Everything your connected assistant can do, grouped by area — build, data, agents, branches, auth, hosting.
Tool reference
Once connected over MCP, your assistant has direct access to the platform. The most-used tools, by area:
Build & generate
workspaces-list / workspaces-get- List your workspaces and inspect onboarding status.
workspaces-create- Create a workspace from a one-line purpose description.
plan_backend_change / apply_backend_plan- Hand over the whole backend change and review the plan, then deploy it. apply_backend_plan is the only tool that deploys.
ask_backend- Ask Codata about a workspace, look up its data, or investigate a problem. It answers and never changes anything.
publish_app- Ship the app your agent built in your project. Codata chat does not build apps.
workspaces-planChange- Preview the impact of a spec change before applying it.
workspaces-generate- Generate (deploy) a workspace and get back the integration kit.
workspaces-getIntegrationKit- Re-fetch SDK files and config for an already-generated workspace.
workspaces-getApiUsage- Framework-specific integration snippets (Next.js, Express, SvelteKit, …).
workspaces-validateIntegration- Verify your project is correctly wired to the workspace.
Data
workspaces-invoke-read- Call generated GET endpoints — collections, single records, filters.
workspaces-invoke-write- POST/PUT/PATCH/DELETE with idempotency-key support.
query_data- Natural-language read-only queries — returns rows plus the SQL that ran.
Agents & realtime
workspaces-getAssetSetup / saveAssetSetup- Read and persist managed-asset config (agent, realtime, notifications).
workspaces-invokeAsset-write- Start an agent run (POST /{'{agent}'}/runs).
workspaces-invokeAsset-read- Poll an agent run until it succeeds or fails.
Branches & versions
workspaces-createBranch / listBranches / getBranch- Fork and inspect branches.
workspaces-setBranchContext- Pin a branch as the session default.
workspaces-mergePreview / mergeBranch- Dry-run then apply a merge with per-conflict resolutions.
workspaces-listVersions / rollback- Deploy history and append-only rollback.
Auth & email
workspaces-getAuthSetup / saveAuthSetup- Check what's missing and save non-secret auth config.
workspaces-applyAuthChanges- Deploy staged auth changes.
workspaces-previewAuthTemplate- Render + lint a custom email template.
workspaces-startEmailService / …- Verified sending-domain setup: choose provider, get DNS records, poll to live.
workspaces-startManagedEmail / …- Codata-managed sending domain, including domain purchase.
Hosting & production
workspaces-getHostingStatus- Deployment readiness, live URL, pending updates.
workspaces-pushAppFiles- Push agent-built app files into the deployment draft.
workspaces-goLive- Launch: validate → build → deploy → apply secrets → verify.
workspaces-searchManagedDomain / requestManagedDomain / setAppDomain- Custom domains, end to end.
workspaces-listSecrets / getSecretsUrl- Secret names + browser deep links for pasting values.
workspaces-getObligations / waiveObligation- The pre-flight ledger that gates generate and go-live.
workspaces-createApiKey- Deep link to mint a workspace API key — shown once, save it securely.
Migration & insight
workspaces-import-analysis- Import an existing codebase's backend into a workspace spec.
workspaces-getMigrationGuide- Stack-specific instructions for swapping your ORM calls to the SDK.
workspaces-getHealthDigest- One-call workspace health summary.
workspaces-getContract- Lean machine-readable schema: assets, endpoints, relationships, gates.
explain_decision- Ask why Codata made a given design decision.
A typical flow: create workspace → describe your backend in plain English → generate → install SDK → validate → go live. Your assistant runs all of this end-to-end, you only approve decisions and paste secrets.