
sdsrss/code-graph-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
sdsrss/code-graph-mcp는 MCP 서버 후보가 https://github.com/sdsrss/code-graph-mcp.에서 수입되었습니다
개요
sdsrss/code-graph-mcp는 MCP 서버 후보가 https://github.com/sdsrss/code-graph-mcp.에서 수입되었습니다
개요(AI 번역)
Model Context Protocol (MCP)을 구현하는 고성능 코드 지식 그래프 서버. Indexes codebases as a Structured AST Knowledge graph with semantic search, call graph traversal, and HTTP route tracing - AI 코딩 조수를 깊은, 당신의 코드의 구조 이해를 제공하도록 설계.
특징
- **멀티 언어 파싱 ** - 깊이의 층을 가로지르는 트리 시터 AST 추출:
-Full (통화 + 수입 + 상속): TypeScript/TSX, JavaScript, Go, Python, Rust, Java. HTTP 경로 추출은 TypeScript/TSX + JavaScript (Express/Connect), Go (
net/http]), Python (Flask/FastAPI), Rust axum (.route()인라인으로 체인 [[T2] 접두사; 핸들러만 이름) - actix/rocket 및 Java Spring은 아직 배포되지 않습니다. - Smoke-tested (위 + 수입 + 상속): C#, Kotlin, Ruby, PHP, Swift, Dart
- ** 제한 ** (기능 + 통화 +
#include] + 테스트 마커 + C++ 기본 클래스 상속 +Class::method범위 자격) : C, C++ -Scripting: Bash (functions + commands +source/.imports), Markdown (headings) - **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"]
}
}
}