Code MCP Server

by block

VSCode MCP

这个 monorepo 包含 VSCode MCP 服务器及其配套的 VSCode 扩展,它们共同使 AI 代理和助手(如 Goose 或 Claude)能够通过模型上下文协议与 VSCode 进行交互。

项目结构

vscode-mcp/ ├── server/ # MCP server implementation └── extension/ # VS Code extension

快速入门

  1. 安装 MCP 服务器
npx vscode-mcp-server install
  1. 安装 MCP 扩展

MCP 扩展

配置

Goose 桌面设置

  • ID: code-mcp
  • 名称: VS Code
  • 描述: Allows interaction with VS Code through the Model Context Protocol
  • 命令: npx vscode-mcp-server

Claude 桌面设置

将其添加到您的 Claude Desktop 配置文件( ~/Library/Application Support/Claude/claude_desktop_config.json ):

{ "mcpServers": { "vscode-mcp-server": { "command": "npx", "args": ["vscode-mcp-server"], "env": {} } } }

可用工具

Code MCP 服务器为 AI 代理与 VS Code 交互提供了以下工具:

create_diff

创建并显示修改现有文件的差异:

  • 应用前显示更改预览
  • 需要用户批准
  • 仅适用于现有文件

open_file

在 VS Code 编辑器中打开文件:

  • 用于查看新的或修改过的文件

open_project

在 VS Code 中打开项目文件夹:

  • 为AI代理设置工作目录

check_extension_status

检查扩展是否已安装并响应

get_extension_port

获取 VS Code MCP 扩展的端口号

list_available_projects

显示来自端口注册文件的项目

执照

该项目根据 Apache License 2.0 获得许可 - 有关详细信息,请参阅LICENSE文件。

版权所有 2025 Block, Inc.

本产品包含Block, Inc.开发的软件。

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

使 Goose 或 Claude 等 AI 代理和助手能够通过模型上下文协议与 VS Code 进行交互。

  1. 项目结构
    1. 快速入门
      1. 配置
        1. Goose 桌面设置
        2. Claude 桌面设置
      2. 可用工具
        1. create_diff
        2. open_file
        3. open_project
        4. check_extension_status
        5. get_extension_port
        6. list_available_projects
      3. 执照

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          Facilitates integration with Claude Desktop to run AI agents and execute purchased actions without code, leveraging the Model Context Protocol framework.
          Last updated -
          1
          TypeScript
          GPL 3.0
        • -
          security
          F
          license
          -
          quality
          Connects Claude AI to QGIS through the Model Context Protocol, allowing Claude to directly interact with and control QGIS for tasks like project creation, layer manipulation, and code execution.
          Last updated -
          286
          Python
          • Apple
        • -
          security
          F
          license
          -
          quality
          Allows AI assistants like Claude to directly interact with and control DaVinci Resolve through the Model Context Protocol, providing capabilities for project management, timeline manipulation, media management, and Fusion integration.
          Last updated -
          5
          Python
          • Apple
          • Linux
        • A
          security
          A
          license
          A
          quality
          Connect your Sanity content to AI agents. Create, update, and explore structured content using Claude, Cursor, and VS Code via the Model Context Protocol. Transform content operations from complex queries to simple conversations—giving your team superpowers without sacrificing structure.
          Last updated -
          20
          268
          43
          TypeScript
          MIT License
          • Linux
          • Apple

        View all related MCP servers

        ID: 8464lc36og