How AI Agents Work
A plain-English guide to connecting Claude, Cursor, or custom AI agents to OvertCMS safely—using scoped API keys, native MCP, and strict security boundaries.
OvertCMS is built from the ground up so you can let AI assistants (Claude Desktop, Cursor, Windsurf, or custom workflows) draft, edit, organize, and upload content without ever giving them human admin access.
The 3-Step Workflow#
Create an AI Agent Key in Admin
Open the Admin UI and go to AI Agents (under Settings/Developers). Click New Agent Key, name it (for example,
Claude Content Assistant), choose a permission level, and copy the one-time key (ocms_live_...).Pick the Right Permission Level
Choose the narrowest preset that matches what you want the agent to do:
- Read Only (
public_read) — Research and read existing content only. - Drafts Only (
agent_drafter) — Recommended default. Can create drafts, edit drafts, and upload media, but cannot publish, unpublish, or delete anything. Humans review and publish. - Draft & Publish (
agent_publisher) — Can draft, publish, schedule, and manage media, but cannot change your content models. - Full Access (
schema_admin) — Can also create or edit Content Models and Reusable Blocks.
- Read Only (
Connect via MCP or REST
- Claude / Cursor / MCP hosts: Point your MCP config at
https://your-cms/mcpwithAuthorization: Bearer ocms_live_.... See Connect via MCP. - Custom scripts & workflows: Point your agent at
/.well-known/agent-cms.jsonor/agent/v1/promptso it learns your exact schema, rules, and constraints automatically. See Discovery & System Prompts.
- Claude / Cursor / MCP hosts: Point your MCP config at
What Agents Can and Cannot Touch#
Because the Agent Plane (/agent/v1/* and /mcp) is completely isolated from the Admin Plane (/admin-api/v1/*), an AI agent key can never escalate privileges or inspect your internal security settings.
| Capability | Allowed for Agents? | Details |
|---|---|---|
| Read site schema & field instructions | Yes | Filtered strictly to the models allowed on that key. |
| Search, create, and update entries | If permitted | Enforces every field rule, reference check, and aiWritable: false lock. |
| Publish, schedule, or unpublish entries | Only with entries:publish |
Taking down a live entry requires explicit confirmUnpublish: true. |
| Upload or sideload media | Only with media:write |
Enforces file-type allowlists, SSRF protection, and daily byte caps. |
| Create or edit Content Models / Blocks | Only with schema:write |
Hidden from MCP tools/list unless the key has schema:write. |
| Users, passwords, roles, or invitations | Never | No routes exist on the Agent Plane; Admin Plane rejects API keys with 401. |
| 2FA / Passkeys / OIDC / Sessions | Never | Strictly human Admin Plane only. |
| API Keys (listing, creating, revoking) | Never | Agents cannot mint or view other keys. |
| Webhooks, Audit Logs, or Org Settings | Never | Strictly Admin Plane only. |
| Database, R2/S3, or SMTP secrets | Never | Server secrets never leave the backend process. |
Built-In Safety Nets#
Even with a write-enabled agent key, OvertCMS protects your site automatically:
- Per-model scoping: Allow an agent to write to
postswhile keepingauthorsread-only and hidinglegal-pagescompletely. - Field & block locks (
aiWritable: false): Lock specific fields or blocks so only humans can edit them. - Rate limits & daily caps: Cap requests per minute (
rateLimitRpm), writes per day (dailyWriteCap), and media bytes per day (dailyMediaBytesCap). - Dry-run validation (
dryRun: true): Let agents check their payload before writing a single row. - Idempotency keys: Prevent duplicate entries if an agent retries after a network hiccup.
- Emergency Kill Switch: One click in Admin (AI Agents → Pause All Agent Writes) immediately pauses every agent write across REST and MCP while human editors keep working normally.