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.

OpenKnowledgebase architecture People in the browser and agents such as Claude Code, Cursor or any MCP client connect to the frontend. The frontend, Nuxt 4, holds the Nuxt UI editor with Tiptap and Yjs, the Hocuspocus collaboration server, Nuxt Chat with the AI SDK, the MCP endpoint /api/mcp and the comark components. It talks both ways with the backend, Drupal 11: the OpenKB modules, Drupal AI for chat and embeddings, AI guardrails, Tool API and MCP Server, Simple OAuth, Search API, Lupus Decoupled and Custom Elements. The backend talks both ways with search, OpenSearch 3: keyword and vector search ranked together in one chunk index, through Search API and the AI VDB provider, shared by search, chat and agents. Below the backend sit MariaDB for the content and cron, which runs the same image, and next to them the AI provider, any Drupal AI provider. Five containers, one Docker Compose stack, running on 4 GB of RAM. People Browser Agents Claude Code, Cursor, any MCP client Frontend Nuxt 4 • Nuxt UI editor, Tiptap + Yjs • Hocuspocus collab server • Nuxt Chat with AI SDK • MCP endpoint /api/mcp • comark components Backend Drupal 11 • OpenKB modules • Drupal AI: chat, embeddings • AI guardrails • Tool API + MCP Server • Simple OAuth, Search API • Lupus Decoupled + Custom Elements Search OpenSearch 3 • Keyword and vector search, ranked together • One chunk index • Search API + AI VDB provider • Shared by search, chat and agents MariaDB content cron same image AI provider any Drupal AI provider Five containers, one Docker Compose stack. Runs on 4 GB RAM.

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.