DB

dhq-boiler/unofficial-vs-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

21 stars 14 forks 质量 72 趋势 24MIT

Visual Studio 的模型上下文协议服务器

概览

——使克洛德代码等AI代理能够控制Visual Studio功能,包括调试,建设,编辑,以及UI自动化. 这是一个。 欢迎关于GitHub问题的反馈和错误报告。 ——此项目的所有代码全部由AI(克洛德)生成. VS 磁共振 服务器暴露于以下类别: - (6.0或以后),或——社区、专业或企业版 -- -- (用于StioProxy组件) 1. 从Visual Studio Marketplace安装分机,或下载从第2版"重新启动Visual Studio 3. MCP 服务器在 Visual Studio 启动时自动启动 % LOCALAPPDATA % 在狂欢中不被识别。 您必须指定全绝对路径( 如 C:\ Users\\\ AppData\ Local...) 。 — 手动配置( 加入您的 MCP 配置 JSON ):

概述(AI 翻译)

** 用于Visual Studio的模型背景协议(MCP)服务器** — 允许克洛德代码等AI代理控制Visual Studio功能,包括调试,构建,编辑,以及UI自动化.

这是β释放。 欢迎关于GitHub问题的反馈和错误报告。

100%的AI生成 — 此项目的所有代码全部由AI(克洛德)生成.

□ 特性

VS MCP 服务器曝光了115个工具,分为以下类别:

· 类别 · 工具 · · 说明 |:也. QQ General QQ 7 执行 VS 命令, 获得 IDE 状态, 查看工具帮助, 切换焦点守护, 审计前景转换 QQ QQ 解决方案和项目 QQ 5 打开/关闭解决方案,列表/检查项目 QQ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ QQ 编辑 QQ 7 QQ 打开/关闭/读取/写入/编辑文件,在文件QQ中查找 QQ 编辑预览 QQ 4 编辑 Diff 预览, 批准/拒绝编辑 VS diff 查看器 QQ

  • 代码导航 3 * 定义 查找参考文献 执行 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

本页由 AI 翻译,技术细节请以原文为准。

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.
在 GitHub 查看完整 README

安装

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

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

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