MCP (Model Context Protocol) server for Vibe-Graph.
Exposes the Vibe-Graph codebase analysis capabilities as MCP tools, enabling LLM-powered agents to query code structure, analyze impact, and understand dependencies.
Gateway Mode (Recommended)
The gateway mode allows multiple projects to be served through a single
MCP endpoint. Run vg serve --mcp from any project directory - it will
either start a gateway or register with an existing one.
use ;
use CancellationToken;
async
Single-Project Mode (Legacy)
For backwards compatibility, single-project mode is still supported:
use VibeGraphMcp;
use Store;
use Arc;
async
Tools
list_projects- List all registered projects (gateway mode)search_nodes- Search for nodes by name/path patternget_dependencies- Get incoming/outgoing edges for a nodeimpact_analysis- Analyze which nodes are impacted by changesget_git_changes- Get current uncommitted git changesget_node_context- Get a node and its neighbors for contextlist_files- List files in the graph with filters