Logo von VS MCP Server

VS MCP Server

Organisation
CodingWithCalvin

VS MCP Server exposes Visual Studio features through the Model Context Protocol (MCP), enabling AI assistants like Claude to interact with your IDE programmatically. Open files, read code, build projects, and more - all through natural conversation!

HerausgeberCodingWithCalvin
RepositoryVS-MCPServer
SpracheC#
Forks
25
Sterne
85
Verfügbare Tools
0
Transporttypstreamable-http
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    VS MCP Server stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    85 Sterne und 25 Forks im verlinkten Repository.


🤔 What is this?

VS MCP Server exposes Visual Studio features through the Model Context Protocol (MCP), enabling AI assistants like Claude to interact with your IDE programmatically. Open files, read code, build projects, and more - all through natural conversation!

✨ Features

📂 Solution Tools

ToolDescription
project_infoGet detailed project information
project_listList all projects in the solution
solution_closeClose the current solution
solution_infoGet information about the current solution
solution_openOpen a solution file
startup_project_getGet the current startup project
startup_project_setSet the startup project for debugging

📝 Document Tools

ToolDescription
document_activeGet the active document
document_cleanupRun code cleanup on a document
document_closeClose a document
document_listList all open documents
document_openOpen a file in the editor
document_readRead document contents
document_saveSaves an open document
document_writeWrite to a document
file_createCreate a file on disk and open it in the editor
folder_createCreate a folder on disk

✏️ Editor Tools

ToolDescription
editor_findSearch within documents
editor_goto_lineNavigate to a specific line
editor_insertInsert text at cursor position
editor_replaceFind and replace text
selection_getGet the current text selection
selection_setSet the selection range

🔨 Build Tools

ToolDescription
build_cancelCancel a running build
build_configuration_getGet the active and available build configuration/platform pairs
build_configuration_setChange the active build configuration and platform
build_projectBuild a specific project
build_solutionBuild the entire solution
build_statusGet current build status
clean_solutionClean the solution

🧭 Navigation Tools

ToolDescription
find_referencesFind all references to a symbol
goto_definitionNavigate to the definition of a symbol
symbol_documentGet all symbols defined in a document
symbol_workspaceSearch for symbols across the solution

🐛 Debugger Tools

ToolDescription
breakpoint_enableEnable or disable a breakpoint at a file and line
debugger_add_breakpointAdd a breakpoint, optionally with a condition and hit-count rule
debugger_breakPause execution (Ctrl+Alt+Break)
debugger_continueContinue execution (F5)
debugger_evaluateEvaluate an expression in the current debug context
debugger_get_callstackGet the call stack
debugger_get_localsGet local variables in current frame
debugger_launchStart debugging (F5), optionally for a specific project
debugger_launch_without_debuggingStart without debugger (Ctrl+F5), optionally for a specific project
debugger_list_breakpointsList all breakpoints, including conditions and hit-count rules
debugger_remove_breakpointRemove a breakpoint
debugger_set_variableSet the value of a local variable
debugger_statusGet current debugger state
debugger_step_intoStep into (F11)
debugger_step_outStep out (Shift+F11)
debugger_step_overStep over (F10)
debugger_stopStop debugging (Shift+F5)

🔍 Diagnostics Tools

ToolDescription
errors_listRead errors, warnings, and messages from the Error List, filtered by severity, scope, Build/IntelliSense source, suppression state, code, tool, category, project, path, or text
output_list_panesList all available Output window panes
output_readRead content from an Output window pane
output_writeWrite a message to an Output window pane

🧪 Test Tools

ToolDescription
test_cancelCancel the test run in progress
test_debugDebug the tests in a single class or method
test_debug_allDebug every test in the solution
test_runRun the tests in a single class or method
test_run_allRun every test in the solution
test_statsGet passed, failed, skipped, and not-run counts
test_statusGet the run state plus current counts

📊 Coverage Tools

ToolDescription
coverage_analyzeRun all tests with code coverage collection
coverage_reportRead results as a module / class / method tree with line and block counts
coverage_showOpen the Code Coverage Results window

ℹ️ Running coverage needs an edition that supports it — Enterprise only through VS 2022, all editions from VS 2026. Reading an existing .coverage file with coverage_report works on every edition.

💻 Terminal Tools

ToolDescription
terminal_closeClose a single integrated terminal
terminal_close_allClose every integrated terminal
terminal_createOpen an empty terminal using the default profile
terminal_listList the open terminal identifiers
terminal_runRun a command in a new terminal, inside the VS developer environment
terminal_showBring a terminal into view

⚠️ Terminal output is not captured. The Visual Studio terminal is a raw PTY with no exit code or command boundaries, so terminal_run reports only whether the terminal opened. To read results, redirect output to a file and read it back with document_read.

🪟 Window Tools

ToolDescription
toolwindow_hideHide (close) a tool window by caption
toolwindow_showShow a tool window by name (SolutionExplorer, ErrorList, Output, Terminal, etc.)
window_activateActivate (focus) a window by caption
window_listList all open windows with caption, kind, visibility, and GUID

💬 Dialog Tools

ToolDescription
dialog_listList the modal dialogs Visual Studio is waiting on, with their message and buttons
dialog_respondAnswer a dialog by clicking one of its buttons

💡 Stuck on a dialog? A modal dialog, like "The source code is different from the original version" or "Hot Reload changes not supported", blocks Visual Studio until someone answers it. If a tool call hangs or times out, dialog_list shows what Visual Studio is waiting on and dialog_respond answers it. Both work while the blocked call is still waiting.

🛠️ Installation

Visual Studio Marketplace

  1. Open Visual Studio 2022 or 2026
  2. Go to Extensions > Manage Extensions
  3. Search for "MCP Server"
  4. Click Download and restart Visual Studio

Manual Installation

Download the latest .vsix from the Releases page and double-click to install.

🚀 Usage

▶️ Starting the Server

  1. Open Visual Studio
  2. Go to Tools > MCP Server > Start Server (or enable auto-start in settings)
  3. The MCP server starts on http://localhost:5050

🤖 Configuring Claude Desktop & Claude Code

Add this to your Claude Desktop or Claude Code MCP settings (preferred HTTP method):

json
{
  "mcpServers": {
    "visualstudio": {
      "type": "http",
      "url": "http://localhost:5050"
    }
  }
}

Legacy SSE method (deprecated, but still supported):

json
{
  "mcpServers": {
    "visualstudio": {
      "type": "sse",
      "url": "http://localhost:5050/sse"
    }
  }
}

Claude Code (CLI) - alternate installation technique:

   claude mcp add --transport http visualstudio http://localhost:5050

ℹ️ Note: The HTTP method is the preferred standard. SSE (Server-Sent Events) is a legacy protocol and should only be used for backward compatibility.

⚙️ Settings

Configure the extension at Tools > Options > MCP Server:

SettingDescriptionDefault
Auto-start serverStart the MCP server when Visual Studio launchesOff
Binding AddressAddress the server binds tolocalhost
HTTP PortPort for the MCP server5050
Server NameName reported to MCP clientsVisual Studio MCP
Log LevelMinimum log level for outputInformation
Log RetentionDays to keep log files7

⚠️ terminal_run executes commands on your machine. Combined with a Binding Address other than localhost, this exposes command execution to your network. Leave the binding address at localhost unless you specifically need remote access.

🏗️ Architecture

+------------------+              +----------------------+   named pipes   +------------------+
|  Claude Desktop  |   HTTP/SSE  |  MCPServer.Server    | <-------------> |  VS Extension    |
|  (MCP Client)    | <---------> |  (MCP Server)        |    JSON-RPC     |  (Tool Impl)     |
+------------------+    :5050    +----------------------+                 +------------------+

🤝 Contributing

Contributions are welcome! Whether it's bug reports, feature requests, or pull requests - all feedback helps make this extension better.

🔧 Development Setup

  1. Clone the repository
  2. Open src/CodingWithCalvin.MCPServer.slnx in Visual Studio 2022
  3. Ensure you have the "Visual Studio extension development" workload installed
  4. Ensure you have .NET 10.0 SDK installed
  5. Press F5 to launch the experimental instance

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


👥 Contributors


VS MCP Server MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald VS MCP Server verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration verbindet sich in TypingMind über die URL eines extern gehosteten MCP-Servers.

Eine MCP-Server-URL hinzufügen

Nutzen Sie diese Option, wenn VS MCP Server bereits auf einem Remote-Server gehostet wird oder Ihr Team einen gemeinsamen Konnektor für mehrere Benutzer benötigt.

1

MCP-Konnektoren öffnen

Gehen Sie in TypingMind zu „Plugins“, öffnen Sie „MCP-Konnektoren“ und wählen Sie dann „URL hinzufügen“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Gehen Sie zu „Plugins“.
  3. Öffnen Sie „MCP-Konnektoren“.
  4. Klicken Sie auf „Neue URL“.
TypingMind-Formular zum Hinzufügen einer benutzerdefinierten MCP-Server-URL
2

Server-URL einfügen

Geben Sie die MCP-Server-URL des Anbieters in das Feld „Server-URL“ ein. Fügen Sie einen Verbindungsnamen, eine Beschreibung, ein Symbol, benutzerdefinierte HTTP-Header oder OAuth-Client-Einstellungen hinzu, falls der Server diese erfordert.

  1. Fügen Sie die MCP-Server-URL des Anbieters in das Feld „Server-URL“ ein.
  2. Geben Sie einen Verbindungsnamen für VS MCP Server ein.
  3. Fügen Sie bei Bedarf eine Beschreibung und ein Symbol hinzu, um die Verbindung leichter zu erkennen.
  4. Fügen Sie benutzerdefinierte HTTP-Header oder OAuth-Client-Daten hinzu, falls der Server eine Authentifizierung erfordert.
3

Verbindung erstellen

Klicken Sie auf „Verbindung erstellen“, kehren Sie dann zur Plugin-Liste zurück und prüfen Sie, ob die neue MCP-Verbindung aktiv ist.

  1. Klicken Sie auf „Verbindung erstellen“.
  2. Kehren Sie zur Liste der MCP-Konnektoren zurück.
  3. Prüfen Sie, ob die Verbindung zu VS MCP Server als aktiv angezeigt wird.
  4. Aktualisieren Sie die Plugin-Liste, falls die Verbindung nicht sofort angezeigt wird.
4

Modelle ohne erneuten Verbindungsaufbau wechseln

Starten Sie einen Chat mit Ihrem bevorzugten Modell, aktivieren Sie unter „Plugins“ die Tools von VS MCP Server und wechseln Sie bei Bedarf zu einem anderen Modell. Die MCP-Verbindung bleibt im TypingMind-Arbeitsbereich verfügbar.

  1. Starten Sie einen neuen Chat in TypingMind.
  2. Wählen Sie das KI-Modell, das Sie verwenden möchten.
  3. Aktivieren Sie die Tools von VS MCP Server unter „Plugins“.
  4. Bitten Sie das Modell, das Tool bei Bedarf zu verwenden.
  5. Wechseln Sie zu einem anderen KI-Modell und verwenden Sie dieselbe MCP-Verbindung weiter.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit VS MCP Server bei dieser Aufgabe helfen?
VS MCP Server
Gerne. Ich habe es gelesen.
Das habe ich mit VS MCP Server gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server VS MCP Server verwendet?

VS MCP Server ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich VS MCP Server MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie VS MCP Server mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum VS MCP Server MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald VS MCP Server verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich VS MCP Server MCP mit TypingMind?

Sie können VS MCP Server in TypingMind verbinden, indem Sie die URL des gehosteten MCP-Servers hinzufügen. Das ist sinnvoll, wenn Sie eine entfernte MCP-Verbindung benötigen, die in Ihrem TypingMind-Arbeitsbereich verfügbar ist.

Welche Tools stellt VS MCP Server MCP in TypingMind bereit?

VS MCP Server stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um VS MCP Server MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls VS MCP Server eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇