# GraphPulse C++

GraphPulse C++ parses C++ projects using AST to map function relationships. Spots circular dependencies, unused functions, and generates Mermaid diagrams.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 718 installs
- Author: labsofuniverse
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/labsofuniverse/legacy-mcp-analyzer
- Updated: 2026-03-10
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/graphpulse-c

## What it does

The server ingests C++ code via a local `directory_path`, a collection of `raw_files`, or a GitHub `repo_url`. Passing code strings directly into `analyze_codebase` is blocked by design. You can provide uncommitted changes by passing a unified diff inside `patch_content`.

It constructs a function-level dependency graph from AST data. Connected agents query callers, callees, and cross-file coupling metrics. The `detect_cycles` command pinpoints recursion loops, while `get_orphan_functions` lists declared routines that have zero incoming calls.

Visual exports run through `generate_mermaid_graph`. For larger architectures, setting `focus_node` and `max_depth` limits diagram depth, preventing context window exhaustion.

## Requirements
- Remote server: `https://legacy-mcp-analyzer--labsofuniverse.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http legacy-mcp-analyzer https://legacy-mcp-analyzer--labsofuniverse.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add graphpulse-c --url https://legacy-mcp-analyzer--labsofuniverse.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "graphpulse-c": {
            "url": "https://legacy-mcp-analyzer--labsofuniverse.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "graphpulse-c": {
            "type": "http",
            "url": "https://legacy-mcp-analyzer--labsofuniverse.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http graphpulse-c https://legacy-mcp-analyzer--labsofuniverse.run.tools
```

## When to use it
- identify circular dependencies across C++ source files
- detect orphan functions that lack upstream callers
- check file coupling before restructuring code
- render targeted Mermaid call diagrams around a specific node

## Example prompts
- Run `analyze_codebase` using `directory_path` to map the local project
- List upstream callers for `calculate_interest` using `get_callers`
- Generate a Mermaid diagram centered on `process_client` with `max_depth` set to 2

## Similar
- [code-to-diagram](https://affpapa.org/en/nevibecode/skills/code-to-diagram.md) — skill · ★ 4719 repo stars
- [jscpd](https://affpapa.org/en/nevibecode/skills/jscpd.md) — skill · 2800 installs
- [jscodeshift](https://affpapa.org/en/nevibecode/skills/jscodeshift.md) — skill · 422 installs
- [cpp-coding-standards](https://affpapa.org/en/nevibecode/skills/cpp-coding-standards.md) — skill · 7100 installs
- [gograph](https://affpapa.org/en/nevibecode/plugins/gograph.md) — plugin · ★ 232 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
