Architecture
Decoupled Drupal, one store. People and agents reach the same frontend; the frontend works on the content Drupal holds; search, the chat and agents all read from one index.
People and agents
People work in the browser. Agents, such as Claude Code, Cursor or any other MCP client, connect to the MCP endpoint of the same frontend, sign in over OAuth and act with their owner's permissions, never more. Both edit the same pages in the same live session.
Frontend: Nuxt 4
The frontend is the app people see: the block editor, built on Nuxt UI with Tiptap and Yjs, and the Hocuspocus collaboration server that keeps every editor in sync, embedded in the same process. It runs the chat with the AI SDK, serves the MCP endpoint at /api/mcp and renders pages from comark, the Markdown the pages are stored in.
Backend: Drupal 11
Drupal holds the content and decides who may do what: the OpenKB modules carry spaces, permissions, the review workflow, JSON:API and the MCP tools. Drupal AI runs chat and embeddings on the provider you choose, with guardrails on every AI call. Tool API and MCP Server offer the tools, Simple OAuth issues the agents' tokens, Search API feeds the index, and Lupus Decoupled with Custom Elements serves the pages to the frontend.
Search: OpenSearch 3
Every published page is cut into sections and stored in one chunk index, with its words and its meaning. A query ranks both together. Search API and the AI VDB provider feed it; the search page, the chat and agents all ask the same index, and each only ever finds what its reader may read.
The stack
Five containers in one Docker Compose stack: drupal, cron (the same image, running Drupal's cron), frontend, MariaDB for the content and OpenSearch. The AI provider is any provider of the Drupal AI framework, outside the stack. It runs on 4 GB of RAM. Installation brings it up; the module is on drupal.org/project/openkb.