Early access

Apply

Documentation
Developers/MCP/MCP Quickstart: Build an App over MCP

MCP Quickstart: Build an App over MCP

Connect your AI client to https://mcp.supero.dev/mcp by signing in, confirm the connection with build_whoami, describe the app, validate and publish it, and deploy a preview. Real tool output at every step.

Driving Supero from an AI editor over MCP to build a full application
You direct the build from your editor; Supero provides the tenancy, access control and data layer underneath.

Before You Start

This page is the whole path in order: connect, check the connection, describe the app, validate and publish, deploy a preview. It takes about fifteen minutes, most of it waiting for the first preview.
  • An AI client that speaks MCP: Claude Code, Claude (web or desktop), ChatGPT, VS Code with Copilot, Cursor, Gemini CLI or Codex CLI. Windsurf is still being verified.
  • A Supero account. If you do not have one, you can create it in the sign-in window.
You do not need an API key. Keys are only for CI pipelines, scripts and machines without a browser; see Use an API key instead at the end of this page.
For tool signatures, see the MCP Tools & Protocol Reference. If you are driving a build from your own agent loop rather than a client, Build with an AI Agent covers that shape.

1. Connect

Add https://mcp.supero.dev/mcp to your client as an MCP server. In Claude Code:
bash
claude mcp add --scope user --transport http supero https://mcp.supero.dev/mcp
Then start claude, type /mcp, select supero and choose Authenticate. Other clients have their own one-page guides: ChatGPT or Claude, VS Code and Copilot, Cursor, Gemini CLI, Codex CLI, Windsurf.
  1. 1

    Sign in

    Your browser opens the Supero sign-in page. Sign in, or create an account.

  2. 2

    Choose where it may work

    An existing project, a new project, or the whole workspace. Tick "Let it publish apps" if you want it to be able to put an app live; previews work either way. See Access options.

  3. 3

    Click Allow

    The client is connected. You can end the connection at any time from app.supero.dev/oauth/connections.

2. Check the Connection with build_whoami

Ask your client: "Call build_whoami and tell me my workspace, role and project." build_whoami is the check that actually exercises your credential. Here is a trimmed response for a connection to an existing project:
json
{
  "ok": true,
  "role": "project_admin",
  "domain": "acme",
  "scope": "project",
  "project_scope": "project",
  "project_name": "restaurant-orders",
  "permissions": ["project:read", "project:update", "tenant:create", "tenant:read", "..."],
  "can": {
    "create_project": false,
    "update_project": true,
    "publish": true,
    "deploy": true
  },
  "project_uuid": "6f1c...",
  "schema_namespace": "restaurant_orders",
  "project_binding": "ok",
  "plan": {
    "plan_name": "unknown",
    "can_deploy_cloud": true,
    "permanent_hosting": "available"
  },
  "can_create_projects": false,
  "next_steps": "Call build_get_skills (the MCP tool — not a local file), then build_get_project, ..."
}
  • domain is your workspace. role and scope are what the connection resolved to: project_admin and project for one project, domain_admin and domain for the whole workspace.
  • can.publish means it may run build_publish (record a version). Putting an app live with build_go_live also needs "Let it publish apps" on the connection.
  • plan.plan_name can read unknown on a project connection, because only workspace admins can read the plan. plan.permanent_hosting still says whether going live is available.
If you chose A new project, build_whoami answers before the project exists: role is domain_admin, project_name is null, every can flag except create_project is false, and next_steps tells the client to call build_create_project. The project is created when you describe the app.

Do not verify by listing tools

The tool list loads even without a working credential, so a healthy-looking list proves nothing. Use build_whoami.

3. Describe the App

Tell the client what to build in plain language. For example:
text
Build me a restaurant ordering app on Supero: a menu with categories and prices,
a cart, and orders with status. Give me the preview link when it is ready.
The client calls build_get_skills and build_get_examples to load the platform's build guidance, then build_plan. If the description is thin it first asks who will use the app and whether strangers may sign up. It then shows a Build Brief (records, roles, who can see what, screens, How it works, with guesses marked) and waits for you to say go.
After you say go, it writes the bundle. A bundle must contain exactly these seven files:
  • schemas.py: your object types
  • config.py: project identity and the services you import
  • setup.py: provisioning, seed data and workflow definitions
  • __main__.py
  • requirements.txt
  • run.sh
  • ui/app.js: the application shell

Six files must not be in the bundle

ui/index.html, ui/config.js, ui/server.py, Dockerfile, docker-compose.yml and .env are provided by the platform at run time. If your client generates them, they are dropped. A hand edit to one of them will not ship.

4. Validate and Publish

The client checks the bundle before anything is recorded. None of these steps runs your code.

build_validate

Static checks on the files, plus the platform's own schema validation. ok: false with a list of errors is a normal answer, not a tool failure: the client fixes them and runs it again.
json
{
  "ok": true,
  "errors": [],
  "warnings": [],
  "checks": {
    "files_received": 7,
    "files_kept": 7,
    "namespace": "restaurant_orders",
    "namespace_verified": true,
    "schema_validation": {
      "status": "valid",
      "schema_count": 4,
      "errors": [],
      "conflicts": [],
      "cycles": []
    }
  },
  "next_steps": "All checks passed — run build_doctor for a deploy-readiness lint ..."
}

build_doctor and build_audit

build_doctor catches what stops a deploy: startup and seeding problems, reserved names, namespace collisions. build_audit checks security and correctness, for example a price chosen in the browser, or end users able to write paid or status fields.
json
{
  "ok": true,
  "verdict": "ready to publish + deploy",
  "errors": [],
  "warnings": [],
  "checks": { "schema_validation": { "status": "valid", "schema_count": 4 }, "...": "..." },
  "next_steps": "Healthy — build_publish → build_deploy → build_smoke_test the returned URL."
}

build_publish

Records the bundle as a new version. Each publish creates a new version; nothing is overwritten.
json
{
  "ok": true,
  "version_uuid": "b2e4...",
  "version": 1,
  "app_slug": "restaurant-orders",
  "file_id": "f9a0...",
  "checksum": "9c1e...",
  "total_files": 7,
  "download_url": "<signed download link>",
  "dropped_files": null,
  "missing_files": null,
  "incomplete_bundle": false,
  "settings_link_warning": null,
  "next_steps": "Published — the bundle is an ARTIFACT, not the finish line. ..."
}

Iterating after the first build

For a change to an app you already published, the client fetches the current files with build_get_bundle, edits them, then runs validate, doctor and publish again. Starting from scratch would drop hand-tuned UI and earlier fixes.

Adding integrations

Integrations are declared in config.py by their catalog service id. build_list_capabilities shows what exists; build_recommend_integrations suggests what suits the app you described. See External Integrations for what each one needs.

Configure test credentials only over MCP

The service-configuration tool is for sandbox and test keys. Put live payment or messaging credentials in the console, on the app's Services page. Never paste a key into the chat.

5. Deploy a Preview

build_deploy with target cloud_ephemeral starts a short-lived preview. It returns at once with a poll URL; the app is not up yet.
json
{
  "ok": true,
  "target": "cloud_ephemeral",
  "status": "launching",
  "url": null,
  "poll_url": "/api/v1/preview/project/acme/restaurant-orders?project_uuid=6f1c...",
  "version_uuid": "b2e4...",
  "note": "Ephemeral (~30m). Poll with build_deploy_status, then run build_smoke_test on the returned url to confirm the app actually renders (not just 'running')."
}
The client then polls build_deploy_status about every 30 seconds. A first preview takes about six minutes. launching for that long is normal; treat it as failed only if there is still no working URL after about ten minutes, and then read build_logs.
json
{
  "ok": true,
  "status": "running",
  "url": "https://preview-acme-restaurant-orders.supero.live",
  "permanent": false,
  "elapsed_s": 371,
  "error": null,
  "next_steps": "Live. Run build_smoke_test on this url to confirm it renders, then give the user the url — and tell them it's a temporary preview (expires ~30 min). ...",
  "raw": { "status": "running", "expires_at": "2026-11-14T10:42:00Z", "...": "..." }
}
Preview URLs look like https://preview-<workspace>-<project>.supero.live. A preview lasts about 30 minutes on the free plan. It comes with sample data and working sign-up and login. Finally the client runs build_smoke_test (does the URL render, and is it the version you just published) and build_verify (sign-up, login, the role permission matrix and server-side pricing, tested with throwaway accounts).

Going live

build_go_live puts the published version at a permanent URL on its own supero.live subdomain, until you take it offline with build_teardown. Over sign-in it needs "Let it publish apps" on the connection. Permanent hosting also depends on your plan; plan.permanent_hosting in build_whoami tells you up front. The server asks for a clean build_audit and build_verify before going live.

Limits worth knowing before you hit them

LimitValue
Preview lifetimeAbout 30 minutes (free plan)
Files per bundle300
Size per file2 MB
Total bundle size8 MB
Request body12 MB
Builds and deploys draw on your plan's usage allowance. When an allowance runs out, the platform says which one.

Two failure modes that look like something they are not

If you launch a preview over an app that is already published, the platform refuses with a conflict. That is expected: do not tear down the published app in response. And if a teardown reports that it did not stop, believe it. The app is still running and still using your allowance. Run the teardown again.

Use an API Key Instead (Optional)

Use a key only for CI pipelines, scripts, and machines without a browser. The tools are the same; only the address and the credential change. Two addresses, one set of tools explains the two addresses, and Use an API key instead has the client snippets. This section covers how to scope a key.
SettingValue
Endpointhttps://api.supero.dev/mcp/v1/messages
TransportStreamable HTTP, JSON-RPC 2.0
Auth headerX-API-Key: ak_...
Where to create the keyIn the console, under Build via MCP

A project key reaches every tenant

A project key can read, change and delete records in every tenant of that project. Keep it in your CI secret store or your editor configuration, never in a repository and never as the credential your app runs with.

The scope is where the key was created, not a setting

A key's reach is set by the workspace, project and tenant it was created under. There is no "level" field.
Key is created underEffective roleCan it build?
default-project / default-tenantdomain_admin: the whole domainYes, and more besides. Broader than a build needs.
your project / default-tenantproject_admin: that one projectYes. This is the one you want for building.
your project / a named tenanttenant_user: one tenant's dataNo. Build tools refuse this role.
The console's Build via MCP page creates the project-admin kind. You can also create one over the REST API:
bash
curl -X POST https://api.supero.dev/api/v1/domains/acme/api-key \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "project_name": "my-app",
    "tenant_name": "default-tenant",
    "description": "MCP build key",
    "scopes": ["read", "write", "delete"]
  }'

Scopes cap a key; they never widen it

scopesWhat the key can do
["read"]Read only.
["read", "write"]Read and write, but not delete.
["read", "write", "delete"]Full record access. Use this for a build key.

A read-only key will start a build and then fail partway

The build tools decide whether you may build from the key's address, not its scopes. A read-only key looks like a valid project builder, starts publishing, and is refused when it tries to write. Create build keys with read, write and delete, which is what the console does.

Login tokens cannot build

On the API-key address, a login token in Authorization: Bearer is refused by every build tool with this message:
text
build_publish requires an API key (domain-admin or project-admin), not a JWT session. Connect with header  X-API-Key: ak_<domain>_<project>_<tenant>_...
This applies only to the API-key address. A sign-in connection at https://mcp.supero.dev/mcp is not a JWT session: its build calls run with the access you approved on the Allow page, so you will not see this message there.

Send exactly one credential header

If your client also sends an Authorization header (left over from another server, or added by a proxy), that header wins, and every build tool refuses you with the message above. If builds fail at once with an authentication error while your key is valid, check for a stray Authorization header first.
With a key, build_whoami shows role: "project_admin" and your project. tenant_user means the key was created for a named tenant and cannot build.

Revoking a key

Delete a key to revoke it; disabling is not enough

A disabled key can still be accepted from cache. Deleting the key evicts it, though a server that had already accepted it can keep accepting it for up to five minutes. If a key leaks, delete it. Rotation issues a new secret for the same key with no grace period: anything using the old secret breaks, and a server that had cached it can accept it for up to five minutes.

Two fields that are not checked everywhere

An expiry date and an hourly rate limit can both be set on a key. Some services check them and others do not, so do not rely on either. Manage key lifetime by deleting keys.