1 v0.1.1 更新于 2026-10-25

repograph MCP Server

Local architecture maps and caller impact analysis with directory clustering and utility folding.

适用客户端

本地客户端
Claude Desktop、Claude Code、Cursor、Cline 等支持本地 MCP 的客户端

安装配置

本地运行(npm)
{
  "mcpServers": {
    "repograph": {
      "command": "npx",
      "args": [
        "-y",
        "repograph-cli"
      ]
    }
  }
}

将上方 JSON 加入 MCP 客户端配置(如 Claude Desktop 的 claude_desktop_config.json 或项目的 .mcp.json)即可接入;远程接入按客户端要求填写 URL 与鉴权头。

提供的工具 接入后 Agent 可调用这 3 个工具

scan_repository_graph
扫描仓库并返回完整的架构图 JSON(节点、边、嵌套簇、指标),用于分析结构和枢纽文件。
generate_architecture_html
生成交互式架构图的独立 HTML 文件并写入指定路径。
query_impact_path
查询修改某个文件后的直接和传递调用者、影响簇及爆炸半径。