LM

ladislavsopko/mcp-ai-server-visual-studio

开发工具

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

57 stars 7 forks 质量 69 趋势 8

ladislavsopko/mcp-ai-server-visual-studio 是从 https://github.com/ladislavsopko/mcp-ai-server-visual-studio. 导入的 MCP 服务器候选

概览

ladislavsopko/mcp-ai-server-visual-studio 是从 https://github.com/ladislavsopko/mcp-ai-server-visual-studio. 导入的 MCP 服务器候选

概述(AI 翻译)

其他工具读取你的文件。MCP AI服务器理解你的代码。

这是首个也是唯一一个通过Model Context协议让AI助手访问C#编译器(Roslyn)和Visual Studio Debugger的Visual Studio扩展。41个工具。其中13个由Roslyn驱动。19个调试工具(预览)。语义理解,而非文本匹配。

安装

从 Visual Studio 市场安装

或者在Visual Studio扩展管理器里搜索**“MCP AI Server”**。

看它实际操作

点击观看YouTube


为什么是MCP AI服务器?

AI编码工具(Claude Code、Codex CLI、Gemini CLI、OpenCode、Cursor、Copilot、Windsurf等)在文件系统层面工作——它们读取文本、运行grep、执行构建。它们不像Visual Studio那样理解你的代码。

MCP AI 服务器通过将 IntelliSense 级别的智能和 Visual Studio 调试器作为 MCP 工具来弥合这一空白。你的 AI 助手获得了驱动 F12(前往定义)、Shift+F12(查找所有引用)、安全重构——以及现在的运行时调试——的语义理解。

可能发生的事:

|你问我 |没有MCP AI服务器 |有MCP AI服务器 |

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

README

以下为原文 README 节选,完整内容请查看原文。

MCP AI Server for Visual Studio

Other tools read your files. MCP AI Server understands your code.

The first and only Visual Studio extension that gives AI assistants access to the C# compiler (Roslyn) and the Visual Studio Debugger through the Model Context Protocol. 41 tools. 13 powered by Roslyn. 19 debugging tools (Preview). Semantic understanding, not text matching.

Install

Install from Visual Studio Marketplace

Or search for “MCP AI Server” in Visual Studio Extensions Manager.

See it in Action

Click to watch on YouTube


Why MCP AI Server?

AI coding tools (Claude Code, Codex CLI, Gemini CLI, OpenCode, Cursor, Copilot, Windsurf…) operate at the filesystem level — they read text, run grep, execute builds. They don’t understand your code the way Visual Studio does.

MCP AI Server bridges this gap by exposing IntelliSense-level intelligence and the Visual Studio Debugger as MCP tools. Your AI assistant gets the same semantic understanding that powers F12 (Go to Definition), Shift+F12 (Find All References), safe refactoring — and now runtime debugging.

What becomes possible:

You ask Without MCP AI Server With MCP AI Server
“Find WhisperFactory” grep returns 47 matches Class, Whisper.net, line 16 — one exact answer
“Rename ProcessDocument” sed breaks ProcessDocumentAsync Roslyn renames 23 call sites safely
“What implements IDocumentService?” Impossible via grep Full inheritance tree with interfaces
“What calls AuthenticateUser?” Text matches, can’t tell direction Precise call graph: callers + callees
“Why is ProcessOrder returning null?” Reads code, guesses Sets breakpoint, inspects actual runtime values

22 Stable Tools

Semantic Navigation (Roslyn-powered)

Tool Description
FindSymbols Find classes, methods, properties by name — semantic, not text
FindSymbolDefinition Go to definition (F12 equivalent)
FindSymbolUsages Find all references, compiler-verified (Shift+F12 equivalent)
在 GitHub 查看完整 README

安装

npx -y mcp-remote http://localhost:3010/sdk/
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "vs-mcp": { "type": "http", "url": "http://localhost:3010/sdk/" }, "vs-mcp-whisper": { "type": "http", "url": "http://localhost:3011/sdk/" } } }