terminal-control.toml•1.57 kB
# Terminal Control MCP Server Configuration
# Modern TOML configuration with all default values
[web]
enabled = false
host = "0.0.0.0"
port = 8080
# external_host = "" # Optional external hostname for URLs
[security]
level = "high" # off, low, medium, high
max_calls_per_minute = 60
max_sessions = 50
[session]
default_shell = "bash"
timeout = 30
isolate_history = true # Prevent terminal sessions from polluting system history
history_file_prefix = "mcp_session_history" # Prefix for isolated history files
[logging]
level = "INFO" # DEBUG, INFO, WARNING, ERROR
[terminal]
width = 120
height = 30
close_timeout = 5.0
process_check_timeout = 1.0
polling_interval = 0.05
send_input_delay = 0.1
screen_content_delay = 1.0
# Terminal emulator configuration (ordered by preference)
emulators = [
# GNOME/GTK
{ name = "gnome-terminal", command = ["gnome-terminal", "--"] },
# KDE
{ name = "konsole", command = ["konsole", "-e"] },
# XFCE
{ name = "xfce4-terminal", command = ["xfce4-terminal", "-e"] },
# Elementary OS
{ name = "io.elementary.terminal", command = ["io.elementary.terminal", "-e"] },
# Generic
{ name = "x-terminal-emulator", command = ["x-terminal-emulator", "-e"] },
{ name = "xterm", command = ["xterm", "-e"] },
# macOS
{ name = "Terminal", command = ["open", "-a", "Terminal"] },
# Fallback
{ name = "alacritty", command = ["alacritty", "-e"] },
{ name = "kitty", command = ["kitty"] },
{ name = "terminator", command = ["terminator", "-e"] },
]