VirtuDoc ships offline MCP doc server with deterministic SQLite FTS5 retrieval for AI agents
sayboom · reddit · 2026-11-30
VirtuDoc 0.2.1 is a fully offline local documentation MCP server for AI agents, using SQLite FTS5 with BM25 ranking as an alternative to hosted services like Context7 and embedding-based RAG.
Key design points:
- Chunks cut along H2/H3 headings with section paths; fragments assembled under a 5000-token budget
- Deterministic retrieval: same query always returns the same fragments, with a cascade (exact → stemming → OR) handling inflections
- Explicit versioning: per-release library ids, lockfile pinning via virtudoc add, and no silent handoff of newer APIs
- Team notes with expiry: status (current/stale), review dates, and a doctor command flagging stale notes and version drift
- Honest responses: coverage reports matched/partial/none, invented identifiers appear in missingidentifiers, and uncovered queries tell the agent not to answer from memory
- --agents-hint writes MCP usage rules into AGENTS.md/CLAUDE.md — the author found agents skip MCP tools and grep the repo instead
Install with pipx install virtudoc; works with Claude Code, Cursor and OpenCode via one-line MCP config.
More from coding & agent
- Why are we still writing Python for AI agents? The case for agent-optimized languages — georgemillo · 2026-11-30
- Power User: Agents Are Now My Primary Interface for Everything — signulll · 2026-11-30
- California DMV Ranks #8 in a16z's Agent Spending Chart, Signaling Early Mainstream Adoption — omooretweets · 2026-11-30
- No 3D assets, no leaves modeled: Gemini-written code builds a bouncy Kyoto moss garden in Godot — Promptmethus · 2026-11-30
- Reddit user cut a dozen morning emails to one 3-item WhatsApp brief with an AI assistant — renovateg · 2026-11-30
- Antigravity already ships remote control for local agents — here's where — soumitrashukla9 · 2026-11-30