VS Code Extension
🎥Plug & Play
Watch the demo
This tutorial covers how to add the VS Code MCP Server as a Goose extension to enable VS Code integration, file operations, and development workflow management.
Required Setup
Install the VS Code MCP Extension from the Visual Studio Marketplace.
TLDR
- Goose Desktop
- Goose CLI
Command
npx -y vscode-mcp-server
Configuration
info
Note that you'll need Node.js installed on your system to run this command, as it uses npx
.
- Add the VS Code MCP Extension to your VS Code. No additional settings required in VS Code.
- Goose Desktop
- Goose CLI
- Launch the installer
- Press
Yes
to confirm the installation - Click
Save Configuration
- Click
Exit
from the upper left corner
- Run the
configure
command:
goose configure
- Choose to add a
Command-line Extension
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension (Connect to a new extension)
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ● Command-line Extension (Run a local command or script)
│ ○ Remote Extension
└
- Give your extension a name
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension (Connect to a new extension)
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◆ What would you like to call this extension?
│ vscode-mcp
└
- Enter the command
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension (Connect to a new extension)
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ vscode-mcp
│
◆ What command should be run?
│ npx -y vscode-mcp-server
└
- Enter the timeout value (default 300s is recommended)
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension (Connect to a new extension)
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ vscode-mcp
│
◇ What command should be run?
│ npx -y vscode-mcp-server install
│
◆ Please set the timeout for this tool (in secs):
│ 300
│
└
- Choose to add a description. If you select "Yes" here, you will be prompted to enter a description for the extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension (Connect to a new extension)
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ vscode-mcp
│
◇ What command should be run?
│ npx -y vscode-mcp-server install
│
◆ Please set the timeout for this tool (in secs):
│ 300
│
◇ Would you like to add a description?
│ No
│
└
- No additional environment variables are required for basic setup
Example Usage
The VS Code MCP extension enables Goose to interact with your VS Code environment, managing files, projects, and development workflows.
The key strength of the VS Code MCP Server is its ability to:
- Show diffs before making changes
- Integrate file operations with VS Code's interface
- Manage project workspaces
- Provide immediate visual feedback in the editor
note
Every time you start a Goose session with the VS Code MCP server enabled, it checks to see if a matching project is open in VS Code. If not, it will prompt you to open the project before proceeding.
Goose Prompt
Update the contributing guide with instructions on how to start docusaurus dev server