Build from a chat
An assistant without a terminal can create, deploy and update complete apps: frontend, backend, database, files and external APIs. It writes plain files and sends them as text with one tool call.
Before you start
The person connects the assistant once, with the address https://console.boring-cloud.app/mcp. See Connect an agent. If you can see a tool named deploy_app, this is done.
Steps
1. Read the guide
Call get_guide without arguments. It returns what this workspace approved. Follow it. If it names a framework that needs a build you cannot run, use plain HTML, CSS and JavaScript, and tell the person.
2. Agree on what to build
Ask only what you cannot decide alone. Usually these are: what is saved, who can change it, and whether an external service is needed.
3. Create the app
Call create_app:
{ "name": "Supply requests", "description": "Ask for office supplies and follow the answer" }
Keep the id and the url from the answer. The URL serves nothing until the first release.
4. Write the files
Without a build step, write:
index.html, with<script type="module" src="/app.js"></script>and<link rel="stylesheet" href="/style.css">. Inline scripts do not run.app.jsandstyle.css.- One backend module if something is saved or fetched. It cannot import packages. Start from the template in Backend.
Complete example has all the files of a working app.
5. Deploy
Call deploy_app with every file as text:
{
"appId": "the id from create_app",
"manifest": {
"schemaVersion": 1,
"name": "Supply requests",
"runtime": "worker-js",
"entry": "dist/worker.mjs",
"assets": "dist/client",
"database": true
},
"worker": { "path": "worker.mjs", "text": "export default { async fetch(request, env) { … } };" },
"assets": [
{ "path": "index.html", "text": "<!doctype html>…" },
{ "path": "app.js", "text": "…" },
{ "path": "style.css", "text": "…" }
]
}
entryandassetsin the manifest are always these two values here. They describe a project folder, which you do not have, but they are required.- Asset paths are relative to the site root:
index.html, notdist/client/index.html. - Without a backend, leave out
entryandworker, and set"database": false. - Binary files such as a PNG go in
contentBase64instead oftext. - The whole call can be at most 1 MiB.
Check status in the answer. published means the app is live. On an error, read details, fix the files and call again. See Errors.
6. Give the URL
Give the url to the person. They sign in and use the app. You cannot open it yourself: there is no access for agents. Ask them what they see.
Change the app later
- Call
deploy_appagain with the sameappId. The URL, the data and the access stay. - Send every file each time. A release replaces the whole code. A file you leave out is gone.
- The tools do not return the code of a release. Keep the files in the conversation, or ask the person for them. A manager can download a release with the REST API.
- If a release is broken, call
list_deployments, thenrollback_appwith the last one that worked.
When to move to a terminal
Use a coding agent with a terminal when the app needs npm packages, a framework such as React, more than 1 MiB, or many files. The app keeps its id, URL and data.