code2flow-mcp-server
2
Code2Flow MCP Server is a project that transforms the code2flow command-line tool into an MCP server, facilitating AI applications to generate call graphs of code. It supports multiple languages and provides version and complexity analysis features.
Code2Flow MCP Server
This project wraps the code2flow command-line tool into an MCP (Model Context Protocol) server, enabling AI applications to generate and access code call graphs through a standardized MCP protocol.
Features
- Analyze source code and generate call graphs.
- Supports multiple programming languages (Python, JavaScript, Ruby, PHP).
- Provides services through the MCP protocol for easy AI application integration.
- Outputs images in PNG format.
- Offers version checking and code complexity analysis features.
Installation Requirements
- Python 3.7+
- Windows 11 or other supported operating systems
- PowerShell or other command-line terminals
- Installed code2flow command-line tool
Available Tools
generate_call_graph
- Generates code call graphs.check_code2flow_version
- Checks the code2flow version.analyze_code_complexity
- Analyzes code complexity.