Skip to content

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_URL with the public URL (tokens are bound to CMS_URL/api/cms/mcp) and migration 0007.
  • 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's upload.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_public flag: it stops reading an app's metadata from reaching private addresses.