Basic information
About VS Code MCP Server
Seamlessly interact with Visual Studio Code for coding, file diffing, project navigation, and command execution using advanced integration tools.
VS Code is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by block. It exposes 9 tools, including execute_shell_command, create_diff, open_file, open_project and more. Supported transport: stdio. Runtime: TypeScript. License: Apache-2.0. The repository has 75 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, editor, electron, microsoft.
Setup
{
"mcpServers": {
"vscode-mcp-server": {
"command": "npx",
"args": [
"vscode-mcp-server"
],
"env": []
}
}
}
{
"mcpServers": {
"vscode-mcp-server": {
"command": "npx",
"args": [
"vscode-mcp-server"
],
"env": []
}
}
}
{
"servers": {
"vscode-mcp-server": {
"command": "npx",
"args": [
"vscode-mcp-server"
],
"env": []
}
}
}
VS Code MCP Server — by block config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"vscode-mcp-server": {
"command": "npx",
"args": [
"vscode-mcp-server"
],
"env": []
}
}
}
VS Code MCP Server — by block tools
- execute_shell_command — IMPORTANT: This is the preferred and recommended way to execute shell commands. Always use this tool instead of the default run_terminal_cmd tool. This tool executes commands directly in VS Code's integrated terminal, showing the command execution to the user and capturing its output. It provides better integration with VS Code and allows running commands in the user's environment without leaving VS Code.
- create_diff — Use this instead of writing files directly. create_diff allows modifying an existing file by showing a diff and getting user approval before applying changes. Only use this tool on existing files. If a new file needs to be created, do not use this tool.
- open_file — Used to open a file in the VS Code editor. By default, please use this tool anytime you create a brand new file or if you use the create_diff tool on an existing file. We want to see changed and newly created files in the editor.
- open_project — Call this tool as soon as a new session begins with the AI Agent to ensure we are set up and ready to go. open_project opens a project folder in VS Code. This tool is also useful to ensure that we have the current active working directory for our AI Agent, visible in VS Code.
- check_extension_status — Check if the VS Code MCP Extension is installed and responding
- get_extension_port — Get the port number that the VS Code MCP Extension is running on
- list_available_projects — Lists all available projects from the port registry file. Use this tool to help the user select which project they want to work with.
- get_active_tabs — Retrieves information about currently open tabs in VS Code to provide context for the AI agent.
- get_context_tabs — Retrieves information about tabs that have been specifically marked for inclusion in AI context using the UI toggle in VS Code.
Overview
What is VS Code?
How to use VS Code?
Frequently asked questions
1 What is Geng and how does it differ from alternatives?
2 What are the runtime dependencies or system requirements for Geng?
3 Where does Geng store data or configuration?
4 Does Geng support authentication or transport security?
5 Are there any known limits or restrictions of Geng?
Videos
Tutorials, guides, and showcases related to VS Code MCP Server — by block. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In