indxr
by bahdotsh·★ 64·综合分 46
一个为 AI 代理设计的快速代码库索引器和知识 Wiki,提供 26 个 MCP 工具进行代码分析。
概述
Indxr 为 AI 代理提供全面的代码库理解解决方案,通过结构化索引和持久化知识 Wiki 来实现。它提供 26 个 MCP 工具用于符号查找、文件摘要、调用者跟踪和依赖分析,以及 9 个 Wiki 工具用于跟踪架构决策和失败模式。该服务器支持 27 种编程语言,具有自更新 Wiki、Git 结构化差异分析和复杂热点分析功能。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要具有持久知识捕获功能的全面代码理解工具,尤其是在难以保持最新文档的大型代码库中时,选择 indxr。
什么时候不要选它
如果您需要代码的写入权限(它是只读的),拥有非常简单的代码库不值得复杂索引,或更喜欢更集成的 IDE 解决方案,不要选择 indxr。
此 server 暴露的工具
从 README 抽取出 12 个工具wiki_generateInitialize a new wiki and return structural context for page planning
wiki_searchSearch wiki by keyword or concept; returns matching pages with excerpts
wiki_readRead a wiki page by ID; returns full content with metadata
wiki_statusCheck wiki health: page count, staleness, source file coverage
wiki_contributeWrite knowledge back to the wiki (create or update pages)
wiki_updateAnalyze code changes and return affected pages with diff context
wiki_compoundAuto-route synthesized knowledge to the best matching page
wiki_record_failureRecord a failed fix attempt for future agents to learn from
findFind files/symbols by concept, name, callers, or signature pattern
summarizeUnderstand files/symbols without reading source. Auto-detects format.
readRead source by symbol name or line range
get_hotspotsMost complex functions ranked by composite score
可对比工具
安装
使用 cargo 安装 indxr:
cargo install indxr --features wiki作为 MCP 服务器使用,运行:
indxr serve ./my-project --watch --wiki-auto-update对于 Claude Desktop,添加到 config.json:
{
"mcpServers": {
"indxr": {
"command": "indxr",
"args": ["serve", "/path/to/project", "--wiki-auto-update"]
}
}
}FAQ
- indxr 支持哪些编程语言?
- indxr 支持 27 种编程语言,其中 8 种使用 tree-sitter AST 解析,另外 19 种使用正则表达式提取。
- Wiki 系统如何工作?
- Wiki 为架构决策、模块职责和失败模式提供持久化存储。它会自动与代码更改保持同步,并可以被 AI 代理查询。
Hacker News 讨论
开发者社区最近的相关讨论。
- 帖子 by bahdotshxx · 2026-04-07
indxr 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。