Back to MCP directory
publicPublicdnsLocal runtime

vsc-mcp-vscode-mcp-server

VSCode MCP服务器插件,提供文件管理和主题管理功能,支持与Cursor等编辑器交互

article

README

🚀 vsc - mcp - VSCode MCP 服务器

vsc - mcp 是一个 VSCode MCP 服务器,可实现与 VSCode 及其分支(如 Cursor、Windsurf 等)的交互,为开发者提供便捷的操作体验。

🚀 快速开始

安装

  1. 从 VSCode 市场安装扩展。
  2. 启动 VSCode 时,服务器会自动启动。
  3. 使用以下命令手动启动/停止服务器:
    • 启动 MCP 服务器
    • 停止 MCP 服务器

配置

将您的 MCP 客户端配置为连接到以下地址的服务器:http://localhost:3344/sse

示例配置(用于 Cursor,路径为 ~/.cursor/mcp.json

{
  "mcpServers": {
    "vsc-mcp": {
      "url": "http://localhost:3344/sse"
    }
  }
}

✨ 主要特性

目前支持的工具

文件管理

  • getOpenedFiles:获取当前打开文件的列表。
  • closeFiles:根据提供的标签关闭文件。

主题管理

  • listAvailableThemes:列出所有可用的 VSCode 主题。
  • getCurrentTheme:获取当前活动主题。
  • setThemeByDisplayName:通过显示名称更改当前主题。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client