cli-mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ALLOWED_DIRYesBase directory for command execution
ALLOWED_FLAGSNoComma-separated list of allowed flags or 'all'-l,-a,--help
COMMAND_TIMEOUTNoCommand execution timeout in seconds30
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_commandAllows 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_rulesShow what commands and operations are allowed in this environment.