DB

dhq-boiler/unofficial-vs-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

21 stars 14 forks Качество 72 Тренд 24MIT

Сервер Model Context Protocol (MCP) для Visual Studio

Обзор

Позволяет агентам ИИ, таким как Claude Code, контролировать функции Visual Studio, включая отладку, создание, редактирование и автоматизацию пользовательского интерфейса. Это так. Обратная связь и сообщения об ошибках приветствуются по вопросам GitHub. Весь код в этом проекте был полностью создан ИИ (Клод). VS MCP Сервер разоблачает следующие категории: - (16.0 или более поздней версии), или - Community, Professional или Enterprise edition - - - (для компонента StdioProxy) 1.Установите расширение Visual Studio Marketplace или загрузите файл .vsix из Releases 2. Перезагрузите Visual Studio 3. Сервер MCP запускается автоматически при запуске Visual Studio %LOCALAPPDATA% не признается в bash. Вы должны указать полный абсолютный путь (например, C:\Users\\AppData\Local...). - Ручная конфигурация (добавьте конфигурацию MCP JSON):

Обзор (машинный перевод)

** Сервер Model Context Protocol (MCP) для Visual Studio** — позволяет агентам ИИ, таким как Claude Code, управлять функциями Visual Studio, включая отладку, создание, редактирование и автоматизацию пользовательского интерфейса.

Это бета-версия **. Обратная связь и сообщения об ошибках приветствуются по вопросам GitHub.

100% AI Generated — весь код в этом проекте был создан полностью AI (Claude).

Особенности

VS MCP Server предоставляет 115 инструментов в следующих категориях:

| Категория | Инструменты | Описание | [скрыто] [скрыто] [скрыто] [скрыто] [скрыто] [скрыто] [скрыто] | Общий | 7 | Исполнять команды VS, получать статус IDE, просматривать инструментальную помощь, переключать защиту фокусировки, проверять переходы переднего плана | | Решение и Проект | 5 | Открытые/закрытые решения, список/инспектирование проектов | | Построить | 6 | Построить решение/проект, очистить, перестроить, получить ошибки сборки, переключить конфигурацию | | Редактор | 7 | Файлы Open/close/read/write/edit, найти в файлах | | Edit Preview | 4 | Diff preview, одобрить/отклонить правки с VS diff viewer | | Код Навигация | 3 | Перейти к определению, найти ссылки, перейти к реализации | Проводник решений | 6 | Добавить / удалить проекты, файлы и ссылки

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

VS MCP Server

Model Context Protocol (MCP) server for Visual Studio — Enables AI agents like Claude Code to control Visual Studio features including debugging, building, editing, and UI automation.

This is a beta release. Feedback and bug reports are welcome on GitHub Issues.

100% AI Generated — All code in this project was generated entirely by AI (Claude).

Features

VS MCP Server exposes 115 tools across the following categories:

Category Tools Description
General 7 Execute VS commands, get IDE status, view tool help, toggle focus guard, audit foreground transitions
Solution & Project 5 Open/close solutions, list/inspect projects
Build 6 Build solution/project, clean, rebuild, get build errors, switch configuration
Editor 7 Open/close/read/write/edit files, find in files
Edit Preview 4 Diff preview, approve/reject edits with VS diff viewer
Code Navigation 3 Go to definition, find references, go to implementation
Solution Explorer 6 Add/remove projects, files, and references
Debugger 13 Start/stop/restart, attach, stepping, call stack, locals, threads, evaluate, run without debugging
Breakpoints 4 Set/remove/list, enable/disable breakpoints
Output & Diagnostics 5 Read/write/clear output panes, error list, XAML binding errors
Console 3 Read console output, send input/keys, get console info for debugged apps
UI Automation 10 Capture screenshots, inspect UI trees, find/click/right-click/drag/invoke elements
Web 12 Browser automation via Chrome CDP and Firefox RDP — navigation, DOM, console, network, screenshots
Test 3 Discover, run, and view test results
NuGet 5 Search, install, update, remove NuGet packages
Advanced Debug 20 Watch, thread/process management, immediate window, registers, memory, parallel stacks

Tool Details

General

Tool Description
execute_command Execute a Visual Studio command by name
get_status Get the current Visual Studio status including solution state, active document, and debugger mode
get_help Get a categorized list of all available vs-mcp tools with descriptions
focus_guard_get Get whether the focus guard is currently on
focus_guard_set Turn the focus guard on or off — when on, MCP-driven builds, output writes, and debug launches do not steal foreground focus from the currently focused application, and VS is kept minimized across debug_start if it was already minimized
focus_guard_audit_read Read recent foreground-window transitions from a bounded ring buffer — each entry names the process/window that gained (and lost) foreground, with timestamp and whether the guard was on. Use this to identify what actually stole focus.
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "vs-mcp": { "command": "C:\\Users\\<USERNAME>\\AppData\\Local\\VsMcp\\bin\\VsMcp.StdioProxy.exe" } } }