Most CMS demos are either a marketing video or a sandbox that wipes itself every hour. Ours is the real thing.
The live Headcode CMS demo at v4.headcodecms.com runs the exact same single-tenant Rust backend and Next.js frontend you get when you clone the repository. Anyone can inspect the website, sign into /admin, and connect their AI client to the MCP server. The only difference is permissions: visitors can read everything live and change nothing.
What you need
- For the website: nothing. Open v4.headcodecms.com, append
?mdto any page for Markdown, or inspect /llms.txt. - For
/adminand the MCP server: your email address for a one-time magic link over OAuth 2.1. No API key to generate, no token to paste into a config file.
Your email address is used only to sign you in via our shared Better Auth service. No newsletter, no marketing emails, and we never share or sell it. The Headcode backend itself is zero-PII: it only verifies the signed JWT and sees an opaque sub identifier, never your email.
1. Connect your CLI agent (Claude Code, Codex, OpenCode)
Every Headcode backend exposes a Streamable HTTP MCP endpoint with OAuth 2.1 Protected Resource Metadata (/.well-known/oauth-protected-resource). Your client discovers the auth server automatically, opens your browser for magic-link sign-in, asks for consent, and stores a scoped access token.
The live read-only MCP endpoint is:
https://v4-api.headcodecms.com/mcpAdd the read-only MCP server in one step
Pick your CLI harness below. After running the command, complete the one-time OAuth 2.1 browser sign-in with your email.
claude mcp add --transport http headcode-demo https://v4-api.headcodecms.com/mcp # Then inside Claude Code, run /mcp and choose Authenticate
Web & desktop clients (Claude, ChatGPT, Grok)
- Claude (web & desktop): open Customize → Connectors → Add custom connector, name it
Headcode Demo, pastehttps://v4-api.headcodecms.com/mcp, and click Connect. - ChatGPT: enable Developer mode if needed, choose Add custom MCP server, paste
https://v4-api.headcodecms.com/mcp, pick OAuth, and sign in with your email. - Grok: open Connectors → New connector → Custom, paste
https://v4-api.headcodecms.com/mcp, and complete OAuth sign-in.
2. Four real MCP queries — and what comes back
Even if you do not want to connect an assistant right now, here are four concrete prompts you can send to the read-only demo server, the exact MCP tool your agent calls, and the real response Headcode returns.
Query 1: List all published entries
Prompt: "Which pages and entries are currently live in the Headcode demo?" Tool call: entries_list({ "version": "live" })
{
"entries": [
{ "slug": "home", "section_count": 9, "updated_by": "seed" },
{ "slug": "docs", "section_count": 11, "updated_by": "seed" },
{ "slug": "pricing", "section_count": 4, "updated_by": "seed" },
{ "slug": "header", "section_count": 1, "updated_by": "seed" },
{ "slug": "footer", "section_count": 1, "updated_by": "seed" },
{ "slug": "llms", "section_count": 1, "updated_by": "seed" },
{ "slug": "blog/field-notes-from-headcode", "section_count": 4, "updated_by": "seed" },
{ "slug": "pages/general-page-headcode", "section_count": 3, "updated_by": "seed" }
]
}Query 2: Read the live homepage structure
Prompt: "Read the live home page from Headcode and summarize its sections." Tool call: entry_get({ "slug": "home", "version": "live" })
{
"slug": "home",
"version": "live",
"sections": [
{
"name": "meta",
"data": {
"title": "Headcode CMS v4 - Agentic Web CMS",
"description": "Single-tenant Rust MCP CMS built on mstack..."
}
},
{
"name": "hero",
"data": {
"eyebrow": "Version 4 · Built on mstack",
"title": "Agentic Web CMS",
"primaryButton": { "title": "Getting Started", "url": "/docs" },
"secondaryButton": { "title": "Open Admin", "url": "/admin" }
}
},
{
"name": "logos",
"data": {
"eyebrow": "Built with",
"items": ["Rust", "Turso", "MCP", "Next.js", "Vercel", "shadcn/ui"]
}
}
// ...5 image-text feature rows + 1 rich text section
]
}Query 3: Inspect the JSON Schema before drafting
Prompt: "Which section types does this site allow, and what fields does the hero section have?" Tool call: schema_get({})
Every Headcode site compiles its TypeScript Zod definitions (headcode/sections.ts) into JSON Schema. Agents read schema_get once so they never guess field names, enum values, or character limits:
{
"globals": [
{ "slug": "home", "path": "/", "sections": ["meta", "hero", "logos", "image-text", "image", "text"] },
{ "slug": "docs", "path": "/docs", "sections": ["meta", "hero", "snippet", "image-text", "code", "text"] },
{ "slug": "pricing", "path": "/pricing", "sections": ["meta", "hero", "plans", "text"] }
],
"collections": [
{ "slug": "blog", "sections": ["blog-meta", "hero", "image", "text", "image-text"] },
{ "slug": "pages", "sections": ["meta", "hero", "text", "image-text", "image"] }
],
"sections": {
"hero": {
"title": "Hero",
"properties": {
"eyebrow": { "type": "string" },
"title": { "type": "string" },
"description": { "type": "string" },
"primaryButton": { "type": "object" },
"secondaryButton": { "type": "object" }
}
}
}
}Query 4: Try to change or delete something (access control in action)
Prompt: "Delete the pricing page in Headcode." Tool call: entry_delete({ "slug": "pricing", "version": "draft" })
Go ahead and try it. Your signed-in account has no member role on the demo, so your agent inherits the exact same read-only boundary. The Rust backend rejects the call before touching Turso:
MCP error -32602: Only members can delete entries. An admin can create a one-time invite with invite_create.That is the exact same check that protects your own production site. Access control lives inside the Rust MCP backend on every single tool call — never in a system prompt.
An agent never has more rights than the person who connected it.
3. Ready to run your own writable instance?
On your own Headcode installation, you redeem the first one-time admin invite, and from that moment on your agent can draft entries, inspect diffs, generate rotatable preview links, upload media, and publish live updates with automatic Vercel cache revalidation.
Next: follow Install Headcode CMS in five minutes or browse the full documentation.