JohnXu22786/docs-retriever ↗★ 0
doctrove
面向编码 agent 的版本化库文档检索:检索文档目录、选择版本、按主题提取带相关度排序的文档片段。以 MCP stdio server 形式运行,零运行时依赖,可被 dsh 等插件化 harness 加载
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JohnXu22786/docs-retriever说明文档
阅读完整 README ↗Configuration reference
Precedence: command line > environment variables > config file > defaults.
| Setting | CLI | Environment variable | Config file key | Default |
|---|---|---|---|---|
| Remote index URL | --index-url | DOCTROVE_INDEX_URL | indexUrl | none (offline) |
| Local index path | `--local-index | |||
| ` | DOCTROVE_LOCAL_INDEX | localIndex | built-in data/index.json | |
| Cache lifetime (s) | --cache-ttl / --no-cache | DOCTROVE_CACHE_TTL | cacheTtl | 600 |
| Remote timeout (ms) | --timeout-ms | DOCTROVE_TIMEOUT_MS | timeoutMs | 15000 |
| Debug logging | --debug | DOCTROVE_DEBUG | debug | false |
| Config file | `--config | |||
| ` | DOCTROVE_CONFIG | — | none |
The config file is JSON (example: examples/doctrove.config.example.json). All configuration is read-only:
the plugin performs no writes and persists no local state. Empty-string environment variables count as unset (defaults apply);
cacheTtl: 0 is a valid value (cache disabled).