Expand description
Rust MCP server for code structure analysis using tree-sitter.
This crate exposes four MCP tools for multiple programming languages:
analyze_directory: Directory tree with file counts and structureanalyze_file: Semantic extraction (functions, classes, imports, references)analyze_symbol: Call graph analysis (callers and callees)analyze_module: Lightweight function and import index
Key entry points:
analyze::analyze_directory: Analyze entire directory treeanalyze::analyze_file: Analyze single file- [
parser::ElementExtractor]: Parse language-specific elements
Languages supported: Rust, Go, Java, Python, TypeScript, TSX, Fortran.
Modules§
- logging
- MCP logging integration via tracing.
- metrics
- Metrics collection and daily-rotating JSONL emission.
Structs§
- Code
Analyzer - MCP server handler that wires the four analysis tools to the rmcp transport.
Functions§
- summary_
cursor_ conflict - Returns
truewhensummary=trueand acursorare both provided, which is an invalid combination since summary mode and pagination are mutually exclusive.