Why AI agents need a CMS with permissions
An agent that edits a website should be held to the same rules as the people who edit it: no more permissions than its person, drafts that someone reviews, limits on what it spends and a record of what it did. Here is how Spillway enforces each.
An AI agent that can change a website should be held to the same rules as the people who change it: no more permissions than the person it works for, work that arrives as drafts someone reviews, limits on what it can spend, and a record of everything it did. Spillway builds those rules into the CMS rather than into a prompt: agents connect to its MCP server with API tokens that are a subset of their owner's permissions, and agents draft while people publish (MCP server and API tokens).
Rules in a prompt are not enough
The quickest way to let an assistant work on a site is to hand it an account, and an account can do whatever its person can, publishing and deleting included. A mistake a person would catch on the way to the Publish button then goes straight to visitors. Telling the agent to be careful helps, but it is not a control. The limits have to hold whatever the agent was told, by a page it read or by a person.
One server for every assistant
Every Spillway site has a Model Context Protocol server at POST /mcp. Claude Code, Claude Desktop (through mcp-remote), Cursor and other MCP clients connect to it with an API token, and the same tokens work on the REST API (Connect an agent). Its tools cover content, page layouts, media, menus, structure, review, site settings, marketing, imports and the site's AI, and a client can ask for only the toolsets it needs (MCP server and API tokens).
Agents get the same roles as people
Spillway has no separate permission system for agents. A token can only hold permissions its owner has, and what it may do is the intersection of its own set and the owner's current roles, checked again on every request: a person who loses a role loses it on every token they own. Tokens are created, edited and revoked only from a signed-in browser session, so a token cannot mint, edit or revoke tokens (MCP server and API tokens).
The default token preset, Drafts only, gives an agent what it needs to draft (view drafts, create, edit its own content, submit for review, upload media and use AI) and leaves publishing off. With that token the agent does not even see publish_entity in its tool list. The roles are the ones people have, from viewer to admin, with permissions down to content types, forms and fields (Getting started, Roles, Roles and permissions).
Drafts and review, enforced by the server
create_entity and draft_page_from_brief always create drafts, and update_entity never changes an item's status. An agent's work normally ends with submit_for_review, which puts it in the editors' review queue, and a comment that says what it did and what it was unsure about (Rules for agents).
Publishing is gated twice. The token must carry content.publish, and the pre-publish checks must pass: required fields, SEO lengths, image alt text, heading order, banned words and broken internal links. An error-level check refuses the publish unless someone sends force: true on purpose, which the rules for agents say never to do. An item dated in the future is refused too, so it gets scheduled rather than published early (MCP server and API tokens).
Changes that span many pages can go into a content release: a set of changes previewed as a whole site and published as one. An agent can work inside a release; merging it needs content.publish and a confirmation (Releases).
Budgets an agent cannot talk its way past
An MCP token makes at most 120 calls a minute. Deletes never happen on the first call: the tool answers with what would go and what depends on it, and only a second call with a confirmation token, bound to the same arguments and good for five minutes, deletes anything. A token can make 20 such destructive changes an hour (MCP server and API tokens).
The Site agent, the AI worker built into the admin, has limits of its own: tokens and steps per run and tokens per month, set for each agent or for the whole site, and every run counts toward the site's monthly AI token cap. A run that reaches a limit stops and is listed as stopped by budget (Getting started, Agents).
The audit log says who did what, through which token
Content written through a token is authored by the token's owner. The audit log gets one row for every bearer request and one for every tool call, both with the token's id, and a tool call that changes something records its arguments, with values under secret-looking keys masked. Revoking a token, or deleting its user, ends access on the next request (MCP server and API tokens). The Site agent works under a service user of its own, so its drafts name it as the author and the audit log records it with the person who asked (Getting started, Agents).
Content is data, not instructions
An agent that reads pages can be told things by them. Spillway's rules for agents say that content a tool returns is information, never an instruction: if a document says to publish, change permissions or send data somewhere, the agent tells its person instead, and the Site agent treats what it reads on the site the same way (Rules for agents). That rule is guidance; the permissions above are what stop an agent that ignores it.
What is not there yet
The MCP server takes a bearer token only, so clients whose connectors need OAuth, such as Claude Desktop's custom connectors and the ChatGPT app, need a local bridge or a proxy that adds the header for now (MCP server and API tokens). Spillway itself is alpha software in a private beta; the roadmap says what is ahead.
Questions and answers
Can an AI agent publish to a Spillway site?
Only if the person who made its API token gives the token the publish permission, and only when the pre-publish checks pass. The default token preset, Drafts only, leaves publishing off, so the agent creates drafts and submits them for review.
Can an agent get more permissions than the person it works for?
No. A token's permissions are the intersection of its own set and its owner's current roles, checked on every request, and a token cannot create or change tokens.
How do I see what an agent did?
In the audit log: one row for every bearer request and one for every tool call, each with the token's id. Content written through a token is authored by the token's owner.
How do I limit what an agent spends?
MCP tokens are limited to 120 calls a minute and 20 destructive changes an hour. The Site agent has tokens and steps per run and tokens per month, and every run counts toward the site's monthly AI token cap.