Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_HOST | No | PostgreSQL database host | localhost |
| DB_NAME | No | PostgreSQL database name | code_as_data |
| DB_PORT | No | PostgreSQL database port | 5432 |
| DB_USER | No | PostgreSQL database user | postgres |
| DEV_MODE | No | Enable development mode | false |
| FDEP_PATH | Yes | Path to your FDEP output directory (required) | |
| LOG_LEVEL | No | Logging level (e.g., INFO, DEBUG, WARNING) | INFO |
| DB_PASSWORD | No | PostgreSQL database password | postgres |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_modules | Get list of all modules in the database |
| get_function_details | Get detailed information about a specific function |
| search_functions | Search for functions by name pattern |
| get_most_called_functions | Get the most frequently called functions |
| execute_query | Execute a basic SQL query on the code database |
| get_module_details | Get detailed information about a specific module including function counts and statistics |
| get_functions_by_module | Get all functions defined in a specific module |
| search_modules | Search for modules by name pattern |
| get_module_dependencies | Analyze module dependencies and imports |
| get_function_call_graph | Get function call hierarchy showing what functions this function calls and what calls it |
| get_function_callers | Get all functions that call a specific function |
| get_function_callees | Get all functions called by a specific function |
| execute_advanced_query | Execute complex JSON-based queries with joins and advanced conditions |
| find_cross_module_calls | Find function calls that cross module boundaries |
| analyze_function_complexity | Analyze function complexity metrics including call count and signature complexity |
| get_code_statistics | Get comprehensive statistics about the codebase |
| list_types | Get types by module or pattern with support for different type categories |
| get_type_details | Get detailed information about a specific type including constructors and fields |
| search_types | Search for types by name pattern with advanced filtering |
| get_type_dependencies | Analyze type dependencies and relationships |
| analyze_type_usage | Analyze how types are used throughout the codebase |
| list_classes | Get class definitions with filtering by module or pattern |
| get_class_details | Get detailed information about a specific class including methods and instances |
| search_classes | Search for classes by name pattern with module filtering |
| analyze_imports | Analyze import patterns and dependencies for modules |
| get_import_graph | Generate module import relationship graph |
| find_unused_imports | Find potentially unused imports in modules |
| get_import_details | Get detailed information about imports in a module |
| find_similar_functions | Find functions similar to a given function based on signature and code |
| find_code_patterns | Find recurring code patterns across functions |
| group_similar_functions | Group functions by similarity to identify common patterns |
| build_type_dependency_graph | Build a comprehensive type dependency graph showing relationships between types |
| get_nested_types | Get all nested type definitions for specified types |
| analyze_type_relationships | Analyze deep type relationships and dependencies |
| find_element_by_location | Find code elements (functions, types, classes, imports) by source location |
| get_location_context | Get comprehensive context around a source location |
| get_function_context | Get complete context for a function including all used types and functions |
| generate_function_imports | Generate all necessary import statements for a function or code element |
| execute_custom_query | Execute custom SQL queries on the code database with parameters |
| pattern_match_code | Advanced pattern matching to find code structures |
| analyze_cross_module_dependencies | Comprehensive analysis of cross-module dependencies and coupling |
| enhanced_function_call_graph | Generate enhanced function call graphs with advanced options |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |