MCP.so
登录

VS Code MCP Server

@juehang

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

juehang

关于 VS Code MCP Server

MCP server to expose VS Code editing features to an LLM for AI coding

VS Code MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "vscode-mcp-server": {
      "command": "npx",
      "args": [
        "mcp-remote@next",
        "http://localhost:3000/mcp"
      ]
    }
  }
}

VS Code MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is VS Code MCP Server?

A Visual Studio Code extension that allows Claude and other MCP clients to code directly in VS Code. It creates a local MCP server exposing VS Code's filesystem, editing, symbol, diagnostics, and shell capabilities to AI coding agents via the streamable HTTP API.

How to use VS Code MCP Server?

Install the extension from the VS Code Marketplace. Configure Claude Desktop with mcp-remote@next pointing to http://localhost:3000/mcp. The server runs locally on a configurable port (default 3000) and host (default 127.0.0.1), and can be toggled on/off via the status bar item. Users can enable individual tool categories (file, edit, shell, diagnostics, symbol) through extension settings.

Key features of VS Code MCP Server

  • List and read files in the VS Code workspace
  • Create, move, rename, and copy files with refactoring support
  • Search symbols and get definitions across the workspace
  • Check code diagnostics (errors/warnings) in files
  • Execute shell commands in the integrated terminal

Use cases of VS Code MCP Server

  • Extending coding agents like Claude Code with VS Code-specific capabilities (symbol search, document outlines) without duplicating existing tools
  • Letting AI assistants edit code files directly in VS Code with proper refactoring and diagnostics feedback
  • Running CLI commands, git operations, and build tasks through the integrated terminal via AI agents
  • Exploring codebase structure using document symbol trees and symbol search to reduce context consumption

常见问题

1

How is VS Code MCP Server different from similar tools like Serena?

It uses VS Code's built-in capabilities rather than duplicating tools that coding agents like Claude Code already have, focusing on VS Code-specific features such as symbol search and diagnostics.

2

What runtime or dependencies are required?

The extension runs inside VS Code and requires Node.js to install via npx. It uses the streamable HTTP API protocol, not the SSE API.

3

Where does data live and what are the security considerations?

The server runs locally on `127.0.0.1` only and is not exposed to the network. Because it allows shell command execution, the README warns about potential security risks and recommends ensuring the MCP client is trusted and the port is not exposed.

4

What are the known limitations?

Only one workspace is supported at a time. The MCP authentication spec is still in flux, so authentication has not been implemented. Only local use is supported.

5

What transports and configuration options are available?

The server uses HTTP. Configurable settings include port (default 3000), host (default 127.0.0.1), default enabled state on startup, and selective tool categories (file, edit, shell, diagnostics, symbol).

评论

开发工具 分类下的更多 MCP 服务器