MCP Catalogs
首页

indxr

by bahdotsh·64·综合分 46

一个为 AI 代理设计的快速代码库索引器和知识 Wiki,提供 26 个 MCP 工具进行代码分析。

developer-toolsai-llmknowledge-graph
7
Forks
1
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

Indxr 为 AI 代理提供全面的代码库理解解决方案,通过结构化索引和持久化知识 Wiki 来实现。它提供 26 个 MCP 工具用于符号查找、文件摘要、调用者跟踪和依赖分析,以及 9 个 Wiki 工具用于跟踪架构决策和失败模式。该服务器支持 27 种编程语言,具有自更新 Wiki、Git 结构化差异分析和复杂热点分析功能。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 代理分析大型代码库以理解架构和关系
:通过知识 Wiki 持续生成和维护文档
:代码质量监控和复杂热点识别
:indxr 支持哪些编程语言?
:Wiki 系统如何工作?

什么时候选它

当您需要具有持久知识捕获功能的全面代码理解工具,尤其是在难以保持最新文档的大型代码库中时,选择 indxr。

什么时候不要选它

如果您需要代码的写入权限(它是只读的),拥有非常简单的代码库不值得复杂索引,或更喜欢更集成的 IDE 解决方案,不要选择 indxr。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • wiki_generate

    Initialize a new wiki and return structural context for page planning

  • wiki_search

    Search wiki by keyword or concept; returns matching pages with excerpts

  • wiki_read

    Read a wiki page by ID; returns full content with metadata

  • wiki_status

    Check wiki health: page count, staleness, source file coverage

  • wiki_contribute

    Write knowledge back to the wiki (create or update pages)

  • wiki_update

    Analyze code changes and return affected pages with diff context

  • wiki_compound

    Auto-route synthesized knowledge to the best matching page

  • wiki_record_failure

    Record a failed fix attempt for future agents to learn from

  • find

    Find files/symbols by concept, name, callers, or signature pattern

  • summarize

    Understand files/symbols without reading source. Auto-detects format.

  • read

    Read source by symbol name or line range

  • get_hotspots

    Most complex functions ranked by composite score

可对比工具

code-scribecode-search-toolrepo-ai

安装

使用 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 讨论

开发者社区最近的相关讨论。

indxr 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。