wcli0

v1.3.1
wcli0 Checked 1 day ago Published 6 months ago

Enhanced 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…

ParameterTypeDescription
command *stringCommand to execute. Note: Different shells have different blocked commands and operators.
shell *stringShell to use for command execution
maxOutputLinesnumberMaximum number of output lines to return (optional, overrides global setting). Must be a positive integer between 1 and 10,000.
timeoutnumberCommand timeout in seconds (optional, overrides global setting). Must be a positive integer between 1 and 3,600 (1 hour).
workingDirstringWorking 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…

ParameterTypeDescription
executionId *stringExecution ID from a previous command (shown in truncation message)
endLinenumber1-based end line (optional, default last line)
maxLinesnumberMaximum lines to return (default: config maxReturnLines)
searchstringRegex pattern to filter lines (case-insensitive)
startLinenumber1-based start line (optional, default 1)

get_current_directory

Get the current working directory

set_current_directory

Set the current working directory

ParameterTypeDescription
path *stringPath 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" } ```

ParameterTypeDescription
directories *arrayList of directory paths to validate
shellstringOptional: Validate against a specific shell's allowed paths instead of global paths