Expand description
symgraph: Semantic code intelligence MCP server
A Rust-based MCP server that builds a knowledge graph of codebases to enhance AI-assisted code exploration. Uses tree-sitter for parsing and SQLite for storage.
§Features
- Multi-language support: Rust, TypeScript, JavaScript, Python, Go, Java, C, C++
- Symbol extraction: functions, classes, methods, interfaces, etc.
- Relationship tracking: calls, contains, imports, exports, etc.
- Impact analysis: trace the effect of changes through the codebase
- Task context: build focused context for AI exploration
§MCP Tools
symgraph_context- Build task-specific code contextsymgraph_search- Find symbols by namesymgraph_callers- Find all callers of a symbolsymgraph_callees- Find all callees of a symbolsymgraph_impact- Analyze change impactsymgraph_node- Get detailed symbol informationsymgraph_status- Get index statistics
Modules§
- cli
- CLI command implementations
- context
- Context builder for AI tasks
- coupling
- Coupling analysis.
- db
- Database module for symgraph
- extraction
- Code extraction module
- graph
- Graph traversal and query operations
- mcp
- MCP (Model Context Protocol) server implementation
- ops
- Tool operations: gather typed, serializable results and render them as markdown or JSON.
- security
- Security helpers for MCP handlers.
- types
- Core type definitions for symgraph
Structs§
- Index
Config - Configuration for indexing
- Indexing
Stats - Statistics from an indexing operation
Functions§
- build_
full_ index - Build a complete index into an empty target database.
- index_
codebase - Incrementally index only changed files into an existing database.