GraphPulse C++
Analyzes C++ codebases via AST parsing to build comprehensive, queryable dependency graphs for AI agents. Maps complex function relationships to identify upstream callers, circular dependencies, and orphan code. Includes GitHub repo ingestion and token-safe Mermaid.js visual exports to guide safe code refactoring.
https://legacy-mcp-analyzer--labsofuniverse.run.tools
How to connect
-
Smithery (hosted)
1. Open https://smithery.ai/servers/labsofuniverse/legacy-mcp-analyzer 2. Click Connect and complete OAuth in your MCP client (Claude, Cursor, VS Code, etc.) 3. MCP endpoint: https://legacy-mcp-analyzer--labsofuniverse.run.tools
Tools (8)
-
analyze_codebaseIngest a C++ codebase and build its dependency graph. This tool does NOT accept 'code_content'. Provide exactly ONE of: repo_url, raw_files, or directory_path. - repo_url: an HTTPS GitHub URL (e.g. 'https://github.com/user/repo'). Optionally add patch_content (a unified diff string) to overlay uncommitted changes on the cloned repo. - raw_files: for hobby projects or small codebases NOT hosted on GitHub. The user pastes their C++ code directly and you wrap
-
get_file_functionsList all functions defined in a specific source file. Use the relative path exactly as returned in the analyze_codebase output (e.g., 'src/engine.cpp' or 'main.cpp'). Args: filepath: Relative path of the source file within the analyzed workspace. Returns: A newline-separated list of function names, or no-match message.
-
get_file_couplingGenerate a report showing which files depend on which other files. Aggregates cross-file function calls into a per-file-pair summary (e.g., 'src/main.cpp -> src/utils.cpp (3 calls)'). Returns: A formatted coupling report, or a message if no cross-file deps exist.
-
get_callersList upstream functions that call the given function. Args: function_name: Exact name of the function (e.g., 'calculate_interest'). Returns: Comma-separated list of caller function names.
-
get_calleesList downstream functions that are called by the given function. Args: function_name: Exact name of the function (e.g., 'process_client'). Returns: Comma-separated list of callee function names.
-
detect_cyclesDetect circular dependencies in the current call graph. Returns: Formatted list of cycles, or a message if none found.
-
get_orphan_functionsIdentify functions that are defined but never called by any other function. Returns: Comma-separated list of orphan function names.
-
generate_mermaid_graphGenerate a Mermaid.js dependency diagram and return it as a markdown string. The AI can render this diagram inline in the chat. For large graphs, use focus_node and max_depth to keep the output token-efficient. Args: focus_node: Optional function name to centre the graph on. max_depth: Max hops from focus_node (default 2). Returns: A Mermaid-fenced markdown string for inline rendering.