Skip to main content
Glama


Why decisions get broken

Most engineering decisions live outside the repository, in Slack threads, pull request comments, design docs, and tickets. A coding agent editing a file only sees the code and comments in git. If a constraint was agreed in a pull request or a Slack channel, the agent doesn't know about it, and tests only fail if someone wrote a test for that constraint.

Related MCP server: MCPDocSearch

How it works

DocBrain connects those decisions to the files they affect, checks whether the facts they depend on are still true, and shows them before the file changes:

  1. Read-only connectors pull decisions from Slack, GitHub, GitLab, Confluence, Jira, PagerDuty, and custom plugins. In an editor session, you can also say "capture this" and approve the draft before anything is saved.

  2. Between sessions, DocBrain checks each decision's premises against its source (for example, cert-manager is pinned to chart version 1.21.1) and records when a value changes.

  3. Before an edit and on every pull request, DocBrain shows the decisions and broken-premise warnings for the touched files. It warns by default and blocks when you configure it to. Active records sync to .knowledge/ as plain Markdown so checks also run offline.

State

Meaning

holds

the source still matches the premise

broken

the source changed; includes the new value and the date

uncheckable

the source couldn't be read on the last check

dormant

checks are paused for this premise

When a source can't be read, DocBrain marks the premise uncheckable instead of broken so a network error doesn't produce a false alert.

Quickstart

1. Start the server

git clone https://github.com/docbrain-ai/docbrain.git && cd docbrain
./scripts/setup.sh

./scripts/setup.sh configures your model provider (local Ollama with no API key, or any of 14 cloud providers), generates keys, creates your account, and starts the web app and API at http://localhost:3001. For manual Docker Compose or Kubernetes setup, see the quickstart and Kubernetes guide.

2. Connect your coding agent

claude plugin marketplace add docbrain-ai/docbrain --scope project && claude plugin install docbrain@docbrain --scope project
claude mcp add --transport http --scope project docbrain http://localhost:3001/api/v1/mcp

Run /mcp in Claude Code, pick docbrain, and click Allow in your browser. Add these lines to CLAUDE.md or AGENTS.md so the agent checks DocBrain before editing:

Before editing files you have not worked in before, call docbrain_context
with their repo-relative paths and read what comes back first.

For Cursor, VS Code, or stdio setup, see coding agents and examples/mcp-configs/.

Architecture

DocBrain runs a Rust server, PostgreSQL, OpenSearch, and Redis behind a single origin. On Kubernetes, the default Helm chart requests 500m CPU and 2 GiB of memory for PostgreSQL and a few hundred megabytes each for the server and web app; the optional learning trainer is capped at 8 GiB.

Everything runs in your network and reads your connected sources without writing to them. Confluence restrictions, Slack channel membership, and repository visibility apply to queries, and API keys are hashed with Argon2. Client and verification code in crates/ and tools/ is MIT licensed; see architecture, access control, and THREAT_MODEL.md.

Navigate

Task

Start here

Run locally with Ollama or cloud models

Quickstart, LLM providers, Configuration

Deploy on Kubernetes with SSO and permissions

Kubernetes Helm guide, Access control, RBAC, SSO

Wire up Claude Code, Cursor, VS Code, or the CLI

Coding agents, MCP configs, Claude Code plugin, CLI reference

Connect Slack, GitHub, Confluence, or custom tools

Ingestion guide (13 built-in sources), Connector SDK

Inspect .knowledge/, premise checks, and .dbev proofs

Premise checks, docbrain-knowledge, Evidence bundles

Audit security, data retention, and open client crates

Threat model, Data retention, crates/, Roadmap

Use cited Q&A, Slack, doc drafting, or the REST API

API reference, MCP tools, Slack, Knowledge intelligence, Autopilot, Generate, Governance, Reviews, Style policy, Learning

See it in action

What is DocBrain?, 5-min overview

Deep Dive Podcast, 20-min deep dive

MCP Preview, 30-sec IDE demo

Full Proof Demo, Downvote → Gap → Draft

Contributing and license

Code pull requests are welcome in crates/, plugins/, and helm/, and bug reports, configuration fixes, and documentation improvements are welcome across the repository. Read the contributing guide, security policy (don't file public issues for vulnerabilities), and code of conduct. For questions or feedback, open a GitHub Issue, start a Discussion, or email hello@docbrainapi.com.

This repository is MIT licensed. DocBrain server binaries and container images are distributed under the Business Source License 1.1, which permits production use except offering DocBrain as a hosted service; for alternative licensing, email licensing@docbrainapi.com.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers