
tjx666/VSoCode-MCP 是从 https://github.com/tjx666/vscode-mcp. 导入的 MCP 服务器候选
概览
tjx666/VSoCode-MCP 是从 https://github.com/tjx666/vscode-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
将VSCode与MCP(模型上下文协议)连接,以增强AI助手功能
设计动机 • 可用工具 • 安装 • CLI • 建筑 • 许可
概述
VSCode MCP 是一个全面的单一仓库解决方案,使 MCP(模型上下文协议)客户端能够实时访问丰富的 VSCode 上下文信息。该项目弥合了 AI 助手与开发环境之间的差距,提供准确的代码分析、诊断和智能代码导航。
设计动机
VSCode MCP Bridge 主要服务于 AI IDE(如 Cursor)和 AI 编码代理,帮助它们更高效地开发和分析代码。
传统的AI编码代理在验证代码修改时通常需要执行耗时的命令:
tsc --noEmit- TypeScript 类型检查eslint .- 代码样式检查npm run build- 项目建设
这些命令在大型项目中运行缓慢,严重影响AI开发效率。VSCode MCP Bridge提供实时LSP(语言服务器协议)信息,使AI代理能够:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
VSCode MCP
Connect VSCode with MCP (Model Context Protocol) for enhanced AI assistant capabilities
Design Motivation • Available Tools • Installation • CLI • Architecture • License
Overview
VSCode MCP is a comprehensive monorepo solution that enables MCP (Model Context Protocol) clients to access rich VSCode context information in real-time. This project bridges the gap between AI assistants and your development environment, providing accurate code analysis, diagnostics, and intelligent code navigation.
Design Motivation
VSCode MCP Bridge primarily serves AI IDEs (like Cursor) and AI coding agents, helping them develop and analyze code more efficiently.
Traditional AI coding agents often need to execute time-consuming commands when validating code modifications:
tsc --noEmit- TypeScript type checkingeslint .- Code style checkingnpm run build- Project building
These commands run slowly in large projects, severely impacting AI development efficiency. VSCode MCP Bridge provides real-time LSP (Language Server Protocol) information, allowing AI agents to:
- Get fast diagnostics (
get-diagnostics) - Replace time-consuming type checking and lint commands - Access comprehensive LSP information (
get-symbol-lsp-info) - Get definition, hover, signatures, and type info in one call - Navigate code efficiently (
get-references) - Understand code structure and dependencies with usage context - Safe file operations - Rename symbols across files with automatic import updates
Core Advantages
- Real-time: Leverage VSCode’s LSP for real-time code state without executing slow commands
- Accuracy: Precise analysis based on language servers, more reliable than static analysis
- Efficiency: Significantly reduce AI coding agent wait times
- Integration: Deep integration with VSCode ecosystem, supporting multiple languages and extensions
Available Tools
VSCode MCP provides the following tools through the MCP protocol:
安装
npx @vscode-mcp/vscode-mcp-server@latest配置
{
"mcpServers": {
"vscode-mcp": {
"command": "npx",
"args": ["@vscode-mcp/vscode-mcp-server@latest"]
}
}
}