cli-mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ALLOWED_DIRYesBase directory for command execution (Required)
ALLOWED_FLAGSNoComma-separated list of allowed flags or 'all'-l,-a,--help
COMMAND_TIMEOUTNoCommand execution timeout (seconds)30
ALLOWED_COMMANDSNoComma-separated list of allowed commands or 'all'ls,cat,pwd
MAX_COMMAND_LENGTHNoMaximum command string length1024

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
run_command

Allows command (CLI) execution in the directory: /app

Available commands: pwd, cat, echo, find, ls, grep Available flags: -l, -h, --help, -v, -a, -r

Note: Shell operators (&&, |, >, >>) are not supported.

show_security_rules

Show what commands and operations are allowed in this environment.