The four surfaces, end to end
A change to your app travels through all four surfaces between the moment you drag a block and the moment a visitor sees the page. The shape: Each box is one surface. They are wired in one direction (Builder writes through the API; the API writes through to the runtime; the runtime serves visitors), but every surface talks to the same REST API — the Builder is just one client of it.Walk through a request
Where data lives
Every surface owns specific data. Knowing which store holds what makes it easier to reason about backups, exports, and what a breach in any one store would expose.Where AI fits
The same operations the Builder UI performs are exposed to AI hosts over MCP. The MCP server (gavai mcp via the CLI, or @gavai/mcp-server as an npm package) connects Claude Desktop, Cursor, and other MCP hosts to the public API. An AI connected over MCP can read your page document, compute a patch, and publish the result — same artifacts, same endpoints, different driver.
In addition to the read-and-patch flow, the runtime exposes a separate authenticated agent surface. This is a long-lived session a remote agent — yours or one of the platform-provided automations — holds open to read context, dispatch capability calls, and observe results without re-authenticating on every request. The agent surface is rate-limited per session, replayable (so an agent that gets disconnected mid-run can resume from the last acknowledged event), and audited end-to-end so a workspace owner can review what an agent did after the fact.