Devmachinist /Docs
Sign in Start
All docs

MCP server

Devmachinist has a built-in Model Context Protocol server. An agent connected to it can list your projects, read and edit code, run build checks, open pages in a headless browser, work with data and publish, all as tools. Each tool calls one route of the Platform API with your token, so it has exactly the same permissions, validation and limits.

This page covers setup, the protocol and a worked session. The MCP tool reference describes every tool.

Endpoint and authentication #

ItemValue
Addresshttps://devmachinist.com/api/mcp
TransportStreamable HTTP only (see Transport): no SSE, no stdio
MethodPOST with a JSON-RPC 2.0 message or a batch; GET answers 405
Protocol version2025-06-18
AuthSign in with OAuth (the client opens a browser), or Authorization: Bearer dm_pat_…

There are two ways to connect, and both reach the same tools with the same rules:

Sign in with OAuthPersonal access token
HowAdd the server address to your client. It opens a Devmachinist page in your browser, you choose what it may do and press Allow.Create a token under Account → Access tokens and paste it into the client's config as a header.
Good forClaude (claude.ai, the desktop and mobile apps), Claude Code, Cursor, VS Code and any client with OAuth supportScripts, CI jobs, and clients that can only send a fixed header
CredentialsShort-lived access tokens (dm_oat_…, one hour) that the client refreshes by itselfOne long-lived token (dm_pat_…), with an expiry if you set one
DisconnectAccount → Access tokens → Connected apps → DisconnectRevoke the token on the same page

Either way you pick scopes, and the client gets nothing more:

ScopeTools it unlocks
readListing and reading: projects, files, lines, search, components, pages, theme, data, git status, issues, preview status and logs.
writeEditing: files, line edits, components, pages, theme, data API and imports, git (not push), experiments, sources, issues, AI generation.
previewstart_preview, build_check, inspect_page, simulate_journeys, check_experiment.
publishpublish, git_push, and approving an experiment with finish_experiment.

A typical coding agent wants read, write and preview; add publish only if it should put the site live. On the OAuth page you can untick scopes the client asked for, and limit it to some of your projects, just as with a token. The server stays stateless: every request is authenticated on its own, so a disconnected app or a revoked token fails on its next call.

The connection is to your own account. The client acts as you, on your projects and the ones your teams share with you. It never reaches your password, billing, account settings or other tokens.

Sign in with OAuth #

A client that supports MCP authorization needs only the address, https://devmachinist.com/api/mcp. What happens:

  1. The client calls the server without credentials and gets 401 with a WWW-Authenticate header pointing at the server's OAuth metadata.
  2. It registers itself (dynamic client registration) and opens the Devmachinist sign-in page in your browser.
  3. You sign in if you aren't already, see the app's name, the scopes it asked for and where it sends you back to, and choose Allow or Cancel.
  4. The client gets an access token and a refresh token, and from then on refreshes on its own. You don't copy anything.

Every app you allowed is listed under Account → Access tokens → Connected apps, with its scopes, projects and when it was last used. Disconnect stops it at once. Allowing the same app again replaces its earlier connection.

If you build your own integration, OAuth apps has the endpoints and the exact flow.

Transport #

The server speaks one MCP transport: Streamable HTTP (the 2025-06-18 revision of the spec). It is a remote server on your Devmachinist address, so there is nothing to install or run on your machine.

TransportSupportedNotes
Streamable HTTPYesOne endpoint, POST /api/mcp. Every answer is a single JSON body (Content-Type: application/json).
HTTP + SSE (the older 2024-11-05 transport with separate /sse and /messages endpoints)NoThere is no SSE endpoint. Pick http, not sse, in your client.
stdioNo (bridge it)A client that can only start local stdio servers connects through the mcp-remote bridge, which speaks stdio to the client and Streamable HTTP to the server. See Clients that only start stdio servers.

Within Streamable HTTP the server uses the simplest form the spec allows:

  • JSON answers, never an event stream. Clients send Accept: application/json, text/event-stream as the spec says; the server always picks JSON. A POST holding only notifications gets 202 with no body.
  • No standing stream. GET /api/mcp answers 405, so the server never pushes messages of its own: no progress notifications, no tools/list_changed (the tool list is fixed per token anyway), no resumption.
  • Stateless, no session. The server doesn't hand out an Mcp-Session-Id and ignores one if sent, and there is nothing to DELETE. initialize is optional for scripts; every request is authenticated by its own Authorization header.
  • 401 tells the client how to sign in. A request without a valid token gets 401 with WWW-Authenticate: Bearer resource_metadata="https://devmachinist.com/.well-known/oauth-protected-resource/api/mcp", which is how OAuth clients find the sign-in. The endpoint answers browser preflights (CORS), so web-based clients can call it too.
  • Long tool calls stay on one request. A slow tool (a build check, a page inspection, a journey run) answers when it's done, typically within a minute or two, so give your HTTP client a generous timeout.
bash
# Streamable HTTP by hand: one POST, one JSON answer
curl -s https://devmachinist.com/api/mcp \
  -H "Authorization: Bearer dm_pat_…" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'

Set up your client #

Claude (claude.ai, desktop and mobile apps) #

Add Devmachinist as a custom connector: Settings → Connectors → Add custom connector, name it, and enter https://devmachinist.com/api/mcp as the URL. Leave the OAuth client fields empty; Claude registers itself. Press Connect, sign in to Devmachinist in the window that opens and choose Allow. The connector then works in claude.ai, the desktop app and the mobile apps. On Team and Enterprise plans an owner may have to add the connector for the organization first.

Claude Code #

bash
claude mcp add --transport http devmachinist https://devmachinist.com/api/mcp

Then run /mcp inside Claude Code, pick devmachinist and choose Authenticate. Your browser opens the sign-in page; after Allow, Claude Code keeps the tokens and refreshes them.

To use a personal access token instead, add the header:

bash
claude mcp add --transport http devmachinist https://devmachinist.com/api/mcp \
  --header "Authorization: Bearer dm_pat_…"

Use --transport http. --transport sse won't connect, and a stdio entry isn't needed. Add --scope user to use it in every project on your machine.

Cursor #

Cursor connects over Streamable HTTP when the entry has a url, and signs in with OAuth when there's no header. In ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

json
{
  "mcpServers": {
    "devmachinist": { "url": "https://devmachinist.com/api/mcp" }
  }
}

Cursor shows a Needs login button next to the server; it opens the sign-in page. With a token, add "headers": { "Authorization": "Bearer dm_pat_…" } to the entry instead.

VS Code and other clients #

VS Code's .vscode/mcp.json takes the address and signs in with OAuth when the server asks:

json
{
  "servers": {
    "devmachinist": { "type": "http", "url": "https://devmachinist.com/api/mcp" }
  }
}

Any client that speaks Streamable HTTP (often called http or streamable-http in client settings) works the same way if it supports MCP authorization, or with a token header if it doesn't. This is the token config the Access tokens page gives you:

json
{
  "mcpServers": {
    "devmachinist": {
      "type": "http",
      "url": "https://devmachinist.com/api/mcp",
      "headers": { "Authorization": "Bearer dm_pat_…" }
    }
  }
}

Keep tokens out of files you commit: most clients read environment variables or prompt for secrets.

Clients that only start stdio servers #

A client that can only launch local stdio servers connects through the mcp-remote bridge, which speaks stdio to the client and Streamable HTTP to Devmachinist. Without a header it signs in with OAuth in your browser; with one it sends your token:

json
{
  "mcpServers": {
    "devmachinist": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://devmachinist.com/api/mcp"]
    }
  }
}

For a token, add "--header", "Authorization:${DM_AUTH}" to args and "env": { "DM_AUTH": "Bearer dm_pat_…" } to the entry. The bridge needs Node.js.

The protocol #

Every message is a JSON-RPC 2.0 request in the body of a POST. The server answers the supported methods:

MethodAnswer
initializeServer info, capabilities and short instructions.
notifications/initialized, notifications/cancelledNothing (HTTP 202, empty body).
pingAn empty result.
tools/listThe tools this token's scopes allow, with input schemas.
tools/callRuns one tool.

Any other method gets error -32601 Method not found (or nothing, if it was a notification).

initialize #

bash
curl -s https://devmachinist.com/api/mcp \
  -H "Authorization: Bearer $DM_TOKEN" -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": {"name": "curl", "version": "1"}}}'
json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2025-06-18",
    "capabilities": { "tools": { "listChanged": false } },
    "serverInfo": { "name": "devmachinist", "title": "Devmachinist", "version": "1.3.0+1cc4bf78d8ae" },
    "instructions": "Tools version 1.3.0 (99 tools; latest: …) Call whats_new with since: \"<the version you last used>\" to see what changed. Work on Devmachinist projects: Vite + React 19 + Tailwind CSS v4 apps, published as Next.js static exports, so code must work in both. Components are default-exported PascalCase .jsx files styled only with Tailwind classes. Start with list_projects, then project_map (get_context for details) and read_file / search. Make each file's whole change in one edit_file call, then run build_check and inspect_page. The in-app AI chat's tools are here under the same names. Others may be working in the project: files you write are held for you until you go quiet (people watch them change), ai_activity shows who else is working, declare_plan holds files ahead of time, and release_plan frees everything when you are done. Data changes are staged first (stage_data → commit_staged after review)."
  }
}

The server always answers with its own protocol version and keeps no session, so initialize is optional for scripts.

Resources #

Besides tools, the server offers resources: things an agent can read by address without a tool call. Clients that let you attach context (Claude's + menu, Cursor's @-mentions and others) list them too, so you can hand an agent a project map or a docs page yourself. They are read with the token's own access: the read scope, and only projects the token can reach.

AddressWhat it holds
devmachinist://guide/skillThe agent guide (the same as /skill.md).
devmachinist://guide/changelogWhat each version of the tools changed.
devmachinist://guide/limitsResponse sizes, quotas, rate limits and guarantees.
devmachinist://docs/{slug}A docs page as Markdown, e.g. dev-client, dev-auth, dev-data-api, dev-mcp-tools.
devmachinist://project/{projectId}/mapThe project map and instructions, as project_map returns them.
devmachinist://project/{projectId}/context/{topic}One topic in detail: components, design, data, auth, structure, modules, files, graphics, connections or tools.
devmachinist://project/{projectId}/knowledgeThe project's instructions and your own.
devmachinist://project/{projectId}/data-apiModels, fields, access rules, roles and sign-in.
devmachinist://project/{projectId}/themeBrand colours, fonts and theme settings, as JSON.
devmachinist://project/{projectId}/analyticsThe published site's traffic over the last 30 days.
devmachinist://project/{projectId}/gameThe multiplayer game servers and their recent output (as game_status).
devmachinist://project/{projectId}/file/{path}A whole file, e.g. src/components/Hero.jsx. Pictures come back as images.
devmachinist://project/{projectId}/screenshot/{shot}A screenshot inspect_page took. Its result links it.

resources/list returns the guide, the changelog, the limits, every docs page, and the map and instructions of each project the token reaches. resources/templates/list returns the addresses above with their placeholders. resources/read returns the content, or error -32002 when there's nothing at that address.

The server keeps no session, so it can't announce changes: there are no subscriptions. Read a resource again when you need it fresh.

bash
curl -s https://devmachinist.com/api/mcp \
  -H "Authorization: Bearer $DM_TOKEN" -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "resources/read", "params": {"uri": "devmachinist://project/Vq3xT8mKp2Lw/map"}}'

Versions and changes #

The tools have a version. serverInfo.version is that version followed by a fingerprint of the tool list (1.3.0+1cc4bf78d8ae), so it changes whenever a tool is added, changed or removed, and the server's instructions start with it. The whats_new tool, GET /api/agent/changelog?since=1.2.0 (no token needed) and the changelog field of GET /api/agent say what changed in each version: tools added, changed and removed, with a line on each. An agent should keep the version it last worked with and call whats_new with since when it differs.

tools/list #

bash
curl -s https://devmachinist.com/api/mcp \
  -H "Authorization: Bearer $DM_TOKEN" -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}'
json
{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {
    "tools": [
      {
        "name": "read_lines",
        "description": "Read lines from..to (1-based, inclusive, at most 2,000) of a file, numbered. Cheaper than read_file for big files.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "projectId": { "type": "string", "description": "Project id (from list_projects)" },
            "path": { "type": "string" },
            "from": { "type": "integer" },
            "to": { "type": "integer" }
          },
          "required": ["projectId", "path"],
          "additionalProperties": false
        }
      }
    ]
  }
}

The list has 86 tools when the token holds all four scopes; tools needing a scope the token lacks are left out. There's no paging and the list never changes while connected (listChanged: false). GET /api/agent gives the same tools with their scope and REST route, without a token.

tools/call #

bash
curl -s https://devmachinist.com/api/mcp \
  -H "Authorization: Bearer $DM_TOKEN" -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "preview_status", "arguments": {"projectId": "Vq3xT8mKp2Lw"}}}'
json
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "isError": false,
    "content": [
      { "type": "text", "text": "{\n  \"ok\": true,\n  \"running\": true,\n  \"port\": null,\n  \"url\": \"https://preview.devmachinist.com/_preview/Vq3xT8mKp2Lw/\",\n  \"ready\": true,\n  …\n}" }
    ],
    "structuredContent": { "ok": true, "running": true, "port": null, "url": "https://preview.devmachinist.com/_preview/Vq3xT8mKp2Lw/", "ready": true, "previewToken": "…", "previewOrigin": "https://preview.devmachinist.com", "starting": false }
  }
}

How results are built:

  • The tool's REST route runs inside the server with your token, and its JSON reply becomes the result.
  • content[0].text is that reply pretty-printed, cut at 200,000 characters.
  • structuredContent is the same reply as an object, uncut.
  • isError is true when the route answered an HTTP error or "ok": false. The reply's error says why, in plain words meant for the model to act on.

Many replies carry a text field written for models (project map, data inspection, git summary, build check, page inspection). Read that first.

Batches and notifications #

A JSON array of messages is answered with an array of their responses, in order, leaving out notifications. The messages of a batch run at the same time, so don't batch calls that depend on each other (two edits to one file, or an edit and the build check after it). A batch of only notifications, or a single notification, gets HTTP 202 with no body.

Errors #

Protocol problems are JSON-RPC errors. Problems inside a tool are results with isError: true, so the model can read them and try again.

SituationAnswer
Not a JSON-RPC 2.0 messageerror -32600 Invalid request
Unknown methoderror -32601 Method not found: …
Unknown toolerror -32602 Unknown tool: …
A required argument missing or emptyerror -32602 Missing argument: …
Token lacks the tool's scoperesult, isError: true, text This token lacks the "write" scope.
The REST route refused or failedresult, isError: true, the route's JSON reply (e.g. a 404, 409 or 423 body)
No credentialsHTTP 401, {"ok": false, "error": "Not authenticated"}
Invalid, revoked or expired tokenHTTP 401, {"ok": false, "error": "…"}
Signed-in browser session instead of a tokenHTTP 401, error -32001 Use a personal access token: Authorization: Bearer dm_pat_…
Too many requestsHTTP 429 with Retry-After

Arguments are checked only for presence; types and values are checked by the route, whose error comes back as an isError result. A tool can also need more than its listed scope: finish_experiment with approve needs publish, and an isError result says so.

Limits on tool calls #

Because each tool call is a REST call, everything on the Platform API page applies:

  • Rate limits. /api/mcp takes 600 requests per 10 minutes. Each tool call also counts as a request to its route, with that route's own limits (writes, preview starts, installs, publishing, git remotes, AI).
  • Locks. A file, data API or whole project held by a running AI answer or build gives isError with a 423 body naming who holds it. Read other files and retry later.
  • Account. Building tools answer 402 without an active plan or trial; publish needs a verified email; AI tools spend AI credits on the site's keys.
  • Sizes. read_lines: 2,000 lines and about 100,000 characters per call; line tools work on files up to 512 KB; edit_file: 40 edits; search_project: 2,000 matches; query_data: 250 rows; stage_data: 5,000 rows; inspect_page: 25 actions, 5 s each, 90 s per call; query_database: 250 rows and 20 s; stage_database_changes: 20 changes. Results over 200,000 characters are cut in content (not in structuredContent).
  • The web. import_url, collect_source and refresh_source honour robots.txt, fetch at most 20 times a minute per site and 2 MB per address, and refuse private addresses.
  • Time. start_preview (the first run installs packages), build_check, inspect_page, simulate_journeys and publish build the site and can take from seconds to a couple of minutes. Give your client a generous request timeout.

The limits text in GET /api/agent (and project_map with topic: "tools") is written for the built-in Chat, whose answers also have per-answer quotas such as four inspect_page calls. Those quotas count Chat answers only; MCP calls are limited by the rules above.

Some actions always need a person in the builder, even with every scope: adding database and app credentials, approving changes to a connected database or starting a transfer, and downloading app signing keys. Staged data imports are the exception: an agent with write scope may commit them with commit_staged, after reviewing the preview.

A typical session #

The usual loop is map → read → edit → check → look → publish:

  1. list_projects, then project_map to see pages, components, data and generated files cheaply.
  2. search_project and read_lines to find and read only the code the change touches.
  3. edit_file once per file with every snippet that file needs (or write_file for a new file outside the component and page folders, create_component for a component).
  4. build_check: both builds (preview and published) must pass.
  5. inspect_page on the pages you changed, on phone and desktop, with clicks if it's interactive.
  6. publish when it's right (publish scope).

Here is that session for a small change: the bakery's hero should say when it opens.

1. Map the project #

json
{ "jsonrpc": "2.0", "id": 10, "method": "tools/call", "params": { "name": "project_map", "arguments": { "projectId": "Vq3xT8mKp2Lw" } } }
json
{
  "ok": true,
  "map": "Project map (version 3fa91c0e) — \"Corner Bakery\"\nPages: Home (#home), Menu (#menu)\nComponents (4): SiteNav, SiteFooter, Hero, MenuList\nNo data API yet.\nTheme: brand amber, secondary stone, accent rose; fonts Fraunces / Inter …\nGenerated (read, never edit): src/site.js, src/App.jsx, src/main.jsx, src/api/*. Links are href=\"#slug\" to the pages above; no router package."
}

2. Find and read the code #

json
{ "jsonrpc": "2.0", "id": 11, "method": "tools/call", "params": { "name": "search_project", "arguments": { "projectId": "Vq3xT8mKp2Lw", "q": "Baked fresh" } } }
json
{ "ok": true, "total": 1, "truncated": false, "files": [ { "path": "src/components/Hero.jsx", "matches": [ { "line": 9, "col": 11, "pre": "<p className=\"mt-4 text-lg\">", "text": "Baked fresh", "post": " every morning in Leith.</p>" } ], "managed": false } ] }
json
{ "jsonrpc": "2.0", "id": 12, "method": "tools/call", "params": { "name": "read_lines", "arguments": { "projectId": "Vq3xT8mKp2Lw", "path": "src/components/Hero.jsx", "from": 1, "to": 20 } } }
json
{
  "ok": true,
  "path": "src/components/Hero.jsx",
  "text": " 1│export default function Hero() {\n 2│  return (\n 3│    <section className=\"bg-stone-950 px-6 py-24 text-center\">\n …\n 9│      <p className=\"mt-4 text-lg\">Baked fresh every morning in Leith.</p>\n10│      <a href=\"#menu\" className=\"mt-8 inline-block rounded-full bg-brand-600 px-6 py-3 font-semibold text-white\">See the menu</a>\n …",
  "from": 1,
  "to": 18,
  "total": 18
}

3. Edit once per file #

json
{
  "jsonrpc": "2.0", "id": 13, "method": "tools/call",
  "params": {
    "name": "edit_file",
    "arguments": {
      "projectId": "Vq3xT8mKp2Lw",
      "path": "src/components/Hero.jsx",
      "edits": [
        {
          "old_text": "<p className=\"mt-4 text-lg\">Baked fresh every morning in Leith.</p>",
          "new_text": "<p className=\"mt-4 text-lg\">Baked fresh every morning in Leith.</p>\n      <p className=\"mt-2 text-sm text-stone-300\">Open daily 7:00–15:00</p>"
        }
      ]
    }
  }
}
json
{ "ok": true, "message": "Made 1 change to src/components/Hero.jsx", "problems": [] }

A non-empty problems list means the file no longer parses; fix it before going on. If a snippet isn't found, nothing is changed and the result is an isError with the reason.

4. Check both builds #

json
{ "jsonrpc": "2.0", "id": 14, "method": "tools/call", "params": { "name": "build_check", "arguments": { "projectId": "Vq3xT8mKp2Lw" } } }
json
{ "ok": true, "text": "The site builds: the preview (Vite, 3.2 s) and the published site (Next.js, 37.5 s)." }

On failure the result is an isError with file and a text such as Build failed in src/components/Hero.jsx:10:7: … followed by the lines around it. Read those lines, fix them, and check again.

5. Look at the page #

json
{ "jsonrpc": "2.0", "id": 15, "method": "tools/call", "params": { "name": "inspect_page", "arguments": { "projectId": "Vq3xT8mKp2Lw", "page": "home", "viewport": "phone" } } }
json
{
  "jsonrpc": "2.0", "id": 15,
  "result": {
    "content": [
      { "type": "text", "text": "#home (phone 390×844) — “Corner Bakery”\nErrors: none\nConsole: empty\nHeadings: Corner Bakery\nLinks: Home | Menu | See the menu\nText: Corner Bakery Baked fresh every morning in Leith. …\nScreenshot attached.\n…" },
      { "type": "image", "mimeType": "image/png", "data": "iVBORw0KGgo…" }
    ],
    "structuredContent": { "clean": true, "text": "…", "screenshot": "/api/projects/Vq3xT8mKp2Lw/ai/shots/shot_mhx4p0c8a71e9d.png" },
    "isError": false
  }
}

The screenshot is an image block, so a model that reads images sees the page itself: check the layout, not only the text. clean: false means the page threw errors or failed requests, and they're listed in the text. To check pages behind sign-in, add "as": "admin" (or "user", or a custom role). The page then opens signed in as a test account, on throwaway copies of the data. Add "full_page": true for the whole page instead of the first screen.

6. Publish #

json
{ "jsonrpc": "2.0", "id": 16, "method": "tools/call", "params": { "name": "publish", "arguments": { "projectId": "Vq3xT8mKp2Lw" } } }
json
{ "ok": true, "slug": "corner-bakery", "version": "vmhx4r2d9", "primary": true, "url": "https://sites.devmachinist.com/@dana/corner-bakery/", "size": 812377 }

Publishing builds a Next.js static export, so a page that passed build_check publishes the same way. To check the published build itself before going live, use inspect_page with "published": true.

The agent skill #

https://devmachinist.com/skill.md is a short, public guide for agents: how to connect, how to start, the rules for code, how to check work, data, drafts, publishing and working alongside people. Point an agent at it, or add it to a client that loads skills. It's also linked from /llms.txt.

Tips for agents #

  • Read the project's instructions. project_map ends with the instructions the people on the project wrote (and yours for every project). Follow them, and keep them current with set_knowledge.
  • Send files, don't paste them. upload_url gives a one-time address for curl -T; import_url fetches a file from the web.
  • Others see you work. Every file you write is held for your token: people watch it change live and can't edit it, other AIs and agents are refused it (423, naming you), until you've been quiet for 3 minutes (15 with a declare_plan plan) or call release_plan. Call release_plan when you're done, and ai_activity to see who else is working.
  • Prefer edit_file and the other line tools over write_file for existing code: they refuse generated files, report syntax problems, and change only what you name.
  • Never edit src/site.js, src/App.jsx, src/main.jsx or src/api/. Change pages, brand or the data API instead; the builder rewrites those files.
  • Pages link with href="#slug"; there is no router package.
  • For data, inspect_data before change_project_api, and stage imports with stage_data so a person (or you, after reviewing) commits them.
  • For larger or riskier work, start_experiment first. It works like a draft: edits and data changes happen on copies until the experiment is approved (merged) or discarded.
  • New site? create_project from a template or one of your projects, or build_with_ai with a description and build_status to follow it.
  • get_site_analytics shows how the published site is doing: which pages people read and where they come from.
  • Teammates may be working in the same project. A 423 result means a file is held by someone's AI; work elsewhere and come back.