NetVsMcp - MCP Tools for Visual StudioNetVsMcp is a local MCP bridge for Visual Studio. It gives AI agents and MCP clients access to the live IDE: editor buffers, Roslyn navigation, build diagnostics, debugger control, test execution, and UI/browser automation. This extension includes the NetVsMcp Broker, a lightweight local app that exposes a standard MCP endpoint on loopback ( NetVsMcp does not use repo-local configuration files and does not require separate MCP client configuration for each Visual Studio instance. Register the broker once, then target open Visual Studio sessions by session ID, process ID, solution path, workspace path, or solution name.
Broker setupThis Visual Studio extension does not run MCP tools inside Visual Studio itself. Instead, it ships the NetVsMcp Broker and starts that broker locally when Visual Studio opens. The broker is still the MCP server; the extension registers each open Visual Studio instance with it.
The VSIX-bundled broker exits after all Visual Studio sessions are gone, and Visual Studio starts a replacement broker if the bundled broker process is killed while Visual Studio is still running. Standalone broker MSI runs remain user-managed. Project source, documentation, issues, and release assets are available in the NetVsMcp GitHub repository. What your agent can doEdit & navigateRead and write documents, apply edits to the live in-memory buffer, go to definition or implementation, find all references, search symbols across the workspace. A safe-edit workflow lets the agent queue a preview diff that you review and approve inside Visual Studio before anything lands in the editor. Build & diagnoseTrigger solution or project builds, read the live error list and output panes, cancel in-progress builds, switch build configurations, and restore NuGet packages - all from the agent. DebugFull debugger control: start, stop, attach, step (into/over/out), set and manage conditional breakpoints, read locals and the call stack, evaluate expressions in the current frame, manage watches, switch threads, freeze/thaw threads, inspect parallel stacks, and take structured snapshots of debugger state. Solution, projects & testsQuery solution structure, project dependencies, and NuGet packages. Discover and run tests, debug a filtered test under the Visual Studio debugger, and read results. Tool highlights
170+ tools in total - see the full list in the project README. ProjectSource, documentation, issue tracker, and preview builds: https://github.com/Alexander-Swan/netvs-mcp |