
sdsrss/code-graph-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
sdsrss/code-graph-mcp は [https://github.com/sdsrss/code-graph-mcp.] からインポートされた MCP サーバー候補です
概要
sdsrss/code-graph-mcp は [https://github.com/sdsrss/code-graph-mcp.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
モデルコンテキストプロトコル(MCP)を実装する高性能なコードナレッジグラフサーバ。 コードベースを構造化されたASTの知識グラフにインデックス化し、セマンティック検索、グラフトロール、HTTPルートトレーシングを呼び出します。AIコーディングアシスタントを深く、コードの理解を構造化できるように設計されています。
##特徴
- 複数の言語解析 — 深さの層を渡るツリーシッターAST抽出:
-フル(コール+インポート+継承):TypeScript/TSX、JavaScript、Go、Python、Rust、Java。 HTTP ルート抽出は、TypeScript/TSX + JavaScript (Express/Connect), Go ([[
net/http]), Python (Flask/FastAPI), Rust axum (.route()) インラインでチェーン [[.nest()]]]] 接頭辞; ハンドラ名だけ) — アクティックス/ロケットと Java Spring はまだルート抽出されていない -Smoke-tested(コール+インポート+継承):C#、Kotlin、Ruby、PHP、Swift、Dart -** (関数 + 呼び出し + [#include]) インポート + テストマーカー + C++ベースクラスの継承 + [Class::methodスコープの資格: C, C++ -Scripting: Bash(関数 + コマンド + [source]/[[.]])、Markdown(見出し) -File-FTSのみ(ASTシンボル抽出なし):HTML、CSS、JSON
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
code-graph-mcp
A high-performance code knowledge graph server implementing the Model Context Protocol (MCP). Indexes codebases into a structured AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing — designed to give AI coding assistants deep, structured understanding of your code.
Features
- Multi-language parsing — Tree-sitter AST extraction across tiers of depth:
- Full (calls + imports + inheritance): TypeScript/TSX, JavaScript, Go, Python, Rust, Java. HTTP route extraction additionally covers TypeScript/TSX + JavaScript (Express/Connect), Go (
net/http), Python (Flask/FastAPI), and Rust axum (.route()chains with inline.nest()prefixes; named handlers only) — actix/rocket and Java Spring are not yet route-extracted - Smoke-tested (calls + imports + inheritance): C#, Kotlin, Ruby, PHP, Swift, Dart
- Limited (functions + calls +
#includeimports + gtest test markers + C++ base-class inheritance +Class::methodscope qualification): C, C++ - Scripting: Bash (functions + commands +
source/.imports), Markdown (headings) - File-FTS only (no AST symbol extraction): HTML, CSS, JSON
- Test markers — detected from the AST for Rust (
#[test]/#[cfg(test)]), JavaScript/TypeScript/TSX (describe/it/testblocks and their callbacks) and C/C++ (gtestTESTmacros). Go, Python, Java and the rest fall back to path/name heuristics (tests/,src/test/java/,*_test.*,*.test.js,test_*,*Test) - Value/type references — a
referencesrelation for symbols that are used without being called, imported or inherited (path-qualified constants, type-position uses, functions passed as values): Rust, TypeScript/TSX, JavaScript, Python, Go, Java, C, C++
- Full (calls + imports + inheritance): TypeScript/TSX, JavaScript, Go, Python, Rust, Java. HTTP route extraction additionally covers TypeScript/TSX + JavaScript (Express/Connect), Go (
- Semantic code search — Hybrid BM25 full-text + vector semantic search with Reciprocal Rank Fusion (RRF), powered by sqlite-vec
- Call graph traversal — Recursive CTE queries to trace callers/callees with cycle detection
- HTTP route tracing — Map route paths to backend handler functions (Express, Flask/FastAPI, Go
net/http, Rust axum) - Dead code detection — Find unreferenced symbols with smart Orphan/Exported-Unused classification
- Impact analysis — Determine the blast radius of code changes by tracing all dependents
- Incremental indexing — Merkle tree change detection with a file system watcher; changed files are re-indexed when the next MCP query tool call arrives (
get_index_statusdoes not count). Smart event filtering skips metadata-only changes (chmod, xattr)
インストール
npx -y @sdsrs/code-graph設定
{
"mcpServers": {
"code-graph": {
"command": "npx",
"args": ["-y", "@sdsrs/code-graph"]
}
}
}