dynamic-shell-server

dynamic-shell-server

19

Dynamic Shell Command MCP Server is a Model Context Protocol server designed to securely execute shell commands using a dynamic approval process. It ensures security with user approval and audit logging, providing a protected and controlled environment for command execution.

How does the command approval system work?

When a command is executed for the first time, the user is prompted to approve it. The user can choose to allow the command once, remember it for future use, or deny execution.

Where are approved commands stored?

Approved commands are stored in the approved_commands.json file located in the ~/.config/mcp-shell-server/ directory.

What happens if a command takes too long to execute?

The server has a 5-minute timeout protection to prevent long-running processes. If a command exceeds this time, it will be terminated.

Can I revoke approval for a command?

Yes, you can revoke approval for a command using the revoke_command_approval tool, which removes the command from the approved list.

Is there a log of executed commands?

Yes, all executed commands are logged in the audit.log file, providing a detailed execution history.