What it does
AST call graph and code map for AI coding agents: PHP, JS, TS, Vue, Rust, Swift, Python, Go.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 开发者工具
可搭配使用
教 AI 做这类工作的 Skill,可与本项一起使用
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
graphify
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
为什么排在这里
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 15/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 27/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 12 (只用于“上升中”标签)
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
双击文件,然后在电脑版 Claude 应用中点击 Install
试一试
用 callgraph 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 callgraph,或回答中出现 callgraph 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 callgraph
callgraph 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 callgraph 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Claude Code 暂时无法连接 callgraph
开发者只提供了电脑版 Claude 应用的安装文件
你可以改用这些方式
A · 使用能连接 callgraph 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
Cursor 暂时无法连接 callgraph
开发者只提供了电脑版 Claude 应用的安装文件
你可以改用这些方式
A · 使用能连接 callgraph 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
VS Code 暂时无法连接 callgraph
开发者只提供了电脑版 Claude 应用的安装文件
你可以改用这些方式
A · 使用能连接 callgraph 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 GeRiY 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于昨天
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/geriy-callgraph)讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 6136 个服务器的 92%
- 发布到注册中心的时间比此分类中其他 6136 个服务器的 98% 更新
- 基础检查结果等于或优于此分类中其他 6136 个服务器的 99%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
callgraph 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于昨天,最新版本(1.1.1)于昨天进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。
有什么可以替代它?
同一分类中有:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
功能相近的其他选择
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| 本项 callgraph | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 云端或安装在电脑上都可以 |
| 需要密钥 | 否 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 是 | 否 | 否 |
| 基础检查 | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| 许可证 | MIT | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
callgraph
A token-efficient code map for AI coding agents.
Structure, categorized call graph, method bodies, "who calls this?" and impact analysis — without reading whole files.
🌐 callgraph.eu
Guides: MCP setup · PHP · Rust · TypeScript / Vue · Swift · locate · Project profile · Changelog
Quick start · Installation · Usage · How it works · Development · Magyar
An agent that needs to understand one method usually reads the whole file, then greps, then reads a few more files. callgraph answers those questions from the AST instead, in a few dozen lines: what is in this file, which method lives on which lines, what it calls (sorted by category), who calls it, and what breaks if it changes.
It ships as a single native Rust binary plus a thin Claude Code skill, and it works just as well from any terminal or script.
$ callgraph.sh --project shop app/Models/Order.php
FILE /srv/shop/app/Models/Order.php NS:App\Models
class Order extends Illuminate\Database\Eloquent\Model L7-23 constants (1): STATUS_OPEN = 'open' properties (1): mixed $fillable saveTranslations() L13-20 external_call create, info global_helper logger internal_helper translations translations() L22-22 orm_relation hasMany
$ callgraph.sh --project shop app --grep saveTranslations --depth 2
== level 1 — directly calls: /saveTranslations/ /srv/shop/app/Models/Order.php Caller::run() L25-25
== level 2 — calls the previous level (no more callers)
Highlights
- Reads the AST, not the text. Classes / components, methods with exact line ranges, properties, constants, imports, docblocks, string literals and
if/match/switchbranches. - Categorized call graph. Every call is classified:
native_php,orm_relation,model_use,global_helper,internal_helper,external_call,framework_use, Vuecomposable_useand more, so the agent sees intent, not just names. Calls whose target is decided at runtime ($this->$method(),obj[key](),getattr(obj, name)()) are markeddynamic_callinstead of silently missing. - "Who calls this?" and impact analysis.
--grep --depth Nwalks callers of callers across the whole project using a cached, incremental project index. - Surgical reads.
file::method --bodyprints just that method, line-numbered;--lines 30-60prints any range. - Framework views. Laravel / Yii aware:
routes,middleware,validation,jobs,events,providers,magic,di,views. - Many output formats.
outline,api,flow,summary,hotspots,coverage,stats,mermaid,dot,json,jsonl. - Fast and dependency-free. One static binary (no PHP, Node or jq needed), parallel parsing, mtime-based JSONL cache.
- English or Hungarian output, switchable with one command.
Supported languages
Per-language guides with examples: PHP · Rust · TypeScript / JavaScript / Vue · Swift / SwiftUI.
| Language | Extensions | What you get |
|---|---|---|
| PHP | .php | classes, traits, enums, methods, properties, constants, calls with type tracking, framework detection (Laravel, Yii) |
| Rust | .rs | modules, structs, enums, traits, impl blocks, functions with visibility / async, fields, consts, use trees, path / method / macro calls, if / match flow, framework detection from Cargo.toml (axum, actix-web, tokio, serde, …) |
| JavaScript / TypeScript | .js .mjs .cjs .jsx .ts .tsx | modules, functions, classes, imports with alias resolution (jsconfig / tsconfig) |
| Vue | .vue | props, emits, setup, template components and event handlers, computed, watch, lifecycle hooks, Options API |
| Swift / SwiftUI | .swift | classes, structs, enums, protocols, actors, extensions; View types as components; func / init / computed properties (body); property wrappers (@State, @Binding, @Published, …); SwiftUI views and modifiers as their own call categories |
| Python | .py .pyi | classes (bases, decorators), functions / methods (async, @staticmethod, @classmethod, @property) with signatures, constants, __all__, docstrings, imports, calls (native_python, internal_helper, static_call, …), Django / Flask / FastAPI detection |
| Go | .go | packages, structs (fields as properties, embedded types), interfaces, type aliases, functions and methods with receivers and signatures (several return values, generics), const / var, imports (alias, blank, dot), calls (native_go, internal_helper, …), go / defer, exported (capitalised) = public; vendor / testdata skipped, _test.go ranked as tests |
| CSS / SCSS | .css .scss | rule blocks and at-rules (@media, @layer, Tailwind v4 @theme / @utility / @source …), mixins, functions, variables, @use / @import |
| JSON / Markdown | .json .md | key paths with their short values (package.json::scripts --body prints one key); heading sections by level, and links |
| HTML | .html .htm | and – heading sections by level; visible text and title / alt / placeholder / aria-label / value attributes for --strings ( / skipped); links |
Which files are processed
Only files with the extensions above, in upper or lower case (B.PHP counts as PHP); everything else is ignored. Also skipped, even with a supported extension: generated files (package-lock.json, *.min.js, *.min.css) and files with binary content. Minified or bundled JavaScript / CSS is recognised by its content too (very long lines, e.g. a Vite app-CBW7lKWe.js) and skipped. Each file is read once, even if a symlink points to it. Folders like vendor/ and node_modules/ are skipped, and so is everything your .gitignore files exclude, with the same rules as git: /public/build, public/build/, build/, **/assets, *.log, !keep.js, and the .gitignore of every subfolder relative to that folder.
To exclude more in a project, put a .callgraphignore file in its root (or in any subfolder). Commit it, and the whole team gets the same results. A line that is just an extension (md, .md or *.md) skips that extension (the nearest .callgraphignore applies, as before); any other line is a .gitignore-style path pattern, relative to the folder of the file:
# callgraph: skip these extensions in this project
md json *.vue
and these paths (same syntax as .gitignore)
public/build/ /storage/ legacy/**/*.php
A protect line (e.g. protect migrations/) is the opposite of an exclusion: the matching files stay in the map and fully queryable, but are marked 🔒 in the output (outline, --body, --lines, locate): protected, read them, don't edit them. Same pattern rules; a line that is just protect stays an extension rule.
To map files your .gitignore excludes, add --no-gitignore to any command (or set CALLGRAPH_GITIGNORE=0 for the MCP server and the hook); .callgraphignore and the built-in skipped folders still apply. Note: a bare word such as build in .callgraphignore is an extension rule; write build/ or /build for a folder.
When *not* to use it
- You need the exact text of a known line range: use
--linesor a targeted read. - Non-code files (plain text, data dumps): the outline adds little.
- Macro- or reflection-heavy code: dynamic calls that can't be resolved statically are marked
dynamic_callin the outline (PHP, JS / TS / Vue, Python), are not callers for--grep/--depth, and show up as name-only matches (?) with--guessonly where the name is known. - Files with a syntax error (mid-edit, merge conflict) are flagged with
⚠ syntax error at Land a closing⚠line: the code before and after the broken part is still mapped (JS / TS / Vue, Rust: from the next top-level function, class or item on), the broken part itself is missing — read such a file directly. The exit code stays 0; for CI, add--strict(or setCALLGRAPH_STRICT=1):show,locateandprofilethen exit with code 3 when a file they read has a syntax error, with the same output.
--signatures (or CALLGRAPH_SIGNATURES=1) prints the signature (params, return type) on the outline method lines.
Quick start
# 1. install (macOS / Linux, see below for Windows)
p="$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)" && t="$(mktemp -d)" \ && curl -fsSL -o "$t/cg.zip" "https://update.callgraph.eu/v1/download/latest/callgraph-$p.zip?k=install" \ && mkdir -p ~/.claude/skills && unzip -qo "$t/cg.zip" -d ~/.claude/skills \ && bash ~/.claude/skills/callgraph/install.sh && rm -rf "$t"
2. register a project once
bash ~/.claude/skills/callgraph/projects.sh add shop /absolute/path/to/shop
3. ask questions
CG=~/.claude/skills/callgraph/callgraph.sh bash $CG --project shop app/Models/Order.php # outline bash $CG --project shop app/Models/Order.php::save --body # one method's source bash $CG --project shop app --grep 'Order::cancel' --depth 3 # impact analysis
Restart Claude Code afterwards so it picks up the skill (SKILL.md).
Installation
Prebuilt packages (skill files + the binary for your platform + install guide) are attached to every GitHub Release:
| Platform | Package |
|---|---|
| macOS, Apple Silicon (M1–M4) | callgraph-darwin-arm64.zip |
| macOS, Intel | callgraph-darwin-x86_64.zip |
| Linux x86_64 (static musl) | callgraph-linux-x86_64.zip |
| Linux ARM64 (static musl) | callgraph-linux-aarch64.zip |
| Windows x86_64 (Git Bash) | [callgraph-windows-x86_64.zip](https://github.com/GeRiY/callgraph/releases