Code2Flow MCP Server provides a FastAPI-based interface that enables AI assistants to generate visual code flow diagrams from source code. By leveraging the code2flow Python library, this server allows agents to analyze code structure, visualize execution paths, and understand program flow without manual diagramming. The implementation includes a client example script demonstrating how to interact with the server, making it particularly useful for code comprehension, documentation generation, and architectural analysis tasks.
生成代码调用图。参数: source_paths (字符串列表): 要分析的源代码文件或目录的路径列表, language (可选字符串): 源代码语言(如python、js、ruby、php)
检查 code2flow 版本。无参数。
分析代码复杂度。参数: source_path (字符串): 要分析的源代码文件的路径, language (可选字符串): 源代码语言(如python、js、ruby、php)
No reviews yet. Be the first to review!
Sign in to join the conversation