cli-mcp-server
by MladenSU
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
ALLOWED_DIR | Yes | Base directory for command execution | |
ALLOWED_FLAGS | No | Comma-separated list of allowed flags or 'all' | -l,-a,--help |
COMMAND_TIMEOUT | No | Command execution timeout in seconds | 30 |
ALLOWED_COMMANDS | No | Comma-separated list of allowed commands or 'all' | ls,cat,pwd |
MAX_COMMAND_LENGTH | No | Maximum command string length | 1024 |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
run_command | Allows command (CLI) execution in the directory: /app Available commands: echo, date, whoami Available flags: -i, --version, --verbose Note: Shell operators (&&, |, >, >>) are not supported. |
show_security_rules | Show what commands and operations are allowed in this environment. |