Provides tools for generating commit messages, PR descriptions, and changelogs from git history, as well as code expertise mapping and reviewer suggestions based on git blame analysis.
@doclea/mcp
Local MCP server for Doclea — persistent memory for AI coding assistants.
Doclea gives your AI coding assistant (Claude Code, etc.) persistent memory across sessions. It remembers architectural decisions, patterns, solutions, and codebase context so you don't have to repeat yourself.
Features
Persistent Memory — Store decisions, patterns, solutions, and notes that persist across sessions
Semantic Search — Find relevant context using vector similarity search
Git Integration — Generate commit messages, PR descriptions, and changelogs from your history
Code Expertise Mapping — Identify code owners and suggest reviewers based on git blame analysis
Zero-Config Mode — Works immediately with no Docker or external services required
Auto-Detection — Automatically uses optimized Docker backends when available
Quick Start
Add to your Claude Code config (~/.claude.json or project .claude.json):
Restart Claude Code, navigate to your project, and ask:
That's it! Doclea scans your codebase, git history, and documentation to bootstrap memories.
Installation Options
Method | Command | Setup Time | Best For |
Zero-Config |
| <30 seconds | Quick start, small projects |
Optimized |
| 3-5 minutes | Production, large codebases |
Manual | Clone & build | 5-10 minutes | Development, customization |
Zero-Config (Recommended)
Works immediately with no Docker required. Uses embedded sqlite-vec for vectors and Transformers.js for embeddings.
First run downloads the embedding model (~90MB) which is cached for future use.
Optimized Installation (Docker)
For larger codebases with better performance:
This script:
Detects your OS and architecture
Installs prerequisites (Bun, Docker if needed)
Sets up Qdrant vector database and TEI embeddings service
Configures Claude Code automatically
Manual Installation
Add to Claude Code (~/.claude.json):
For detailed setup instructions, see docs/INSTALLATION.md.
Usage Examples
Store Memories
Search Context
Git Operations
Code Expertise
MCP Tools
Memory Tools
Tool | Description |
| Store a memory (decision, solution, pattern, architecture, note) |
| Semantic search across memories |
| Get memory by ID |
| Update existing memory |
| Delete memory |
Git Tools
Tool | Description |
| Generate conventional commit from staged changes |
| Generate PR description with context |
| Generate changelog between refs |
Expertise Tools
Tool | Description |
| Map codebase expertise and bus factor risks |
| Suggest PR reviewers based on file ownership |
Bootstrap Tools
Tool | Description |
| Initialize project, scan git history, docs, and code |
| Import from markdown files or ADRs |
Memory Types
Type | Use Case |
| Architectural decisions, technology choices |
| Bug fixes, problem resolutions |
| Code patterns, conventions |
| System design notes |
| General documentation |
Configuration
Doclea works out of the box with zero configuration. It auto-detects available backends:
If Docker services (Qdrant/TEI) are running → uses them for better performance
Otherwise → uses embedded sqlite-vec + Transformers.js
Custom Configuration
Create .doclea/config.json in your project root:
Embedding Providers
Provider | Config | Notes |
|
| Default, no Docker |
|
| TEI Docker |
|
| API key required |
|
| Local Ollama |
Vector Store Providers
Provider | Config | Notes |
|
| Default, no Docker |
|
| Docker service |
Architecture
Development
Troubleshooting
First startup is slow
The embedding model (~90MB) downloads on first run. Cached at:
Linux/macOS:
~/.cache/doclea/transformersWindows:
%LOCALAPPDATA%\doclea\transformers
macOS SQLite extension error
macOS ships with Apple's SQLite which doesn't support extensions:
The server auto-detects Homebrew SQLite.
MCP server not appearing in Claude
Verify the path in config is absolute (manual installs)
Check that
bun run buildcompleted successfullyRestart Claude Code completely
See docs/INSTALLATION.md for more troubleshooting.
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Roadmap
Cloud sync for team collaboration
VS Code extension
Additional embedding providers
Memory analytics dashboard