What's here
--fix— repairs mechanical rot: dead anchors (single unambiguous target only), lookalike script/install/bin names, docs-root style links, and missing commas that provably make the block parse. Re-scans after writing and reverts any file that got worse.--dry-runpreviews.- MCP server —
docrot-mcpgives coding agents deterministic docs verification:scan_docsandfix_docs(previews by default).claude mcp add docrot -- npx -y -p docrot-cli docrot-mcp - Python verification — doctest sessions, indented fragments, parameter excerpts and IPython magics all parse before anything is flagged. FastAPI's 4,868 blocks: zero errors, ~9s.
- Convention shields learned from the wild: mkdocs include directives, JSON Lines, i18n fallback trees, test trees excluded by default.
Install: npx docrot-cli · npm: docrot-cli