Shell & Workspace Execution (mcp-shell)
Interact with the mcp-shell MCP server (sonirico/mcp-shell v1.1.1). Available tools depend on server configuration:
- Unrestricted mode (
MCP_SHELL_ALLOW_UNSAFE=1): Exposesshell_exec(command, base64=false)only, runningbash -c <command>inworking_directory. - Secure mode (
security.enabled: true, default): Exposes 18–29 typed tools (read/search FS, local Git, opt-in writes, opt-inrun_script) with no rawshell_exec.
Operating Guidelines
- Respect active mode & limits:
- When
shell_execis active, keep commands concise, non-interactive, and withinmax_execution_timeandmax_output_size(which cap stdout and stderr independently and cancel the process on overflow). - Set
base64=trueonshell_execwhen stdout/stderr may contain binary bytes. - Confirm destructive filesystem, Git, or container/service commands before executing unless explicitly instructed.
- When
- When secure mode is active:
- Use typed
git_*and filesystem tools (read_file,glob,grep,diff_files) orrun_script(name)directly; all paths resolve relative toworking_directory(with.gitwrites blocked).
- Use typed
- Choose the right server:
- Prefer
mcp-shellwhen a task needs shell pipelines, CLI utilities, runtime/process inspection, or local workspace Git tools via MCP; preferfilesystem-mcpfor standalone workspace file CRUD when no shell execution is needed.
- Prefer
References
- Unrestricted
shell_exec& secure-mode typed tool catalog: references/tools-reference.md - Modes,
security.yamlenforcement rules, and Landlock sandbox behavior: references/setup-and-config.md


