# agent-cms > Serverless CMS for agents and humans: an add-on for Next.js apps with Postgres. People edit in admin screens; agents edit the same documents through MCP, a CLI and REST, or the same tools inside your own agent. Read these docs over MCP without a key: https://agent-cms-docs.vercel.app/api/cms/mcp (tools: search_documents, read_for_answer, get_document, list_documents, list_collections). Full text in one file: https://agent-cms-docs.vercel.app/llms-full.txt ## Get started - [Introduction](https://agent-cms-docs.vercel.app/docs/introduction.md): An add-on CMS that runs inside your Next.js app, edited by people and agents alike. - [Install](https://agent-cms-docs.vercel.app/docs/install.md): Add the package, run init, and create the tables. - [Quick start](https://agent-cms-docs.vercel.app/docs/quick-start.md): One collection, the API route and the admin screens in a Next.js app. ## Guides - [Collections](https://agent-cms-docs.vercel.app/docs/collections.md): Visibility, fields, categories, access rules and hooks. - [Versions and drafts](https://agent-cms-docs.vercel.app/docs/versions-and-drafts.md): Snapshots, publishing, restoring and comparing versions. - [Editing together](https://agent-cms-docs.vercel.app/docs/editing-together.md): Conflicts, merging, autosave, agent review, preview links and bulk actions. - [Search](https://agent-cms-docs.vercel.app/docs/search.md): Section-level search with citation ids, and search misses for your app. - [Rendering](https://agent-cms-docs.vercel.app/docs/rendering.md): Turn a document body into your own components. - [Media library](https://agent-cms-docs.vercel.app/docs/media-library.md): Pictures, video and files in your own bucket. Uploads go straight from the browser to the storage. - [File manager](https://agent-cms-docs.vercel.app/docs/file-manager.md): The storage bucket as it is, folder by folder. Move, share and delete files, also ones nobody uploaded through the CMS. - [Publishing flow](https://agent-cms-docs.vercel.app/docs/publishing-flow.md): Scheduled publishing, review requests, comments, releases and the trash, and the one cron call they need. - [Webhooks, jobs and plugins](https://agent-cms-docs.vercel.app/docs/webhooks.md): Signed webhooks with retries, the background jobs that send them, collection hooks, plugins and telemetry. - [Automations, roles and the dashboard](https://agent-cms-docs.vercel.app/docs/automations.md): Rules that run after something happens, who may write and publish in each collection, and the numbers of your content on one screen. - [Export and import](https://agent-cms-docs.vercel.app/docs/import-export.md): Documents as markdown files, between two installations or from WordPress, CSV and JSON. An import shows what it would do before it does it. - [Limits, key rotation, retention and events](https://agent-cms-docs.vercel.app/docs/operations.md): Requests per minute for keys and strangers, addresses a key may be used from, a new secret without downtime, how long logs are kept, and a live stream of what happens. - [Agents edit documents like code](https://agent-cms-docs.vercel.app/docs/agent-files.md): Read a document as a numbered file, search many, replace exact text, push files from your editor, keep agents' edits as suggestions, and keep HTML exactly as written. - [Sign-in of its own](https://agent-cms-docs.vercel.app/docs/sign-in.md): People, passwords, passkeys, two-step codes, single sign-on and invitations, for apps without a login. - [The CMS on its own](https://agent-cms-docs.vercel.app/docs/standalone-server.md): npx @mainsoft/agent-cms dev or serve — the admin, the API, MCP and sign-in on one port, without a web app. - [Several servers, caching and sites](https://agent-cms-docs.vercel.app/docs/scaling.md): The change log carries events between servers; a read cache, paging in the database, drivers, Edge, several sites and metrics. ## Agents - [Your own agent](https://agent-cms-docs.vercel.app/docs/ai-sdk.md): Give the agent in your app the CMS tools, in-process or from another service. The package itself never calls a model. - [MCP](https://agent-cms-docs.vercel.app/docs/mcp.md): Connect coding agents to your CMS, with a key or read-only without one. - [CLI](https://agent-cms-docs.vercel.app/docs/cli.md): Read and write documents from a shell, for agents and scripts. - [Answering questions](https://agent-cms-docs.vercel.app/docs/answering.md): Find sections, cite them, and keep document text from acting as instructions. ## Admin screens - [Admin screens](https://agent-cms-docs.vercel.app/docs/admin-screens.md): Copy the screens into your app, theme them, and keep them up to date. ## Reference - [REST API](https://agent-cms-docs.vercel.app/docs/rest-api.md): The routes under /api/cms. - [Errors](https://agent-cms-docs.vercel.app/docs/errors.md): One error shape on every transport, with fine codes and coarse kinds. - [Security](https://agent-cms-docs.vercel.app/docs/security.md): API keys, scopes, expiry and the audit log. - [OpenAPI and other servers](https://agent-cms-docs.vercel.app/docs/openapi.md): The REST API as an OpenAPI 3.1 document with a typed schema per collection, and how to mount the handler on Express, Fastify, Hono and others. ## Upgrade - [Upgrade to 0.6 and 0.7](https://agent-cms-docs.vercel.app/docs/upgrade-0-6.md): What changed, what to run, and how to move cms_gaps before anything drops it. - [Upgrade to 0.8](https://agent-cms-docs.vercel.app/docs/upgrade-0-8.md): The ./ai entry is gone, the schema is version 3, agents can act for a person, and the media library is opt-in. - [Upgrade to 0.10](https://agent-cms-docs.vercel.app/docs/upgrade-0-10.md): The schema is version 4, deleting means the trash, schedules need a cron call, and four screens have new parts. - [Upgrading to 0.11](https://agent-cms-docs.vercel.app/docs/upgrade-0-11.md): Schema version 5 adds three columns for files. The editor now fills the window's height. Vercel Blob and image sizes are off until you turn them on. - [Upgrading to 0.12](https://agent-cms-docs.vercel.app/docs/upgrade-0-12.md): Schema version 6 adds three tables for jobs and webhooks. The cron call now also sends webhooks. Webhooks stay off until you set secretsKey. - [Upgrading to 0.13](https://agent-cms-docs.vercel.app/docs/upgrade-0-13.md): Schema version 7 adds one table for automations and roles. Four new screens. Nothing changes for an existing app until you use them. - [Upgrading to 0.14](https://agent-cms-docs.vercel.app/docs/upgrade-0-14.md): No schema change. Request limits, key rotation, retention, more hooks and the events stream are all off until you set them. - [Upgrading to 0.15](https://agent-cms-docs.vercel.app/docs/upgrade-0-15.md): Schema 8 adds one column. The block editor, HTML, agent file tools and publish checks are all opt-in. - [Upgrading to 0.16](https://agent-cms-docs.vercel.app/docs/upgrade-0-16.md): No schema change. People are found by name or email; the CMS can sign people in and run on its own. - [Upgrading to 0.17](https://agent-cms-docs.vercel.app/docs/upgrade-0-17.md): Schema 9 adds the change log and indexes. Events reach every server; lists are paged in the database.