The marketing CMS where agents draft and people publish
Menu

Build a site with an agent, start to finish

An agent can build most of a Spillway site through the MCP server: structure, brand, pages, menus and checks. A person makes the tokens and publishes. The steps, with the tools for each and the permissions they need.

An agent connected to Spillway's MCP server can build most of a site: it installs the structure, sets the brand, drafts every page, builds the menus and runs the checks. A person gives it tokens with the permissions each step needs and publishes what it hands over. This walkthrough follows Spillway's guides for agents and names the MCP tool for each step (Connect an agent, MCP server and API tokens).

If you already have a site elsewhere, start from it instead: the domain importer crawls its public pages, proposes content types, converts pages to blocks and lands everything as drafts, and the agent can drive it with estimate_import, start_import, classify_import, convert_import and land_import (The domain importer).

1. Get a site

The agent needs a running Spillway site to work on. Spillway hosting runs one for you and is in private beta by invitation (request early access); during the beta, running it yourself is under an agreement with KWALL LLC, and the install guide covers Docker and source (Install).

2. Make tokens for the work

In the admin, open the account menu and choose API tokens. A token can only hold permissions you have, so the person making it decides what the agent may do (Connect an agent). Make two:

  • A setup token for the structure, brand and menus: types.manage, kits.install, brand.manage and menus.manage, which managers and administrators hold (Roles and permissions). Give it a short expiry and revoke it when the setup is done.
  • A content token with the default preset, Drafts only: view drafts, create, edit its own content, submit for review, upload media and use AI, with publishing off.

3. Connect the agent

In Claude Code, one command adds the server: claude mcp add --transport http spillway https://your-site/mcp --header "Authorization: Bearer spw_...", or a .mcp.json that reads the token from the environment. Claude Desktop connects through mcp-remote, Cursor through .cursor/mcp.json, and any MCP client with the bearer header (Connect an agent). Keep the token out of prompts, files and commits (Rules for agents).

4. Read the content model

The agent starts with list_content_types and get_content_type, or the spillway://types resource: every type with its fields, required flags and the AI hint on each field (MCP server).

5. Give the site its structure

With the setup token, list_kits shows the bundled kits (among them higher education, city and local government, nonprofit, and intranet and portal), plan_kit says what one would add, and install_kit installs it after a two-step confirmation whose summary is that plan; what the site already has is kept. For a structure of its own, the agent can use create_content_type, create_vocabulary and create_collection, and a change that could lose content on a type with items is refused and left to a person (MCP server, Kits).

6. Set the brand

get_brand reads the theme tokens, logos and voice, with any color pair below WCAG AA contrast. update_brand_draft changes the draft token by token and reports contrast problems while the live site stays as it is, and publish_brand_draft puts it live after a two-step confirmation. Fonts, block styles and brand imports stay in the admin (MCP server, Theming).

7. Draft the pages

Switch to the content token. The write-page prompt runs the drafting workflow: learn the type, draft with draft_page_from_brief or create_entity, run the checks, fix, submit for review and leave a summary comment, and it does not publish. Before writing blocks, the agent reads get_block_schema; validate_layout checks a layout without saving it, and edit_layout changes one block at a time. Images come from the media library first (list_media), and upload_media adds one with its alt text (MCP server, Blocks).

For a launch where many pages should go live together, create_release starts a content release, and the agent passes its key to create_entity and edit_layout, so the live site is untouched until a person merges it (Releases).

8. Build the menus

list_menus and get_menu read them, and create_menu and update_menu change them with the setup token. Menus have no drafts and change live at once, so the agent reads the menu first and sends the whole item tree back (Connect an agent).

9. Check, then hand over

On every page it touched, the agent runs get_checks (empty pages, required fields, SEO lengths, alt text, heading order, banned words, broken internal links), fixes the errors and names the warnings, then calls submit_for_review with a comment for the reviewer (Rules for agents).

10. A person publishes

An editor opens the review queue, previews each draft and publishes it, or merges the release. That is the step the agent is not given: publishing needs content.publish on the token and passing checks, and the rules for agents say never to force past a failing check (MCP server, Getting started).

11. Keep it running

The Site agent in the admin takes over the routine: ask it questions about the site, or give it tasks once or on a schedule, starting from templates such as a weekly content draft, an accessibility and quality check, a monthly site report or stale content. Its drafts go to review, and its runs stay within their token and step limits and the site's monthly AI token cap. An MCP client whose token has agents.use can list those tasks and run one now with list_agent_tasks and run_agent_task (Getting started, Agents, MCP server).

What to expect

Spillway is alpha software in a private beta, and the MCP server takes a bearer token only, so a client that needs OAuth connects through a bridge or a proxy for now (MCP server). Everything the agent did is in the audit log, with a row for every request and every tool call, each with the token's id.

Questions and answers

What do I need to build a Spillway site with an agent?

A running Spillway site, an MCP client such as Claude Code, Claude Desktop or Cursor, and API tokens made in the admin. Spillway hosting is in private beta by invitation.

Which permissions does the agent need?

For the setup, a token with types.manage, kits.install, brand.manage and menus.manage, which managers and administrators hold. For the pages, the Drafts only preset, which leaves publishing off.

Can the agent publish the site?

Not with the Drafts only preset. Publishing needs content.publish on the token and passing pre-publish checks, so the normal end of the agent's work is submitting drafts for review.

Can the agent start from my existing website?

Yes. The domain importer, which the agent can drive through MCP, crawls the site's public pages, proposes content types and lands everything as drafts with redirects.