Logo vun VS MCP Server

VS MCP Server

Organisatioun
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!

EditeurCodingWithCalvin
RepositoryVS-MCPServer
SproochC#
Forks
25
Stären
85
Disponibel Tools
0
Transporttypstreamable-http
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    VS MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    85 Stären an 25 Forks aus dem verlinkte 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 mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal VS MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun verbënnt sech an TypingMind iwwer d'URL vun engem gehoste MCP-Server.

Eng MCP-Server-URL derbäisetzen

Benotzt dës Optioun, wann VS MCP Server scho remote gehost gëtt oder Är Ekipp ee gemeinsame Connector wëllt, op dee méi Benotzer kënnen zougräifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbäisetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbäisetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbäizesetzen
2

D'Server-URL apeschen

Gitt d'MCP-Server-URL vum Ubidder am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinéiert HTTP-Headeren oder OAuth-Clientastellungen derbäi, wann de Server se erfuerdert.

  1. Pescht d'MCP-Server-URL vum Ubidder an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat VS MCP Server an.
  3. Setzt eng Beschreiwung an e Symbol derbäi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbäi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zeréck op d'Plugin-Lëscht a kontrolléiert, ob déi nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat VS MCP Server als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivéiert d'Tools vu VS MCP Server ënner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-Aarbechtsberäich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. Aktivéiert d'Tools vu VS MCP Server ënner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat VS MCP Server?
VS MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat VS MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server VS MCP Server benotzt?

VS MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech VS MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir VS MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat VS MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann VS MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech VS MCP Server MCP mat TypingMind?

Dir kënnt VS MCP Server mat TypingMind verbannen, andeems Dir d'URL vu sengem gehoste MCP-Server derbäisetzt. Dat ass nëtzlech, wann Dir eng Remote-MCP-Verbindung wëllt, déi aus Ärem TypingMind-Aarbechtsberäich disponibel ass.

Wéi eng Tools stellt VS MCP Server MCP an TypingMind zur Verfügung?

VS MCP Server stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir VS MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann VS MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇