codegraph-mcp
Supports CI PR review pipelines by generating code graph artifacts and enabling impact analysis to identify callers broken by changes.
Enables OpenAI Codex to perform PR review and impact analysis using the SQLite-backed code graph and as_of virtual views.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codegraph-mcpWho calls the processOrder function?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CodeGraph Engine
AI 原生代碼情報與極低 Token 消耗基礎設施專為 Claude Code、Cursor 等 AI Agent 與 GitHub Actions CI 設計的雙軌代碼圖譜與審查引擎。透過 SCIP/Tree-sitter 靜態結構圖譜與 SQLite FTS5,達成 Token 費用節省與幻覺減少的 PR 代碼審查與檢索引擎。
核心痛點與解法
AI Agent 於大型專案開發中的三大痛點
Context 昂貴且浪費: AI Agent 為了定位一個 Function,常被迫讀取數個極多行的檔案,一口氣吞掉大量的 Tokens。
Dense Vector 在代碼上的失效: 純文字相似度無法表達強型別語言的語法樹、抽象型別推導與函數呼叫鏈。
PR Review 盲點: CI 審查時僅看 git diff 視角狹隘,無法得知未修改檔案中,有哪些 Callers 被連帶破壞。
Related MCP server: Symbol Delta Ledger
CodeGraph Engine 的架構解答
本專案採用「CI 負責重型運算產出 Artifact,開發端 (Local MCP) 與 CI 共用」的雙軌模式。
flowchart LR
A[CI Workflow<br/>main merge] --> B[Index Engine<br/>SCIP / Tree-sitter]
B --> C[SQLite Graph Database<br/>symbols / relations / fts5 / vec]
C --> D[Local MCP<br/>Claude Code / Cursor]
C --> E[CI PR Reviewer Pipeline<br/>OpenAI Codex] 開發期 Local MCP
消費者:Claude Code、Cursor 等 AI Agent
特點:低延遲、針對單一 Task 的高精度檢索
目標:減少不必要的上下文讀取與 Token 開銷
自動化 CI PR Reviewer Pipeline
消費者:OpenAI Codex 等 AI Agent
策略:基於 as_of 虛擬視圖做審查與影響分析
目標:在 PR 中找出被連帶影響的呼叫者與依賴關係
工具鏈規格
codegraph-mcp 透過標準 MCP 提供以下高效率 Tool 呼叫:
導航類:
get_file_outline(path): 回傳指定檔案的結構骨架(類別、函數定義、簽名與行號),以約 3% 的 Token 成本取代讀取整個檔案。
resolve_symbol(query, hint_file?): 使用 SQLite FTS5 對 Symbol 進行全域模糊搜尋與消歧義,回傳不透明控點 Moniker。
read_symbol_body(moniker): 給定 Moniker 精確讀取該 Function/Class 的實作內容,避免讀入周邊無關代碼。
get_symbol_definition(moniker): 取得單一 Symbol 的完整型別簽名、定義位置與 Docstring。
圖查詢類:
get_callers(moniker, depth=1): 回傳全專案所有呼叫此 Symbol 的位置。
get_implementations(moniker): 解析 Interface $\to$ Concrete Class 的動態分派關係。
get_type_schema(moniker): 精確拉取 DTO / DB Model / Struct 的欄位型別與約束。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceSupercharges AI coding agents with a pre-indexed semantic code graph, enabling instant symbol relationships, impact analysis, and context retrieval across 20+ languages.Last updated77,80064,601MIT
- Alicense-qualityAmaintenanceEnables AI coding agents to efficiently query code context via a symbol graph, reducing token usage by up to 20x.Last updated1,228461Inno Setup
- Alicense-qualityCmaintenanceProvides semantic code search and code insights via a knowledge graph, enabling AI to understand, navigate, and modify complex projects with deep dependency and architecture analysis.Last updatedMIT
- Alicense-qualityBmaintenanceEnables LLM agents to efficiently understand and navigate a codebase by providing semantic search over symbols and a reference graph, replacing expensive grep/glob calls with structured tools like definition lookup, caller/callee queries, and change-impact analysis.Last updated1MIT
Related MCP Connectors
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chainchen1103/codegraph-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server