mcp-vscode-commands
A VSCode extension that allows LLMs to directly execute VSCode commands through the Model Context Protocol (MCP).
Install / Use
claude mcp add louisfghbvc -- npx -y github:louisfghbvc/mcp-vscode-commandsIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Our assessment of mcp-vscode-commands
mcp-vscode-commands scores 71/100 on our quality scale, 607th of 690 AI & Machine Learning skills we index.
Its MCP Server is 2.8 KB long, well organised into 27 sections with 6 code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 11 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-09-12 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 86/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-25. Automated pattern scan on 2026-09-25. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
mcp-vscode-commands compared with similar skills
All 4 of these similar skills score higher than mcp-vscode-commands; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-vscode-commands (this skill)by louisfghbvc | 71 | 3 | 11mo ago | MCP Server |
| claude-memby thedotmack | 100 | 94.7k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 85.5k | 10d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 84.2k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install mcp-vscode-commands?
- Run
claude mcp add louisfghbvc -- npx -y github:louisfghbvc/mcp-vscode-commands. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-vscode-commands work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-vscode-commands safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 86/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-vscode-commands still maintained?
- The repository was last updated about 11 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubMCP VSCode Commands
一個輕量級且高效的 Model Context Protocol (MCP) 服務器,讓 AI 助手能夠通過 WebSocket 協議完整控制 VS Code 命令。
🚀 核心功能
- ✅ 完整 VS Code API 訪問 - 內嵌式架構,無限制訪問
- ✅ WebSocket 通信 - 現代化的網絡通信協議
- ✅ 自動端口分配 - 零配置,智能端口管理
- ✅ 智能連接管理 - 連接池、自動重連、性能監控
- ✅ 高性能架構 - 優化的連接管理和消息處理
- ✅ 輕量級設計 - 專注於 WebSocket,代碼簡潔高效
🏗️ 架構概覽
WebSocket 架構
WebSocket Clients ↔ WebSocket MCP Server ↔ Extension (MCP Server) ↔ VS Code API
通信模式
- WebSocket 模式: 現代化的網絡通信,支持遠程連接和多客戶端
- JSON-RPC 2.0: 標準的 MCP 協議實現
🚀 快速開始
安裝
code --install-extension mcp-vscode-commands-0.2.0.vsix
配置
在 VS Code 設置中配置 MCP 服務器:
{
"mcpVscodeCommands.autoStart": true,
"mcpVscodeCommands.websocketPort": 19847,
"mcpVscodeCommands.websocketMaxConnections": 10,
"mcpVscodeCommands.websocketConnectionTimeout": 30000,
"mcpVscodeCommands.logLevel": "info"
}
使用
- 安裝後自動啟動 WebSocket 服務器
- 通過 WebSocket 連接使用 MCP 協議
- AI 可以執行任何 VS Code 命令
- 使用
MCP: Diagnostics檢查狀態
🛠️ 可用工具
vscode.executeCommand
執行任何 VS Code 命令
{
"command": "editor.action.formatDocument",
"args": []
}
vscode.listCommands
列出所有可用命令
{
"filter": "editor"
}
WebSocket 管理命令
mcp-vscode-commands.startWebSocket- 啟動 WebSocket 服務器mcp-vscode-commands.stopWebSocket- 停止 WebSocket 服務器mcp-vscode-commands.restartWebSocket- 重啟 WebSocket 服務器
🔧 配置選項
基本配置
autoStart: 是否自動啟動 WebSocket MCP 服務器logLevel: 日誌等級 (info, warn, error, debug)
WebSocket 配置
websocketPort: WebSocket 服務器端口 (默認: 19847)websocketMaxConnections: 最大連接數 (默認: 10)websocketConnectionTimeout: 連接超時時間 (毫秒,默認: 30000)
📊 診斷和監控
使用 MCP: Diagnostics 命令查看詳細的系統狀態:
- 服務器運行狀態
- 連接統計信息
- 性能指標
- 錯誤日誌
- 配置信息
🔌 集成指南
WebSocket 客戶端集成
- 連接到 WebSocket 服務器 (ws://localhost:19847)
- 使用 JSON-RPC 2.0 協議發送 MCP 請求
- 完整的 VS Code API 訪問
客戶端配置示例
{
"name": "vscode-commands",
"type": "websocket",
"url": "ws://localhost:19847",
"protocol": "mcp"
}
🚀 性能特性
- 連接池管理: 智能的連接重用和負載均衡
- 消息緩衝: 高效的異步消息處理
- 自動重連: 網絡中斷時自動恢復
- 資源監控: 實時監控 CPU 和記憶體使用
- 輕量級架構: 專注於 WebSocket,減少不必要的開銷
- JSON-RPC 2.0: 標準協議,高效的消息序列化
🐛 故障排除
常見問題
- 端口衝突: 自動端口分配,無需手動配置
- 連接失敗: 檢查防火牆和網絡設置
- 權限問題: 確保有足夠的系統權限
- WebSocket 連接: 確保客戶端使用正確的 WebSocket URL
日誌查看
- 使用
MCP: Diagnostics查看詳細日誌 - 檢查 VS Code 輸出面板的 MCP 日誌
🤝 貢獻
歡迎貢獻代碼和文檔!請查看 CONTRIBUTING.md 了解詳細信息。
📄 許可證
MIT License - 詳見 LICENSE 文件
🔗 相關鏈接
Related Skills
claude-mem
94.7kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
85.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
84.2kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
73.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
