Vscode Internal Command MCP Server
V

Vscode Internal Command MCP Server

A VSCode extension based on the FastMCP framework that transforms VSCode into an MCP server, supporting remote execution of internal VSCode commands via HTTP Streaming, querying workspace information, and asynchronous task management
2.5 points
0

What is VSCode Internal Command MCP Server?

This is a VSCode extension that transforms your code editor into an MCP (Model Context Protocol) server. It allows external applications (such as AI assistants and other development tools) to execute internal VSCode commands via an HTTP connection, such as code formatting, file saving, copy-pasting, and other operations.

How to use this service?

After installing the extension, the server will start automatically. You can control which operations external clients can perform by configuring the allowed command list. Clients connect to port localhost:8080 via HTTP, send command requests, and the server executes the corresponding operations and returns the results.

Applicable scenarios

Suitable for developers when they need to automate VSCode operations, such as integrating with AI programming assistants, building custom development workflows, remotely controlling VSCode to perform specific tasks, and other scenarios.

Main features

HTTP streaming support
Uses the text/event-stream protocol to achieve real-time communication, ensuring timely responses to command execution
VSCode command execution
Supports the execution of any internal VSCode commands, from simple editing operations to complex workspace management
Workspace information query
Get the current workspace status, folder structure, and active editor information
Asynchronous background execution
Commands can be executed asynchronously in the background without blocking user interface operations
Configurable execution delay
You can set a delay for command execution to adapt to different usage scenarios
Security control mechanism
Ensures that only authorized commands can be executed through the command whitelist mechanism
Real-time status monitoring
The status bar displays the server running status, making it easy for users to monitor the connection status
Health check endpoint
Built-in health check function to ensure the normal operation of the server
Advantages
๐Ÿš€ Seamless integration: Runs directly in VSCode without additional installation
๐Ÿ”ง Flexible configuration: Supports command whitelisting and execution parameter configuration
โšก High performance: Based on the FastMCP framework, supports concurrent request processing
๐Ÿ›ก๏ธ Security: Only listens on localhost by default, avoiding external access risks
๐Ÿ“Š Real-time feedback: Provides detailed execution status and error information
๐Ÿ”Œ Standard compatibility: Fully complies with the MCP protocol specification and is compatible with various clients
Limitations
๐Ÿ”’ Limited to the VSCode environment: Can only be used in the VSCode editor
๐ŸŒ Network dependency: Requires an HTTP connection and may be limited by the network environment
โš™๏ธ Configuration complexity: Requires correct configuration of the command whitelist to ensure security
๐Ÿ”„ Asynchronous execution delay: There may be a slight delay in background task execution
๐Ÿ“‹ Command compatibility: Some VSCode extension commands may require specific contexts

How to use

Install the extension
Install the VSCode Internal Command MCP Server extension in VSCode
Configure the server
Configure the server parameters and allowed command list in the VSCode settings
Start the server
The server usually starts automatically, or you can start it manually through the command palette
Connect the client
Configure your client application to connect to the MCP server endpoint
Execute commands
Send command requests through the client, and the server executes and returns the results

Usage examples

AI assistant automatic code formatting
After the AI programming assistant detects code formatting issues, it automatically triggers the VSCode formatting command
Remote file saving
Trigger VSCode to save the currently edited file from an external tool
Workspace information retrieval
Get the structure and file information of the current workspace for project analysis
Batch command execution
Execute multiple VSCode commands in sequence to implement complex workflows

Frequently Asked Questions

Is this extension secure? Can it be exploited maliciously?
Why isn't my command execution having any effect?
How can I see which commands can be executed?
Which clients are supported for connection?
What's the difference between asynchronous and synchronous execution?
How can I monitor the execution status of background tasks?

Related resources

FastMCP framework documentation
Official documentation for the MCP server framework on which this project is based
Model Context Protocol specification
Official specification and description of the MCP protocol
GitHub project repository
Source code and latest updates for this project
VSCode extension API documentation
Official documentation for VSCode extension development
MCP official SDK
Official MCP client and server SDK

Installation

Copy the following command to your Client for configuration
{
    "mcpServers": {
        "vscode-internal-commands": {
            "url": "http://localhost:8080/mcp",
            "transport": "http"
        }
    }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
6.7K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
8.8K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
5.9K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
5.4K
4 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
8.9K
5 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
16.6K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
14.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
23.5K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
44.9K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
45.4K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.2K
5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
30.2K
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
14.8K
4.5 points