# PhrameCMS Documentation > PhrameCMS is a 100% PHP 8.5 headless, AI-native CMS featuring schema-first content modeling, canonical Git config sync, auto-generated JSON:API + OpenAPI 3.1, Change Proposals, and native Model Context Protocol (MCP) tooling. ## AI Access & Endpoints - [Complete Documentation Corpus](http://phramecms.org/llms-full.txt): Single-file plain-text Markdown export of all published guides, cookbook recipes, and package references. - Public Read-Only Docs MCP: `POST http://phramecms.org/docs/mcp` (JSON-RPC 2.0 Streamable HTTP; no authentication required; exposes the `docs.search` tool and `docs://` resources for published documentation only). Quick-connect example for `POST /docs/mcp`: ```json {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"docs.search","arguments":{"query":"custom module"}}} ``` ## Guides ### Getting Started - [Getting Started](http://phramecms.org/docs/getting-started.md): Install PhrameCMS from phramecms/skeleton, run the idempotent site installer, and make your first JSON:API and MCP calls. ### Architecture - [Architecture Overview](http://phramecms.org/docs/architecture.md): Understand PhrameCMS's AI-first micro-kernel design, topological module DAG, 10 official modules, OperationBus pipeline, and hexagonal PSR boundaries. ### Custom Modules - [Custom Modules Guide](http://phramecms.org/docs/custom-modules.md): Author, secure, package, and test custom PHP modules in PhrameCMS across the DI container, event bus, HTTP router, Admin UI, database schemas, and MCP. ### Operations - [Configuration Sync](http://phramecms.org/docs/configuration-sync.md): Manage active database configuration alongside Git-tracked canonical JSON in config/sync/ with dry-run previews, atomic imports, and immutable rollback snapshots. - [AI Change Proposals & Human Approval Queue](http://phramecms.org/docs/proposals.md): Let AI agents validate and stage mutating operations with propose.* scopes, optimistic beforeHash concurrency checks, and human review in /admin/proposals. ### SDK - [PHP SDK Guide](http://phramecms.org/docs/php-sdk.md): Install and configure phramecms/php-sdk in Symfony or any PSR-18/PSR-17 PHP 8.5 app, query content, manage configs and schemas, handle RFC 9457 errors, and unit-test with FakePhrameClient. ### Security - [Users, RBAC, and AI Agent Tokens](http://phramecms.org/docs/users-rbac-tokens.md): Configure users, RBAC roles, granular permission strings, least-privilege AI Agent Tokens, revocation, and the immutable audit trail. - [Security & Production Deployment](http://phramecms.org/docs/security-production.md): Harden PhrameCMS for production: public/ web root isolation, environment flags, Nginx Authorization header forwarding, multi-worker databases, CSRF, and deny-by-default authentication. ## Cookbook - [Custom Field Type and Admin Widget](http://phramecms.org/cookbook/custom-field-type-and-widget.md): Build a structured money FieldTypeInterface with a custom Admin UI FieldFormWidgetInterface, Twig partial via AdminTemplateNamespaceProviderInterface, module registration, and an in-process PHPUnit test. - [Custom Operation Across CLI, MCP, and Change Proposals](http://phramecms.org/cookbook/custom-operation-cli-mcp-proposals.md): Implement one state-mutating, dry-run-capable OperationInterface with JSON Schema and RBAC checks so it works automatically across OperationBus, CLI, MCP, and Change Proposals. - [Entity Lifecycle Event Subscriber](http://phramecms.org/cookbook/entity-lifecycle-event-subscriber.md): Subscribe to EntityPreSaveEvent, EntityPostSaveEvent, and EntityTransitionedEvent via phrame.event_subscriber while respecting PhrameCMS transaction and dry-run invariants. - [Custom Admin Page with Twig and CSRF Protection](http://phramecms.org/cookbook/custom-admin-page-with-twig.md): Build a session-authenticated, RBAC-guarded, CSRF-protected Admin UI page with a sidebar menu item, module Twig namespace, AdminResponder::renderPage(), and an in-process HTTP test. - [Headless Symfony App with PHP SDK](http://phramecms.org/cookbook/headless-symfony-app-with-php-sdk.md): Wire PhrameCmsBundle into a Symfony 8 frontend, build a TTL-cached repository using PhrameClientInterface::content()->iterateAll(), render articles in Twig, and unit-test with FakePhrameClient. - [Safe AI Content Updates with Change Proposals](http://phramecms.org/cookbook/safe-ai-content-updates-with-proposals.md): Give an AI agent a propose.*-scoped token with zero live write permission, stage entity.update proposals over MCP, detect stale beforeHash conflicts, and review or approve changes in /admin/proposals. ## Reference - [Service Tags Reference](http://phramecms.org/reference/service-tags.md): Complete reference of all 13 official PhrameCMS DI container service tags, constants, interfaces, priority behavior, and registration snippets. - [Operations & MCP Reference](http://phramecms.org/reference/operations-mcp.md): Authoritative reference of all built-in OperationBus operations, MCP JSON-RPC 2.0 methods, tool naming and error semantics, and built-in phrame:// resources. - [CLI Commands Reference](http://phramecms.org/reference/cli-commands.md): Complete reference for the ./bin/phrame CLI commands, global --json output envelopes, ExitCode enum, and the ./bin/phrame-mcp stdio entrypoint. - [Environment Variables Reference](http://phramecms.org/reference/env-vars.md): Complete reference of PhrameCMS runtime, MCP, Admin UI, and Docker development environment variables, loading precedence, defaults, and security notes. - [PHP SDK Reference](http://phramecms.org/reference/php-sdk.md): Authoritative API reference for phramecms/php-sdk: ClientConfig, client interfaces, ContentQuery, readonly DTOs, RFC 9457 exceptions, PhrameCmsBundle, and FakePhrameClient.