Skip to main content

Crate symgraph

Crate symgraph 

Source
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 context
  • symgraph_search - Find symbols by name
  • symgraph_callers - Find all callers of a symbol
  • symgraph_callees - Find all callees of a symbol
  • symgraph_impact - Analyze change impact
  • symgraph_node - Get detailed symbol information
  • symgraph_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§

IndexConfig
Configuration for indexing
IndexingStats
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.