VS Code

VS Code

block

Enables AI assistants to directly control VS Code through bidirectional communication, allowing file editing, project navigation, and shell command execution from your AI chat.

761,398 views17Local (stdio)

What it does

  • Execute shell commands in VS Code terminal
  • Create and preview file diffs before applying changes
  • Open files and projects in VS Code editor
  • Navigate between active and context-marked tabs
  • List and switch between available projects
  • Check extension connectivity status

Best for

Developers using AI coding assistants like Claude or GooseCode review and editing workflows with AI assistanceProject setup and navigation through AI chat
Bidirectional VS Code integrationDiff preview with user approvalWorks with Claude Desktop and Goose

Tools (9)

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

Alternatives