TypeScript/JavaScript 저장소를 심볼, 호출자(caller), 피호출자(callee)의 검색 가능한 그래프로 인덱싱하여 코딩 에이전트에게 구조적 메모리를 제공합니다.
다른 이름 graphpilot-oss/graphpilot, @graphpilot-oss/graphpilot
- 스타
- 17
- Tools
- —
- 다운로드, 30일
- 174
- 최신 버전
- 1.0.1
- 마지막 커밋
- 2026년 9월 10일
- 라이선스
- Apache-2.0
GraphPilot MCP란?
GraphPilot은(는) MCP server입니다. TypeScript/JavaScript 저장소를 심볼, 호출자(caller), 피호출자(callee)의 검색 가능한 그래프로 인덱싱하여 코딩 에이전트에게 구조적 메모리를 제공합니다.
프로젝트 README에서 생성된 요약
GraphPilot MCP server 정보
GraphPilot은 TypeScript 및 JavaScript 저장소를 검색 가능한 그래프로 인덱싱하여 코딩 에이전트에게 구조적 메모리를 제공합니다. 심볼, 호출자, 피호출자를 매핑하여 AI 모델이 반복적인 파일 검색 없이도 코드 관계를 이해할 수 있도록 돕습니다. 이 시스템은 로컬 우선 아키텍처를 통해 전체 프로세스가 사용자의 로컬 머신에서 실행되므로 개인정보 보호와 속도를 보장합니다.
사용자는 CLI를 사용하여 인덱스를 구축하고 유지 관리하며, Claude Code, Cursor, Cline, Windsurf, Continue와 같은 코딩 에이전트는 MCP server를 통해 연결됩니다. 설정에는 Node.js 버전 20 이상이 필요합니다. 구성이 완료되면 에이전트는 방대한 양의 원시 텍스트를 읽는 대신 특정 도구를 사용하여 그래프를 쿼리합니다. 이 방식은 토큰 소비를 크게 줄이고 복잡한 리팩터링 작업 중 발생할 수 있는 환각 현상을 방지하는 데 도움이 됩니다. 서버는 브랜치와 워크트리를 인식하도록 설계되어 현재 git 상태에 따른 컨텍스트별 정보를 제공합니다.
활용 사례
- 1함수 정의 위치 찾기에이전트가 대규모 코드베이스 내에서 특정 심볼이 정의된 정확한 위치를 찾을 수 있습니다.
- 2리팩터링 영향 분석개발자가 AI에게 변경 사항의 영향 범위(blast radius)를 확인하여 무엇이 깨질 수 있는지 판단하도록 요청할 수 있습니다.
- 3함수 호출 체인 추적에이전트가 코드 흐름을 이해하기 위해 특정 심볼의 모든 호출자 또는 피호출자를 식별할 수 있습니다.
- 4브랜치 단위 분석 수행영향 분석 범위를 특정 브랜치나 커밋에서 수정된 파일로만 제한할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
GraphPilot MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 GraphPilot MCP 설치
$ claude mcp add graphpilot -- npx -y @graphpilot-oss/graphpilotCursor에 GraphPilot MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"graphpilot": {
"command": "npx",
"args": [
"-y",
"@graphpilot-oss/graphpilot"
]
}
}
}VS Code에 GraphPilot MCP 설치
.vscode/mcp.json
{
"servers": {
"graphpilot": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@graphpilot-oss/graphpilot"
]
}
}
}VS Code CLI에 GraphPilot MCP 설치
$ code --add-mcp '{"name":"graphpilot","type":"stdio","command":"npx","args":["-y","@graphpilot-oss/graphpilot"]}'Claude Desktop에 GraphPilot MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"graphpilot": {
"command": "npx",
"args": [
"-y",
"@graphpilot-oss/graphpilot"
]
}
}
}Codex에 GraphPilot MCP 설치
$ codex mcp add graphpilot -- npx -y @graphpilot-oss/graphpilotCodex config.toml에 GraphPilot MCP 설치
~/.codex/config.toml
[mcp_servers.graphpilot] command = "npx" args = ["-y", "@graphpilot-oss/graphpilot"]
Gemini CLI에 GraphPilot MCP 설치
$ gemini mcp add -s user graphpilot npx -- -y @graphpilot-oss/graphpilotGemini settings.json에 GraphPilot MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"graphpilot": {
"command": "npx",
"args": [
"-y",
"@graphpilot-oss/graphpilot"
]
}
}
}구성
GRAPHPILOT_ROOTAbsolute path to the repository GraphPilot should index and serve. Optional — falls back to the MCP client's workspace root or a parent-directory walk.
| 이름 | 설명 | 유형 |
|---|---|---|
| GRAPHPILOT_ROOT | Absolute path to the repository GraphPilot should index and serve. Optional — falls back to the MCP client's workspace root or a parent-directory walk. |
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능graphpilot-oss/graphpilot is public and reachablegithub.com/graphpilot-oss/graphpilot ↗통과
- 패키지가 이 저장소를 소스로 명시@graphpilot-oss/graphpilot names graphpilot-oss/graphpilot as sourcenpmjs.com/package/@graphpilot-oss/graphpilot ↗통과
- 빌드 출처(Sigstore 증명)Sigstore attestation for @graphpilot-oss/graphpilotnpmjs.com/package/@graphpilot-oss/graphpilot/v/1.0.1#provena ↗통과
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-09-10github.com/graphpilot-oss/graphpilot ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from @graphpilot-oss/graphpilot통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음154 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기What it is
GraphPilot is a local CLI + MCP server that indexes your TypeScript/JavaScript repo into a structural graph (symbols, callers, callees, blast radius) and exposes it to coding agents — Claude Code, Cursor, Cline, Windsurf, Continue — so they stop re-grepping the same files every conversation.
The problem it solves: agents burn tokens, hallucinate function names, and miss structural relationships ("what calls this?", "what breaks if I rename it?") because each session starts from zero. GraphPilot is the persistent structural memory in between.
Token cost drops. Hallucinations drop. Refactors get safer.
Put a real coding agent (claude-sonnet-4-5) on 40 structural questions about fastify — a ~300-file Node.js framework — and give it nothing but file reads. Then hand it GraphPilot's four tools and ask the same 40. The agent with GraphPilot uses 61 % fewer tokens, costs $3.68 instead of $8.88 — $5.20 saved per session — and gets more of them right, not fewer (37 correct vs 33). Same model, same questions, same repo; the only change is whether the structural index is there. Reproduce it →
A separate correctness benchmark backs the savings with precision: on 10 standardized structural queries GraphPilot scores F1 0.89 vs grep's 0.42 while reading 99.9 % fewer bytes (721 B vs 528 KB), and the byte-cost win holds at scale — indexing microsoft/TypeScript (601 files, 17 k symbols, 70 k call edges in 10 s) gives sub-millisecond queries and a 99.99 % bytes-read reduction. Full methodology →
One binary, two modes
GraphPilot ships as a single npm package (@graphpilot-oss/graphpilot) with two runtime modes — most users run both.
| Mode | Command | What it does |
|---|---|---|
| CLI | graphpilot index <path> |
Walks your repo, builds the structural graph, writes it to ~/.graphpilot/ |
graphpilot watch <path> |
Keeps the graph fresh (~10 ms per file save) | |
graphpilot status <path> |
Health probe — when the graph was last refreshed, file/symbol/edge counts | |
| MCP server | graphpilot mcp |
Speaks MCP over stdio — your coding agent calls into this to query the graph |
The flow: the CLI builds the index once (and watch keeps it warm). The MCP server is what your coding agent talks to — you never invoke it yourself, you just point your agent's MCP config at graphpilot mcp once and the agent spawns it on every session.
If you only want CLI access to your code graph (no agent), run graphpilot index and then graphpilot stats / inspect graph.json directly. If you only want the agent integration, you still need to run graphpilot index once — the MCP server is read-only against the on-disk graph.
What makes it different
Other code-graph tools treat your repo as a static blob: index once, query forever, no branch awareness, no proof of where an answer came from. GraphPilot is built around three properties none of them ship:
- 🔍 Evidence anchors. Every tool response carries
file:line @ shaon every symbol and call site. The agent can quote the anchor verbatim and you can verify it instantly — hallucinations get exposed the moment you jump to the line. - 🌿 Differential impact. Pass
since: <commit|branch>togp_impactand the result is filtered to files your branch actually touches. PR-scoped refactor analysis in one call instead ofgit diff | xargs grep. - 🪵 Worktree-aware by default. Two
git worktree add-ed branches naturally produce two separate indexes — no manual config. Rungraphpilot index ./src/featurefrom a subdir and it transparently re-roots to the worktree top. Opt out with--no-worktree.
Add to that: local-first (no telemetry, no remote calls, enforced by an ESLint policy on src/ itself), deterministic (same repo → same graph), sub-second incremental updates via watch mode.
Quickstart
Prerequisites
- Node.js ≥ 20 (
node --versionto check) - An MCP-capable coding agent (Claude Code, Cursor, Cline, Windsurf, or Continue)
- A TypeScript or JavaScript repo to index
End-to-end time: ~3 minutes.
1. Install the CLI
npm install -g @graphpilot-oss/graphpilot
# or: pnpm add -g @graphpilot-oss/graphpilot
# or one-shot, no install: npx @graphpilot-oss/graphpilot <command>
Verify it landed on your PATH:
graphpilot --version
# → 0.1.0
If you see command not found: graphpilot, your global npm bin is not on PATH. Run npm config get prefix and add <prefix>/bin to your shell's PATH, or use the npx form above.
2. Build the structural index for your repo
Run this once per project. It walks your source tree, parses each TS/JS file with tree-sitter, extracts symbols + call edges, and writes the graph to ~/.graphpilot/<repo-id>/graph.json.
graphpilot index ~/code/my-app
Expect a one-line summary like indexed 412 files · 3,981 symbols · 7,204 edges · 1.8s.
3. Wire it into your coding agent
GraphPilot speaks MCP over stdio. Add this server entry to your agent's MCP config — every supported client uses the same two-line shape:
{
"mcpServers": {
"graphpilot": {
"command": "graphpilot",
"args": ["mcp"]
}
}
}
Where this file lives depends on the client (~/.cursor/mcp.json, ~/.claude.json, Cline's settings panel, etc.). Pre-made configs with the exact file path for each agent are in examples/ — copy the one for your client.
Restart the agent. It now has four new tools: gp_recall, gp_callers, gp_impact, gp_index — see The four tools below for what each one does and when the agent should reach for it.
4. Try it
Ask your agent a structural question instead of letting it grep:
"Use gp_impact to show me everything that breaks if I rename
parseToken."
You should see a response with file:line @ sha anchors you can click straight to. If the agent doesn't reach for the tool, prompt explicitly: "use the gp_ MCP tools." If it can't see them at all, the MCP config wasn't picked up — run graphpilot doctor to pinpoint why (or see docs/troubleshooting.md), then restart the agent.
5. Keep the index fresh as you edit (optional but recommended)
graphpilot watch ~/code/my-app
Sub-10 ms incremental updates on each file save. Leave it running in a terminal tab.
6. Drop per-editor routing rules into your repo (optional)
graphpilot init
Auto-detects which editors you have installed (Cursor, Claude Code, Cline, Windsurf, Continue) and writes the matching rules file (.cursorrules, CLAUDE.md, etc.) to the current directory. The rules teach the agent to reach for gp_* tools before grep.
graphpilot init --all # write rules for every supported editor
graphpilot init --client cursor # one editor only
graphpilot init --dry-run # preview without writing
Full 5-minute walkthrough with screenshots: docs/quickstart.md.
The four tools
GraphPilot exposes four MCP tools. Each one answers a structural question your agent would otherwise solve by grepping and reading files.
gp_recall — find a symbol by name
Use this when the agent asks "where is X defined?" or needs to locate a function before reasoning about it.
- Input:
{ query, limit?, substring?, path? } - Returns: symbols matching the name (exact case-insensitive by default;
substring: truefor partial matches), each withfile:line @ sha. - Replaces:
grep -rn "function X"plus reading each hit to find the real definition.
Agent: gp_recall({ query: "parseToken" })
→ parseToken (function) — src/auth.ts:42 @ a1b2c3d
export function parseToken(raw: string): Token | null
gp_callers — list callers (or callees)
Use this when the agent needs to know "who calls X?" or "what does X call?" — the two fundamental questions of refactoring.
- Input:
{ symbol, direction?: 'callers' | 'callees', limit?, includeUnresolved?, path? } - Returns: every call edge where the symbol is target (callers) or source (callees), with anchors.
- Replaces:
grep -rn "X("followed by manual filtering of comments, strings, and renamed shadows.
Agent: gp_callers({ symbol: "authenticate", direction: "callers" })
→ login → authenticate — src/routes/login.ts:18 @ a1b2c3d
→ refreshSession → authenticate — src/session.ts:64 @ a1b2c3d
gp_impact — blast radius in one call
Use this when the agent asks "what breaks if I rename X?" or "what depends on this?" — the single most expensive question an agent normally solves.
- Input:
{ symbol, depth? (1–5, default 3), since?, path? } - Returns: direct callers, transitive callers grouped by BFS depth, tests likely affected, public-API flag, summary stats.
- Killer feature: pass
since: 'main'and the result is scoped to files your branch actually touches — PR-scoped refactor review withoutgit diffgymnastics.
Agent: gp_impact({ symbol: "extractSymbols", depth: 2, since: "main" })
→ Direct callers (2): indexDirectory, applyUpdate
→ Depth-2 callers (1): cmdIndex
→ Tests affected (3): tests/indexer.test.ts, tests/symbols.test.ts, tests/cli.test.ts
→ Public API: no
gp_index — refresh from inside the agent
Use this after the agent (or the user) has made a batch of structural edits and wants the graph to reflect them without dropping to a shell.
- Input:
{ path? } - Returns: re-indexes the repo and invalidates the per-path query cache.
- Pairs with:
graphpilot watchfor sub-10 ms incremental updates between explicit re-indexes.
How it works
Data flow is one-way: source → tree → symbols + edges → JSON → query → agent. GraphPilot never modifies your code.
Full pipeline writeup with file references: docs/architecture.md.
When to use which tool
| If the agent is about to… | Reach for… | Why |
|---|---|---|
grep for a function by name |
gp_recall |
One call, no false positives from comments or strings |
| Read 20 files looking for "who calls X" | gp_callers |
Pre-computed reverse index, sub-millisecond |
| Plan a rename or signature change | gp_impact |
Direct + transitive + tests + public-API in one call |
| Review a PR's structural blast radius | gp_impact({ since: 'main' }) |
Differential — only callers your branch touches |
| Re-grep after editing several files | gp_index |
Incremental: lets the next call see your edits |
For string literals, error messages, config values, or anything in a language other than TS/JS: stay with grep. GraphPilot indexes code structure, not text.
Editor setup
GraphPilot speaks MCP over stdio, so it works with any MCP-capable client. Ready-to-paste configs live in examples/:
| Client | Folder |
|---|---|
| Claude Code (Anthropic) | examples/claude-code/ |
| Cursor | examples/cursor/ |
| Cline (VS Code extension) | examples/cline/ |
| Windsurf (Codeium) | examples/windsurf/ |
| Continue.dev | examples/continue/ |
| Any other MCP client | See docs/mcp-setup.md |
Each folder contains: a README.md walkthrough, a sample config file with the exact JSON to paste, and (where the client supports it) a routing template so the agent automatically reaches for GraphPilot on structural questions.
Privacy & security
GraphPilot is local-first by promise and by build gate.
- No telemetry, no remote calls, ever. Verifiable:
src/has zerohttp,fetch,axios, or analytics imports — enforced by an ESLint rule plus a meta-test that proves the rule fires on every banned import. - No
child_process, noexec, nospawn. Git facts are read directly from.git/via pure-JS helpers. - Source code never leaves your machine. Only structural metadata (names, locations, signatures, call relationships) lives in
~/.graphpilot/. - Signatures are redacted for common secret patterns (OpenAI/Anthropic
sk-, GitHubghp_/ghs_, AWSAKIA, JWTs, PEM headers, Slack/Stripe tokens) before they're written to disk. - Strict file permissions: dir
0o700, files0o600. - Schema validation on load: tampered or corrupt
graph.jsonfalls back to "no index" rather than poisoning the agent. - Hand-rolled input validators on every MCP tool — unknown fields are rejected, every field type-checked, numbers range-checked, strings length-capped.
Threat model and per-defence test references live in docs/architecture.md. Report security issues per SECURITY.md.
Limitations
GraphPilot v0.1 makes deliberate trade-offs to ship small and sharp:
- TS/JS only. Python, Rust, Go, Java are out of scope for v1. Python is demand-gated for v0.2 / v0.3.
- Name-based resolver (no import-path tracking, no type-based method dispatch). Expected resolution rate: ~25–35 % of edges resolve to in-repo symbols; the rest are stdlib / third-party. That's enough because the questions agents actually ask ("who calls X in my repo?") are the ones the dumb resolver answers correctly.
- No semantic search.
gp_recallis name-only. "Find code similar to this snippet" is deferred until 30+ users ask for it. - No
.graphpilotignoreyet (defaults skipnode_modules,dist,build,.git,coverage,.next,.nuxt,.cache,out,*.d.ts). - Single repo per query. Workspace abstraction is on the v1.x roadmap.
Full list with mitigations: docs/limitations.md.
FAQ
Does it send my code anywhere?
No. There is no network code in src/, no telemetry, no update check. An ESLint rule blocks adding any of those at the build gate.
Will it slow down my editor? The MCP server is idle until your agent calls a tool. Tool calls are sub-millisecond after the first lazy load. Watch mode adds ~3–10 ms per file save.
What happens to the graph when I switch branches?
If you use git worktree, you automatically get a separate graph per worktree. On a single working copy that you switch with git checkout, the graph reflects the last gp_index (or watch-mode updates). Run gp_index after a branch switch to refresh.
Do I need to re-index every session?
No. The graph persists at ~/.graphpilot/<repo-id>/graph.json. Re-index after sweeping changes; otherwise, watch mode keeps it fresh incrementally.
Why TypeScript/JavaScript first? That's where the maintainer's pain was, and tree-sitter-typescript covers TS, TSX, JSX, and JS in a single grammar. Python is the next likely addition; vote with a GitHub Discussion.
How does this compare to LSP? LSPs are scoped to one editor and one buffer at a time, and they re-compute on each query. GraphPilot is editor-agnostic, persists across sessions, and answers structural questions (who-calls, blast-radius) that LSPs don't expose uniformly.
The agent can't see the tools / something's not working.
Run graphpilot doctor — it checks Node, PATH, the index, the MCP handshake, and per-client config in one shot. Symptom-by-symptom fixes live in docs/troubleshooting.md.
Documentation
docs/quickstart.md— 5-minute walkthroughdocs/mcp-setup.md— per-client config referencedocs/troubleshooting.md— symptom-indexed fixes (start withgraphpilot doctor)docs/architecture.md— pipeline writeup with file refsdocs/limitations.md— v1 caveats (read this)bench/README.md— benchmark methodology + resultsexamples/— ready-to-paste configs for every supported client
Contributing
GraphPilot is small, opinionated, and accepting contributions. Start with CONTRIBUTING.md — especially the "What we are NOT doing in v1" section before you propose a feature.
Found a security issue? Please follow SECURITY.md instead of opening a public issue.
License
Apache-2.0. Copyright 2026 Akshay Sharma — codewithakki@gmail.com
GraphPilot MCP 질문
GraphPilot MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add graphpilot -- npx -y @graphpilot-oss/graphpilot를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
GraphPilot MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
GraphPilot이 코딩 에이전트에게 어떤 역할을 하나요?
심볼, 호출자, 피호출자 및 영향 범위(blast radius)를 인덱싱하는 지속적인 구조적 메모리를 제공하여, 에이전트가 매 세션마다 파일을 다시 grep할 필요가 없도록 합니다.
기존 git 워크플로우와 함께 사용할 수 있나요?
네, 브랜치와 워크트리를 인식하므로 영향 분석 도구에 커밋이나 브랜치를 전달하여 PR 단위의 리팩터링 분석을 수행할 수 있습니다.
제 코드 데이터가 원격 서버로 전송되나요?
아니요, GraphPilot은 로컬 우선(local-first) 방식으로 설계되어 텔레메트리나 원격 호출을 수행하지 않습니다.