terminal_commander
Execute allowlisted Windows CMD or PowerShell commands for development tasks like git operations, npm installs, and directory management with built-in security protections.
Instructions
Executes a safe Windows CMD or PowerShell command on the local machine. Protected by a strict allowlist — only pre-approved commands are permitted. Dangerous patterns (rm -rf, del /s, format, shutdown, registry edits, etc.) are blocked even if the base command is allowed. Allowed commands include: dir, git, node, npm, python, tsc, docker, ipconfig, and more. Use this to run git status, dir, npm install, tsc --noEmit, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The full command to execute. Examples: 'git status', 'dir C:\Projects', 'npm run build', 'ipconfig /all' | |
| working_directory | No | Optional: Absolute path to set as the working directory before executing. Windows example: C:\Users\YourName\Projects\my-repo | |
| use_powershell | No | If true, runs the command via PowerShell instead of CMD. Default: false (uses CMD on Windows, /bin/sh on others). |