cli-mcp-server
The CLI MCP Server is an implementation of a secure MCP server enabling controlled command-line operations. It offers robust security features like command and flag whitelisting, path validation, and shell protection, making it ideal for integrating controlled CLI access into applications.
Overview
This project is a secure MCP server designed for executing command-line operations with stringent security features. Key functionalities include command whitelisting, path validation, execution controls, and security measures such as strict validation, path traversal prevention, shell operation protection, execution timeouts, and directory restrictions.
Features
- Secure command execution
- Configurable command and flag whitelisting
- Path traversal prevention
- Shell operator injection protection
- Timeout settings and length limits
- Detailed error reporting
- Async operations support
Configuration
Configure the server using environment variables to control directories, commands, flags, and timeout settings.