VirtuDoc: Open-Source Local Docs Server Feeds Internal APIs to Coding Agents via MCP
sayboom · reddit · 2026-11-20
The author built VirtuDoc, a local docs server, to fix two annoyances with Claude Code / Cursor / Opencode: they re-fetch the same public docs every session, and they know nothing about internal docs, so they invent method names.
- How it works: Point it at a folder of docs (Markdown, RST, HTML, txt); it indexes them into SQLite FTS5 and serves fragments over MCP with two tools — find-library and get-library-docs (with a controllable token budget). Fully local, no network, no API keys.
- BM25 over embeddings: Less magic — the same query always returns the same fragments, and no model download is needed.
- Smart chunking: Splits on H2/H3, never cuts code blocks, and each chunk carries its section path.
- Team notes: Attach notes to a library (e.g. "Use the retry helper for outbound calls") that the agent receives along with the docs.
- Version drift check: virtudoc doctor warns when indexed doc versions don't match project dependencies.
Open source at github.com/saromanov/virtudoc (Python 3.11+, MIT). The author is asking what doc formats to support next and whether keyword search suffices vs embeddings.
More from coding & agent
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29
- 'Verification is AI's next trillion-dollar category' — proof checkers, evals, agents auditing agents — McDonaghMatthew · 2026-11-29
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29
- 'End user programming!': a three-word verdict on what LLM coding really unlocks — round · 2026-11-29
- Founder claims LLMs aren't even the right ML approach for writing programs — jfischoff · 2026-11-29
- Gmail's official MCP only drafts, never sends: devs slam over-cautious agent design — steipete · 2026-11-29