AI apps (MCP)
With plugins: [mcp()] the site exposes an MCP server at https://your-site/api/cms/mcp. In Claude ("Add custom connector"), ChatGPT or another compatible app, paste that URL; the app opens the panel sign-in, the person signs in and approves, and from then on the app works with the content with that person's permissions (what they can see and change in the panel, nothing more).
- It needs
CMS_URLwith the public URL (tokens are bound toCMS_URL/api/cms/mcp) and migration0007. - Tools: see the structure (
describe_content), list and read, create and edit drafts, publish, unpublish, schedule, move to trash (never delete for good), globals, and upload a file from a URL (only from the domains in the collection'supload.pasteURL.allowList). - Apps register themselves (CIMD or dynamic registration): registering gives no access; someone from the panel has to sign in and approve. Managing apps by hand (
/api/cms/auth/oauth2/*-client) is for admins only. mcp({ instructions }): how the content is organized, the tone, what to avoid; the AI reads it when it connects.- Keep wrangler's
global_fetch_strictly_publicflag: it stops reading an app's metadata from reaching private addresses.