vscode-mcp-server

execute_shell_command

Execute shell commands directly in VS Code's integrated terminal, capturing output and running commands within the user's environment without leaving the editor.

Instructions

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.

Input Schema

NameRequiredDescriptionDefault
commandYesThe shell command to execute
cwdNoOptional working directory for the command. Defaults to the project root.
targetProjectPathYesPath to the project folder we are working in

Input Schema (JSON Schema)

{ "properties": { "command": { "description": "The shell command to execute", "type": "string" }, "cwd": { "description": "Optional working directory for the command. Defaults to the project root.", "type": "string" }, "targetProjectPath": { "description": "Path to the project folder we are working in", "type": "string" } }, "required": [ "command", "targetProjectPath" ], "type": "object" }

You must be authenticated.

Other Tools from vscode-mcp-server

Related Tools

ID: ohvq7n4onu