Code2Flow
Summary
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.
Available Actions(3)
generate_call_graph
生成代码调用图。参数: source_paths (必需,列表): 要分析的源代码文件或目录的路径列表; output_path (可选,字符串): 输出文件的路径; language (可选,字符串): 源代码语言 (python、js、ruby、php); exclude (可选,列表): 要排除的文件模式列表; include (可选,列表): 要包含的文件模式列表。
check_code2flow_version
检查 code2flow 版本。无参数。
analyze_code_complexity
分析代码复杂度。参数: source_path (必需,字符串): 要分析的源代码文件或目录的路径; language (可选,字符串): 源代码语言 (python、js、ruby、php)。
コミュニティレビュー
まだレビューはありません. 最初のレビューを投稿しましょう!
会話に参加するにはサインインしてください