Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| execute_command | Execute a command in the specified shell (powershell, cmd, gitbash, bash, wsl) IMPORTANT GUIDELINES:
Shell-Specific Settings: powershell:
cmd:
gitbash:
bash:
wsl:
Working Directory:
Output Truncation:
Examples: Windows CMD: {
"shell": "cmd",
"command": "dir /b",
"workingDir": "C:\\Projects"
} WSL: {
"shell": "wsl",
"command": "ls -la",
"workingDir": "/home/user",
"maxOutputLines": 50
} Bash: {
"shell": "bash",
"command": "ls -la",
"workingDir": "/home/user",
"maxOutputLines": 50
} Git Bash: {
"shell": "gitbash",
"command": "git status",
"workingDir": "/c/Projects/repo" // or "C:\Projects\repo"
} With custom output limit: {
"shell": "gitbash",
"command": "git log --oneline -50",
"workingDir": "/c/Projects/repo",
"maxOutputLines": 100
} |
| 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:
Examples: { "executionId": "20251125-143022-a8f3" } { "executionId": "20251125-143022-a8f3", "startLine": 100, "endLine": 150 } { "executionId": "20251125-143022-a8f3", "search": "error|failed|exception" } |
| get_current_directory | Get the current working directory |
| set_current_directory | Set the current working directory |
| get_config | Get the windows CLI server configuration Returns:
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:
Shell-Specific Validation: Add the "shell" parameter to validate for a specific shell: {
"directories": ["/home/user", "/tmp"],
"shell": "wsl"
} |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| CLI Server Configuration | Complete server configuration with global and shell-specific settings |
| Global Configuration | Global default settings applied to all shells |
| powershell Shell Configuration | Resolved configuration for powershell shell |
| cmd Shell Configuration | Resolved configuration for cmd shell |
| gitbash Shell Configuration | Resolved configuration for gitbash shell |
| bash Shell Configuration | Resolved configuration for bash shell |
| wsl Shell Configuration | Resolved configuration for wsl shell |
| Security Information | Current security settings and restrictions |
| Command Execution Logs List | List all stored command execution logs with metadata |
| Recent Command Logs | Get most recent command execution logs (supports ?n=<count> and ?shell=<shell>) |