We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sonirico/mcp-shell'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
security.yaml•1.16 KiB
# Secure MCP Shell Configuration
# This configuration uses the new secure execution model that prevents command injection
security:
# Enable security features
enabled: true
# Use secure execution (disable shell interpretation)
# This prevents command injection through shell metacharacters
use_shell_execution: false
# Allowed executables - only these commands can be executed
# Use absolute paths for maximum security, or command names for PATH lookup
allowed_executables:
- "ls"
- "pwd"
- "whoami"
- "date"
- "echo"
- "cat"
- "grep"
- "find"
- "wc"
- "head"
- "tail"
- "sort"
- "uniq"
- "/usr/bin/git"
- "/usr/bin/python3"
- "/bin/bash" # Only allow if you trust the arguments
# Legacy settings (deprecated but kept for backwards compatibility)
# These are ignored when use_shell_execution is false
allowed_commands: []
blocked_commands: []
blocked_patterns: []
# Execution limits
max_execution_time: "30s"
max_output_size: 1048576 # 1MB
# Security context
working_directory: "/tmp"
run_as_user: "" # Leave empty to run as current user
# Logging
audit_log: true