Logo de VS MCP Server

VS MCP Server

Organização
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!

Publicado porCodingWithCalvin
RepositórioVS-MCPServer
IdiomaC#
Forks
25
Estrelas
85
Ferramentas disponíveis
0
Tipo de transportestreamable-http
Categorias
LicençaMIT
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    VS MCP Server disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    85 estrelas e 25 forks no repositório vinculado.


🤔 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


Use o MCP de VS MCP Server com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar VS MCP Server, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP se conecta no TypingMind pela URL de um servidor MCP hospedado remotamente.

Adicione a URL de um servidor MCP

Use esta opção quando VS MCP Server já estiver hospedado remotamente ou quando sua equipe quiser um conector compartilhado que vários usuários possam acessar.

1

Abra Conectores MCP

No TypingMind, vá até Plugins, abra Conectores MCP e selecione Adicionar URL.

  1. Abra o TypingMind no navegador.
  2. Acesse Plugins.
  3. Abra Conectores MCP.
  4. Clique em Adicionar URL.
Formulário do TypingMind para adicionar a URL de um servidor MCP personalizado
2

Cole a URL do servidor

Insira a URL do servidor MCP fornecida pelo provedor no campo URL do servidor. Adicione um nome para a conexão, uma descrição, um ícone, cabeçalhos HTTP personalizados ou configurações do cliente OAuth se o servidor exigir.

  1. Cole a URL do servidor MCP fornecida pelo provedor no campo URL do servidor.
  2. Digite um nome para a conexão de VS MCP Server.
  3. Adicione uma descrição e um ícone para facilitar a identificação.
  4. Adicione cabeçalhos HTTP personalizados ou dados do cliente OAuth se o servidor exigir autenticação.
3

Crie a conexão

Clique em Criar conexão, volte à lista de Plugins e confirme que a nova conexão MCP está ativa.

  1. Clique em Criar conexão.
  2. Volte à lista de conectores MCP.
  3. Confirme que a conexão de VS MCP Server aparece como ativa.
  4. Atualize a lista de plugins se a conexão não aparecer imediatamente.
4

Troque de modelo sem reconectar

Inicie um chat com seu modelo preferido, ative as ferramentas de VS MCP Server em Plugins e mude para outro modelo sempre que necessário. A conexão MCP continua disponível no espaço de trabalho do TypingMind.

  1. Inicie um novo chat no TypingMind.
  2. Selecione o modelo de IA que deseja usar.
  3. Ative as ferramentas de VS MCP Server em Plugins.
  4. Peça ao modelo para usar a ferramenta quando necessário.
  5. Mude para outro modelo de IA e reutilize a mesma conexão MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar VS MCP Server para me ajudar nesta tarefa?
VS MCP Server
Claro. Já li.
Veja o que encontrei usando VS MCP Server.

Perguntas frequentes

Para que serve o servidor MCP VS MCP Server?

VS MCP Server é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP VS MCP Server com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar VS MCP Server com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP VS MCP Server com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com VS MCP Server conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP VS MCP Server ao TypingMind?

É possível conectar VS MCP Server ao TypingMind adicionando a URL do seu servidor MCP hospedado. Isso é útil para ter uma conexão MCP remota disponível no seu espaço de trabalho do TypingMind.

Quais ferramentas o MCP VS MCP Server oferece no TypingMind?

VS MCP Server disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP VS MCP Server?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se VS MCP Server exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇