Logo van MCP Ai server for Visual Studio

MCP Ai server for Visual Studio

Community
LadislavSopko

MCP AI Server - Roslyn-powered MCP server for Visual Studio. 20 tools for AI assistants.

UitgeverLadislavSopko
Repositorymcp-ai-server-visual-studio
TaalHTML
Forks
5
Sterren
50
Beschikbare tools
0
Transporttypestdio
Categorieën
Links
  • Koppel tools aan AI-workflows

    MCP Ai server for Visual Studio biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    50 sterren en 5 forks in de gekoppelde repository.

MCP AI Server for Visual Studio

Other tools read your files. MCP AI Server understands your code.

Install from Marketplace VS 2022 Free Tools Website

The first and only Visual Studio extension that gives AI assistants access to the C# compiler (Roslyn) and the Visual Studio Debugger through the Model Context Protocol. 41 tools. 13 powered by Roslyn. 19 debugging tools (Preview). Semantic understanding, not text matching.

Install

Install from Visual Studio Marketplace

Or search for "MCP AI Server" in Visual Studio Extensions Manager.

See it in Action

Watch Demo Video

Click to watch on YouTube


Why MCP AI Server?

AI coding tools (Claude Code, Codex CLI, Gemini CLI, OpenCode, Cursor, Copilot, Windsurf...) operate at the filesystem level — they read text, run grep, execute builds. They don't understand your code the way Visual Studio does.

MCP AI Server bridges this gap by exposing IntelliSense-level intelligence and the Visual Studio Debugger as MCP tools. Your AI assistant gets the same semantic understanding that powers F12 (Go to Definition), Shift+F12 (Find All References), safe refactoring — and now runtime debugging.

What becomes possible:

You askWithout MCP AI ServerWith MCP AI Server
"Find WhisperFactory"grep returns 47 matchesClass, Whisper.net, line 16 — one exact answer
"Rename ProcessDocument"sed breaks ProcessDocumentAsyncRoslyn renames 23 call sites safely
"What implements IDocumentService?"Impossible via grepFull inheritance tree with interfaces
"What calls AuthenticateUser?"Text matches, can't tell directionPrecise call graph: callers + callees
"Why is ProcessOrder returning null?"Reads code, guessesSets breakpoint, inspects actual runtime values

22 Stable Tools

Semantic Navigation (Roslyn-powered)

ToolDescription
FindSymbolsFind classes, methods, properties by name — semantic, not text
FindSymbolDefinitionGo to definition (F12 equivalent)
FindSymbolUsagesFind all references, compiler-verified (Shift+F12 equivalent)
GetSymbolAtLocationIdentify the symbol at a specific line and column
GetDocumentOutlineSemantic structure: classes, methods, properties, fields

Code Understanding (Roslyn-powered)

ToolDescription
GetInheritanceFull type hierarchy: base types, derived types, interfaces
GetMethodCallersWhich methods call this method (call graph UP)
GetMethodCallsWhich methods this method calls (call graph DOWN)

Code Analysis (Roslyn-powered)

ToolDescription
GetDiagnosticsCompiler errors & warnings without building — Roslyn background analysis

Refactoring (Roslyn-powered)

ToolDescription
RenameSymbolSafe rename across the entire solution — compiler-verified
FormatDocumentVisual Studio's native code formatter

Project & Build

ToolDescription
ExecuteCommandBuild or clean solution/project with structured diagnostics
ExecuteAsyncTestRun tests asynchronously with real-time status
GetSolutionTreeSolution and project structure
GetProjectReferencesProject dependency graph
LoadSolutionOpen a .sln/.slnx file — server stays on the same port
TranslatePathConvert paths between Windows and WSL formats

Editor Integration

ToolDescription
GetActiveFileCurrent file and cursor position
GetSelection / CheckSelectionRead active text selection
GetLoggingStatus / SetLogLevelExtension diagnostics

19 Debugging Tools (Preview)

Your AI assistant can now debug your .NET code at runtime through the Visual Studio Debugger. Set breakpoints, step through code, inspect variables, attach to Docker containers and WSL processes.

Debug Control (10 tools)

ToolDescription
debug_startStart debugging (F5). Fire-and-forget
debug_stopStop debugging session
debug_get_modeCurrent mode: Design, Running, or Break
debug_breakPause the running application
debug_continueResume execution
debug_stepStep over/into/out
immediate_executeExecute expression with side effects
debug_list_transportsList transports (Default, Docker, WSL, SSH...)
debug_list_processesList processes on a transport
debug_attachAttach to a running process

Debug Inspection (5 tools)

ToolDescription
debug_get_callstackCall stack of current thread
debug_get_localsLocal variables (tree-navigable)
debug_evaluateEvaluate expression / drill into variable tree
output_readRead VS Output window (Build, Debug, Tests)
error_list_getErrors and warnings from VS Error List

Breakpoint Management (4 tools)

ToolDescription
breakpoint_setSet breakpoint by file+line or function name
breakpoint_removeRemove breakpoint
breakpoint_listList all breakpoints
exception_settings_setConfigure break-on-exception

AI Debugging Guide

Complete reference for AI agents — all 19 tools, 10 workflows, Docker & WSL setup, polling patterns, and best practices.

Download AI Debugging Guide (.md) — add it to your AI's context for full debugging capabilities.


Compatible Clients

Works with any MCP-compatible AI tool:

CLI Agents:

  • Claude Code — Anthropic's terminal AI coding agent
  • Codex CLI — OpenAI's terminal coding agent
  • Gemini CLI — Google's open-source terminal agent
  • OpenCode — Open-source AI coding agent (45k+ GitHub stars)
  • Goose — Block's open-source AI agent
  • Aider — AI pair programming in terminal

Desktop & IDE:

  • Claude Desktop — Anthropic's desktop app
  • Cursor — AI-first code editor
  • Windsurf — Codeium's AI IDE
  • VS Code + Copilot — GitHub Copilot with MCP
  • Cline — VS Code extension
  • Continue — Open-source AI assistant

Any MCP client — open protocol, universal compatibility


Quick Start

  1. Install from Visual Studio Marketplace
  2. Open your .NET solution in Visual Studio
  3. Configure port in MCP Server Settings (default: 3010)
  4. Add to your MCP client:
json
"vs-mcp": {
  "type": "http",
  "url": "http://localhost:3010/sdk/"
}
  1. Start asking your AI semantic questions about your code

MCP Client Configuration

AI ToolTypeConfig File
Claude CodeCLICLAUDE.md
Claude DesktopAppclaude_desktop_config.json
CursorIDE.cursor/rules/*.mdc or .cursorrules
WindsurfIDE.windsurfrules
ClineVS Code Extension.clinerules/ directory
VS Code + CopilotIDE.github/copilot-instructions.md
ContinueIDE Extension.continue/config.json
Gemini CLICLIGEMINI.md
OpenAI Codex CLICLIAGENTS.md
GooseCLI.goose/config.yaml

Any tool supporting Model Context Protocol will work.


Configure AI Preferences (Recommended)

Add these instructions to your project's AI config file (see table above) to ensure your AI automatically prefers MCP tools:

markdown
## MCP Tools - ALWAYS PREFER

When `mcp__vs-mcp__*` tools are available, ALWAYS use them instead of Grep/Glob/LS:

| Instead of | Use |
|------------|-----|
| `Grep` for symbols | `FindSymbols`, `FindSymbolUsages` |
| `LS` to explore projects | `GetSolutionTree` |
| Reading files to find code | `FindSymbolDefinition` then `Read` |
| Searching for method calls | `GetMethodCallers`, `GetMethodCalls` |

**Why?** MCP tools use Roslyn semantic analysis - 10x faster, 90% fewer tokens.

Multi-Solution: Understand Your Dependencies

Need the AI to understand a library you depend on? Clone the source from GitHub, open it in a second Visual Studio — each instance runs its own MCP server on a configurable port.

Your project                          → port 3010
Library source (cloned from GitHub)   → port 3011
Framework source                      → port 3012

Your AI connects to all of them. It can trace calls, find usage patterns, and understand inheritance across your code and library code.

MCP client configuration — three options depending on your client:

Clients with native HTTP support (Claude Desktop, Claude Code):

json
{
  "mcpServers": {
    "vs-mcp": {
      "type": "http",
      "url": "http://localhost:3010/sdk/"
    },
    "vs-mcp-whisper": {
      "type": "http",
      "url": "http://localhost:3011/sdk/"
    }
  }
}

Clients without HTTP support (via mcp-remote proxy):

json
{
  "mcpServers": {
    "vs-mcp": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://localhost:3010/sdk/"]
    },
    "vs-mcp-whisper": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://localhost:3011/sdk/"]
    }
  }
}

Codex CLI (TOML):

toml
[mcp_servers.vs-mcp]
type = "stdio"
command = "npx"
args = ["mcp-remote", "http://localhost:3010/sdk/"]

[mcp_servers.vs-mcp-whisper]
type = "stdio"
command = "npx"
args = ["mcp-remote", "http://localhost:3011/sdk/"]

Settings

Tools → MCP Server Settings

VS-MCP Settings

SettingDefaultDescription
Port3001Server port (configurable per VS instance)
Path FormatWSLOutput as /mnt/c/... or C:\...
ToolsAll enabledEnable/disable individual tool groups

Changes apply on next server start.


vs. Other Approaches

ApproachSymbol SearchInheritanceCall GraphSafe RenameDebugging
MCP AI Server (Roslyn + Debugger)SemanticFull treeCallers + CalleesCompiler-verifiedBreakpoints + Step + Inspect
AI Agent (grep/fs)Text matchNoNoText replaceNo
Other MCP serversNoNoNoNoNo

Requirements

  • Visual Studio 2022 (17.13+) or Visual Studio 2026
  • Windows (amd64 or arm64)
  • Any MCP-compatible AI tool

Issues & Feature Requests

Found a bug or have an idea? Open an issue!


About

0ics srl — Italian software company specializing in AI-powered development tools. Part of the example4.ai ecosystem.

Built by Ladislav Sopko — 30 years of software development, from assembler to enterprise .NET.


MCP AI Server: Because your AI deserves the same intelligence as your IDE.

Gebruik MCP Ai server for Visual Studio MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra MCP Ai server for Visual Studio is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg MCP Ai server for Visual Studio toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van MCP Ai server for Visual Studio.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "mcp-ai-server-visual-studio": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van MCP Ai server for Visual Studio in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van MCP Ai server for Visual Studio in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je MCP Ai server for Visual Studio gebruiken om me hiermee te helpen?
MCP Ai server for Visual Studio
Zeker. Ik heb het gelezen.
Dit vond ik met MCP Ai server for Visual Studio.

Veelgestelde vragen

Waarvoor wordt de MCP-server MCP Ai server for Visual Studio gebruikt?

MCP Ai server for Visual Studio is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik MCP Ai server for Visual Studio MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je MCP Ai server for Visual Studio gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom MCP Ai server for Visual Studio MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als MCP Ai server for Visual Studio verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik MCP Ai server for Visual Studio MCP met TypingMind?

MCP Ai server for Visual Studio werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt MCP Ai server for Visual Studio MCP in TypingMind?

MCP Ai server for Visual Studio biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om MCP Ai server for Visual Studio MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als MCP Ai server for Visual Studio authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇