Back to Home
tsoernes icon

enhanced-terminal-mcp

Verified Safe

by tsoernes

Overview

Provides a robust Model Context Protocol (MCP) server for executing shell commands, managing background jobs, detecting developer tools, and ensuring security within a development environment.

Installation

Run Command
./target/release/enhanced-terminal-mcp

Environment Variables

  • ENHANCED_TERMINAL_SUDO_WRAP
  • ENHANCED_TERMINAL_SUDO_KEEPALIVE
  • ENHANCED_TERMINAL_SUDO_KEEPALIVE_PRIME
  • ENHANCED_TERMINAL_SUDO_ASKPASS
  • ENHANCED_TERMINAL_SUDO_KEEPALIVE_REFRESH_SECS

Security Notes

The server implements a strong default denylist for dangerous commands (`rm -rf /`, `shutdown`, fork bombs, etc.), supports PTY for isolation, and allows custom denylist patterns. Sudo handling with automatic `-n` (non-interactive) wrapping and a keepalive mechanism is a key feature for convenience, but the `!tty_tickets` sudoers configuration (if applied as recommended) explicitly notes a security trade-off by allowing any process running as your user to reuse your sudo timestamp. This requires careful consideration and a reasonable `timestamp_timeout` for maximum security. No obvious hardcoded secrets or 'eval' vulnerabilities were found. Overall, the server is designed with security in mind, but the sudo integration requires responsible configuration.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens3000
Stars0
Forks0
Last Update2025-12-31

Tags

TerminalShell ExecutionJob ManagementSecurity DenylistDeveloper Tools