-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
Problem Description
When executing interactive commands through the shell MCP server, the entire system stalls indefinitely. The timeout mechanism does not work in these cases, leaving the MCP server unresponsive.
Expected Behavior
- Interactive commands should either:
- Detect interactive input requirements and fail gracefully with a clear error message
- Have proper timeout enforcement even for interactive processes
- Support non-interactive execution modes
Actual Behavior
- Commands stall indefinitely
- Timeout settings are ignored
- MCP server becomes unresponsive until the process is manually killed
Impact
This is a critical issue as it can cause the entire MCP server to hang when users accidentally or intentionally trigger interactive commands, making the system unreliable.
Suggested Solution
Implement one or more of the following:
- Detect TTY/interactive requirements before execution
- Force non-interactive mode (e.g., or similar)
- Add process group management to properly kill child processes on timeout
- Add explicit warning when interactive flags are detected
Environment
- Repository: https://github.com/mudler/MCPs
- Component: Shell MCP server
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels