Token导航 LogoToken导航

MCP Server · 开发工具

codemap (Grahambrooks)

语义代码智能MCP服务器,通过构建代码库的知识图谱来增强AI辅助的代码探索。

未说明官方级别未说明来源级核验工具 16
代码分析RustClaude知识图谱Claude Desktop

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
grahambrooks
提供方
grahambrooks

工具数量

16

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

8

仓库热度

收录来源

1 个

MCP World

选型结论

codemap (Grahambrooks) 属于开发工具类 MCP Server,公开资料标注 16 个工具,通过传输方式未标注接入,适配 Claude Desktop、Claude,没有现成的安装命令;接入前先确认权限范围。

分类

开发工具

传输方式

未说明

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 16 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

公开资料仍需确认:安装命令

详细介绍

符号图

语义代码智能MCP服务器-构建代码库的知识图,以增强人工智能辅助的代码探索。

symgraph是一个rust实现https://github.com/colbymchenry/codegraph.为什么?正在对汇编进行探索 MCP服务器的二进制部署。

特性

  • 多语言支持:Rust、TypeScript、JavaScript、Python、Go、Java、C、C++
  • 符号提取:函数、类、方法、结构、接口、特征、枚举、常量
  • 关系跟踪:调用、包含、导入、导出、扩展、实现
  • 影响分析:通过代码库跟踪更改的影响
  • 高级代码智能:

- 查找函数之间的调用路径 - 检测未使用/死代码 - 探索类层次结构 - 查找所有接口实现 - 按线范围分析变更影响

  • 增量索引:仅使用内容哈希重新索引更改的文件
  • 双重运输:stdio(默认)和HTTP服务器模式

安装

macOS和Linux

curl -fsSL https://raw.githubusercontent.com/grahambrooks/symgraph/main/install.sh | bash

要将符号图配置为Claude Code和Claude Desktop的MCP服务器,请执行以下操作:

curl -fsSL https://raw.githubusercontent.com/grahambrooks/symgraph/main/install.sh | bash -s -- --mcp

安装特定版本:

SYMGRAPH_VERSION=2026.3.30 curl -fsSL https://raw.githubusercontent.com/grahambrooks/symgraph/main/install.sh | bash

Windows(PowerShell)

irm https://raw.githubusercontent.com/grahambrooks/symgraph/main/install.ps1 -OutFile install.ps1; .\install.ps1

要将符号图配置为Claude Code和Claude Desktop的MCP服务器,请执行以下操作:

irm https://raw.githubusercontent.com/grahambrooks/symgraph/main/install.ps1 -OutFile install.ps1; .\install.ps1 -Mcp

安装特定版本:

$env:SYMGRAPH_VERSION="2026.3.30"; irm https://raw.githubusercontent.com/grahambrooks/symgraph/main/install.ps1 -OutFile install.ps1; .\install.ps1

这两个脚本都安装到 ~/.symgraph/bin/ 默认情况下。覆盖 SYMGRAPH_INSTALL_DIR.

克劳德桌面(MCPB捆绑包)

下载并安装适用于您平台的MCPB捆绑包:

  1. 下载 .mcpb 从以下位置为您的平台创建文件 发布
  2. 打开克劳德桌面
  3. 拖放 .mcpb 文件到克劳德桌面,或使用 文件>安装MCP服务器
  4. 在系统提示时配置项目根目录

来源

git clone https://github.com/grahambrooks/symgraph
cd symgraph
make install

用法

为代码库建立索引

# Index current directory
symgraph index

# Index specific directory
symgraph index ~/projects/myapp

启动MCP服务器

# Start with stdio transport (for Claude Desktop)
symgraph serve

# Start with HTTP transport
symgraph serve --port 8080

CLI命令

symgraph index [path]           # Index a codebase
symgraph serve                  # Start MCP server (stdio)
symgraph serve --port 
    # Start MCP server (HTTP)
symgraph status [path]          # Show index statistics
symgraph search          # Search for symbols
symgraph context          # Build context for a task

MCP工具

核心工具

工具说明
symgraph-context为特定任务构建专注的代码上下文
symgraph-search按名称快速搜索符号
symgraph-callers查找某个符号的所有调用者
symgraph-callees查找某个符号的所有被叫用户
symgraph-impact分析变化的影响半径
symgraph-node获取详细的符号信息
symgraph-definition获取带有上下文的符号的完整源代码
symgraph-file列出特定文件中定义的所有符号
symgraph-references查找对某个符号的所有引用
symgraph-reindex触发已更改文件的增量重新索引
symgraph-status获取索引统计信息

高级工具

工具说明
symgraph-hierarchy获取类/模块层次结构(父/子关系)
symgraph-path查找两个符号之间的呼叫路径
symgraph-unused查找没有传入引用的未使用/死代码
symgraph-implementations查找接口/特性的所有实现
symgraph-diff-impact分析更改特定代码区域的影响

示例用例

查找需要清理的死代码:

Use symgraph-unused to find all unused functions and classes

了解函数调用链:

Use symgraph-path with from="main" and to="database_query" to see how data flows

评估变更影响:

Use symgraph-diff-impact with file_path="src/auth.rs" start_line=45 end_line=60
to see what would be affected by changes in that region

探索OOP层次结构:

Use symgraph-hierarchy with symbol="BaseHandler" to see all parent/child relationships

查找所有trait实现:

Use symgraph-implementations with symbol="Iterator" to find all structs implementing Iterator

项目设置

分两步将符号图添加到项目中:为代码建立索引,然后配置AI工具。

第一步:为你的项目建立索引

cd /path/to/your/project
symgraph index

这创建了一个 .symgraph/ 包含SQLite知识图的目录。添加 .symgraph/ 到你的 .gitignore.

重新运行 symgraph index 在重大代码更改后,或使用 symgraph-reindex MCP工具,用于从您的AI工具中增量更新。

第二步:配置你的AI工具

克劳德代码

将符号图注册为您项目的MCP服务器:

cd /path/to/your/project
claude mcp add symgraph -- symgraph serve

或添加 .mcp.json 到您的项目根目录:

{
  "mcpServers": {
    "symgraph": {
      "type": "stdio",
      "command": "symgraph",
      "args": ["serve"]
    }
  }
}

可选:添加 /explore-code 技能 对于引导式代码探索:

mkdir -p .claude/skills
cp -r /path/to/symgraph/.claude/skills/explore-code .claude/skills/

然后在Claude Code中使用它:

/explore-code how does the authentication middleware work?
/explore-code what would break if I changed the User struct?
克劳德桌面版

通过MCPB束(最简单):

  1. 下载 .mcpb 从以下位置为您的平台创建文件 发布
  2. 拖放到Claude Desktop上,或使用 文件>安装MCP服务器
  3. 在系统提示时设置项目根目录

通过手动配置 --添加到 claude_desktop_config.json:

{
  "mcpServers": {
    "symgraph": {
      "command": "symgraph",
      "args": ["serve"],
      "env": {
        "SYMGRAPH_ROOT": "/path/to/your/project"
      }
    }
  }
}
GitHub Copilot

每个存储库 --添加 .copilot/mcp.json 对于您的项目:

{
  "mcpServers": {
    "symgraph": {
      "command": "symgraph",
      "args": ["serve"]
    }
  }
}

VS代码用户设置 --添加到 settings.json:

{
  "github.copilot.chat.mcp.servers": {
    "symgraph": {
      "command": "symgraph",
      "args": ["serve"],
      "env": {
        "SYMGRAPH_ROOT": "${workspaceFolder}"
      }
    }
  }
}

看 了解更多详情。

OpenAI Codex
codex mcp add symgraph --command "symgraph" --args "serve"

或添加到 ~/.codex/config.toml:

[mcp_servers.symgraph]
command = "symgraph"
args = ["serve"]

看 OpenAI Codex MCP文档 了解更多详情。

HTTP模式(任何MCP客户端)

对于共享或远程设置,请将sympgraph作为HTTP服务器运行:

symgraph serve --port 8080

然后将您的MCP客户端指向 http://localhost:8080/mcp.

环境变量

变量描述默认值
SYMGRAPH_ROOT项目根目录当前目录

建筑

symgraph/
├── src/
│   ├── main.rs          # CLI entry point
│   ├── lib.rs           # Core indexing logic
│   ├── types.rs         # Type definitions (Node, Edge, etc.)
│   ├── db/              # SQLite database operations
│   ├── extraction/      # Tree-sitter code extraction
│   ├── graph/           # Graph traversal algorithms
│   ├── context/         # Context building for AI tasks
│   └── mcp/             # MCP protocol handlers
└── .symgraph/
    └── index.db         # SQLite database (per-project)

核心概念

  • 节点:代码符号(函数、类、方法等)
  • 边缘:节点之间的关系(调用、包含、导入等)
  • 知识图谱:代码库的完整节点和边集

发展

先决条件

  • 锈蚀1.70+
  • SQLite(通过rusqlite捆绑)

建筑

make build           # Release build
make test            # Run tests
make check           # Format, lint, and test
make install         # Build and install to /usr/local/bin

项目结构

模块说明
types核心类型定义(NodeKind、EdgeKind、语言等)
dbSQLite数据库模式和操作
extraction基于树的代码解析和符号提取
graph图形算法(呼叫者、被呼叫者、影响分析)
context用于AI任务辅助的上下文构建器
mcpMCP协议服务器实现

许可证

麻省理工学院

工具与能力

工具数量

16

资源数量

0

提示词数量

0

能力标签

代码分析Rust本地部署知识图谱AI辅助编程多语言支持增量索引

支持客户端

Claude DesktopClaude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 工具数量 16 个,一次接入能覆盖的操作比单点工具更全。
  • 已经适配 Claude Desktop、Claude,换客户端不用重新研究配置。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
codemap (Grahambrooks)

MCP World · 本页

16未说明未标注1 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

codemap (Grahambrooks) 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

codemap (Grahambrooks) 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

codemap (Grahambrooks) 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

codemap (Grahambrooks) 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

codemap (Grahambrooks) 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP