---
name: use-breezecloud
description: Deploy, migrate, and operate apps on BreezeCloud. Use when the user wants to migrate from Heroku, Render, Railway, Fly.io, DigitalOcean, Vercel, or Docker Compose, or create, deploy, roll back, or debug an app on BreezeCloud, or attach Postgres, MariaDB, MongoDB, Breeze Cache, or S3 storage.
---

# Use BreezeCloud

BreezeCloud builds a GitHub repository and serves it. Call the MCP server the user connected. One release runs at a time. A newer queued commit replaces the previous one. A failed release leaves the last live release serving.

## Token

Prefer a `deploy` token. It can deploy, roll back, restart, pause, resume, and read logs.

`operate` can also create apps, attach databases and cache, and change config. Use it only when the person asked for that. Do not ask for a token that can read secrets unless the person asked to see a secret or to run commands.

## Ship a change

1. `list_workspaces`, then `list_apps` or `get_app`.
2. `deploy` with the app id. Omit the sha to build the branch tip.
3. Read the release with `get_release` until it is live or failed. `get_app_logs` shows the running containers.
4. If the release failed, the last live release is still serving, so do not roll back. Fix forward:
   - Read `get_build_log` and find the first real error.
   - A code or dependency error: edit the repository as in Editing the code, push, and `deploy` again.
   - A missing config var: `request_config_secret` with the app id and the key name. The person saves the value on a BreezeCloud page. You never see it, so do not ask them to paste it. Call `request_config_secret` again after they save, or `list_config_vars` to confirm the name is there. A public value they already typed, such as a site URL, can use `set_config_var`. Never invent a secret. This needs `operate`.
   - A wrong build command, run command or root directory: `update_app`, then `deploy`.
   - Stop after two attempts that fail the same way. Tell the person what the log says and what you tried.
5. If the release went live but the app is broken, `rollback` to the last release that went live and say that you did. Then read `get_app_logs` and fix forward as above.

## Editing the code

The source lives on the person's computer. BreezeCloud checks the repository out only to build, then throws that checkout away.

1. `get_app` for `repo_owner`, `repo_name`, and `branch`.
2. If this chat already has that repository open, edit it here. Do not ask for a second clone.
3. If it does not, tell the person the repository URL `https://github.com/<owner>/<repo>`, the branch, and this command. Tell them to open the cloned folder in this editor:

   ```
   git clone --branch <branch> https://github.com/<owner>/<repo>.git
   ```

   Stop until that folder is the one open. Do not use `run_command`, the build logs, or the live container as a place to change code.
4. Commit and push, then `deploy`. When `auto_deploy` is on, the push starts the release, so say that.

## A new app

Creating an app and attaching data need `operate`.

1. `list_workspaces`. A person has one workspace unless they were invited to another. Each workspace has its own plan, so someone on Free can be a member of a Pro workspace without either plan changing. `create_app` installs the repository into the caller’s workspace, including an organization repository, when a connected GitHub installation can read it. Pass `workspace_id` to put the app in the invited workspace. It does not create a workspace named after the GitHub account. If the repository cannot be read, connect the GitHub App installation that can. A workspace with no installation can clone a public repository only, and a push deploys the app that lives in the installation that received the push.
2. `create_app` with the GitHub owner, repository, and branch.
3. `attach_postgres` when the app stores data. `attach_valkey` when it needs a cache. The next deploy receives `DATABASE_URL`, `VALKEY_URL`, and `REDIS_URL`. When it stores uploaded files, `create_bucket` then `attach_bucket`: the app gets `S3_BUCKET`, `S3_ENDPOINT` and its keys, and must use path-style addressing.
4. `request_config_secret` for a secret, with the key name only. `set_config_var` for a public value the person already typed. `DATABASE_URL` and `PORT` are reserved.
5. `deploy`.

A Procfile `worker:` process runs beside the website, from the same image, with no public URL of its own. A Dockerfile or buildpack app with no Procfile worker sets `worker_command` with `update_app`, then deploys. An app with `worker:` and no `web:` has no URL. Setting a worker command on an app that already has a website does not remove the website. Set `process` to `worker` on `create_app` or `update_app` when the app should have no website at all. That needs a worker command or a Procfile `worker:`, and it applies on the next deploy. A one-click app stays a website. `worker_size` and `worker_replicas` on `update_app` set how large each worker process is and how many run. The workspace plan caps the total. Do not copy production data into another app or branch.

## Migrate from another host

When moving an app from Heroku, Render, Railway, Fly.io, DigitalOcean App Platform, Vercel, Netlify, Docker Compose, or a VPS:

1. Read only non-secret config files (`Procfile`, `app.json`, `render.yaml`, `fly.toml`, `railway.json`, `railway.toml`, `.do/app.yaml`, `vercel.json`, `netlify.toml`, `docker-compose.yml`, `Dockerfile`, `package.json`, `.env.example`). Never read `.env` files or ask the person to paste secrets into chat.
2. Call `analyze_migration` (passing those `files` and `dir_entries`, or `repo_owner` and `repo_name`) and `get_migration_guide` for the source platform (`list_migration_guides` lists every topic).
3. Show the person the proposed apps, managed data services, env var translations, West Africa Time (`UTC+1`) cron conversions, any warnings, and the monthly naira estimate. Wait for them to confirm before creating anything.
4. Create the app(s) and attach databases, cache, or S3 buckets. Set public config with `set_config_var` and use `request_config_secret` for every secret. Deploy and check the `*.breezecloud.app` URL first.
5. For live data, read `get_migration_guide` for `postgres`, `mariadb`, `mongodb`, `valkey`, or `s3-storage`. Ask before turning on `set_*_external` or `reveal_*`, verify row/object counts, and turn external database access back off right away.
6. Follow `get_migration_guide` with `topic` set to `dns-cutover`: call `add_domain` and `check_domain` so BreezeCloud issues the TLS certificate before the person switches their live DNS record.

## Run a command

`run_command` starts one command in the release that is serving now. It uses that image and the app's config, including the database and secrets. It does not replace the website. It can change data. It needs `operate` and a token that can read secrets, and so does `get_run`, because the output can hold secrets. Without that, give the person the command to run in the console. Ask the person what to run, and stop if they do not agree. One run at a time. It stops after 15 minutes. `list_runs` shows recent runs. `get_run` reads one run's output.

## Schedules

`set_schedule` saves a command that runs on a clock in the release that is serving. It uses that image and the app's config, including the database. It can change data. It needs `operate` and a token that can read secrets. Ask the person first, and stop if they do not agree. The cron has five fields and is West Africa Time. A new run waits until the previous one finishes. Each run stops after 15 minutes. For an hourly clock, pick a minute other than 0 so apps do not all start together. `list_schedules` shows the clocks. An empty command with a schedule id removes that clock.

## Deleting

You cannot delete an app, a database, a cache or a bucket. There is no tool for it, and the API refuses a token. When the person wants something deleted, say what would go, and send them to the console, where a signed-in person deletes it. Detaching a database keeps its data, so `detach_postgres`, `detach_mariadb`, `detach_mongodb` and `detach_bucket` are fine when they ask.

`execute_sql` refuses DROP, TRUNCATE, ALTER ... DROP, and DELETE or UPDATE without WHERE. Do not work around it, for example with `run_command`. Give the person the statement to run themselves.

`enable_postgres_extension` turns on `vector` (pgvector) or `pg_stat_statements`. The database role cannot create those, so `execute_sql` with `CREATE EXTENSION` will fail. It needs `operate` and the workspace admin role. Pass `confirm` as the database's name only after the person agrees.

## Do not do this on your own

These tools already require the person to confirm. Ask them first, say exactly what will be changed or revealed, and stop if they do not agree. Do not reveal a secret in order to debug. Read the logs and the release summary first.

- `execute_sql` with a statement that changes data or schema. Pass `confirm` as the database's name only after they agree. Do not invent a confirm value.
- `run_command` and `set_schedule`
- `reveal_config_vars`, `reveal_database_url`, `reveal_mariadb_url`, `reveal_mongodb_url`, `reveal_valkey_url`, `reveal_bucket_keys`
- `set_postgres_external`, `set_mariadb_external`, `set_mongodb_external`, and `set_valkey_external` when turning access on
