Skip to main content

Module analyze

Module analyze 

Source
Expand description

Main analysis engine for extracting code structure from files and directories.

Implements the four MCP tools: analyze_directory (Overview), analyze_file (FileDetails), analyze_symbol (call graph), and analyze_module (lightweight index). Handles parallel processing and cancellation.

Structs§

AnalysisOutput
Result of directory analysis containing both formatted output and file data.
FileAnalysisOutput
Result of file-level semantic analysis.
FocusedAnalysisOutput
Result of focused symbol analysis.

Enums§

AnalyzeError

Functions§

analyze_directory
Analyze a directory structure and return formatted output and file data.
analyze_directory_with_progress
Analyze a directory structure with progress tracking.
analyze_file
Analyze a single file and return semantic analysis with formatted output.
analyze_focused
Analyze a symbol’s call graph with use_summary parameter (internal). Analyze a symbol’s call graph across a directory.
analyze_focused_with_progress
Analyze a symbol’s call graph across a directory with progress tracking.
analyze_module_file
Analyze a single file and return a minimal fixed schema (name, line count, language, functions, imports) for lightweight code understanding.
determine_mode
Determine analysis mode based on parameters and path.