wcli0
v1.3.1Enhanced MCP server for Windows CLI interactions with advanced configuration and security features
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
execute_command
Execute a command in the specified shell (powershell, cmd, gitbash, bash, wsl) **IMPORTANT GUIDELINES:** 1. ALWAYS use the `workingDir` parameter to specify the working directory 2. Request config of this MCP server configuration using tools 3. Follow limitations taken from configuration 4. Use validate_directories tool to validate directories before execution **Shell-Specific Settings:** **powershell:** - Command timeout: 30s - Max command length: 2000 characters - Injection protection: enabled - Blocked operators: &, |, ;, ` - Path format: Windows-style (C:\Users\...) **cmd:** - Command…
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to execute. Note: Different shells have different blocked commands and operators. |
shell * | string | Shell to use for command execution |
maxOutputLines | number | Maximum number of output lines to return (optional, overrides global setting). Must be a positive integer between 1 and 10,000. |
timeout | number | Command timeout in seconds (optional, overrides global setting). Must be a positive integer between 1 and 3,600 (1 hour). |
workingDir | string | Working directory (optional). Format depends on shell type: - Windows shells: Use C:\Path\Format - Unix/WSL shells: Use /unix/path/format - Mixed shells: Both formats accepted |
get_command_output
Retrieve the full output from a previous command execution. Use this tool when command output was truncated and you need to see the complete result. The executionId is provided in the truncation message of the original command. Parameters: - executionId (required): The execution ID from the truncation message - startLine (optional): 1-based start line (default: 1) - endLine (optional): 1-based end line (default: last line) - search (optional): Regex pattern (case-insensitive) to filter lines - maxLines (optional): Maximum lines to return (default: config value) Examples: ```json { "executio…
| Parameter | Type | Description |
|---|---|---|
executionId * | string | Execution ID from a previous command (shown in truncation message) |
endLine | number | 1-based end line (optional, default last line) |
maxLines | number | Maximum lines to return (default: config maxReturnLines) |
search | string | Regex pattern to filter lines (case-insensitive) |
startLine | number | 1-based start line (optional, default 1) |
get_current_directory
Get the current working directory
set_current_directory
Set the current working directory
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to set as current working directory |
get_config
Get the windows CLI server configuration **Returns:** - `global`: Default settings applied to all shells - `shells`: Enabled shells with any overrides applied Only enabled shells are included and technical fields like executables are omitted.
validate_directories
Check if directories are within allowed paths (only available when restrictWorkingDirectory is enabled) **Validation Modes:** - Global: Validates against server-wide allowed paths (default) - Shell-specific: Validates against a specific shell's allowed paths **Shell-Specific Validation:** Add the "shell" parameter to validate for a specific shell: ```json { "directories": ["/home/user", "/tmp"], "shell": "wsl" } ```
| Parameter | Type | Description |
|---|---|---|
directories * | array | List of directory paths to validate |
shell | string | Optional: Validate against a specific shell's allowed paths instead of global paths |