mcp-interactive-terminal
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_TERMINAL_SANDBOX | No | Enable OS-level kernel sandboxing | false |
| MCP_TERMINAL_AUDIT_LOG | No | Path to JSON audit log file | |
| MCP_TERMINAL_LOG_INPUTS | No | Log all inputs to stderr (for debugging) | false |
| MCP_TERMINAL_MAX_OUTPUT | No | Max output chars per read | 20000 |
| MCP_TERMINAL_IDLE_TIMEOUT | No | Auto-close idle sessions (ms, default 30min, 0 = disabled) | 1800000 |
| MCP_TERMINAL_MAX_SESSIONS | No | Max concurrent sessions | 10 |
| MCP_TERMINAL_ALLOWED_PATHS | No | Comma-separated paths sessions can access | |
| MCP_TERMINAL_REDACT_SECRETS | No | Redact AWS keys, tokens, private keys in output | false |
| MCP_TERMINAL_DEFAULT_TIMEOUT | No | Default wait timeout (ms) | 5000 |
| MCP_TERMINAL_ALLOWED_COMMANDS | No | Comma-separated allowlist (if set, only these are allowed) | |
| MCP_TERMINAL_BLOCKED_COMMANDS | No | Comma-separated blocklist | |
| MCP_TERMINAL_DANGER_DETECTION | No | Enable dangerous command confirmation flow | true |
| MCP_TERMINAL_SANDBOX_ALLOW_WRITE | No | Writable paths in sandbox mode | /tmp |
| MCP_TERMINAL_SANDBOX_ALLOW_NETWORK | No | Allowed network domains in sandbox | * |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_sessionA | Spawn an interactive terminal session (REPL, shell, database client, SSH, etc.). Returns a session_id for subsequent commands. |
| send_commandA | Send a command/input to an interactive session and wait for output. Appends newline automatically. Returns clean text output (no ANSI codes). If a dangerous command is detected, you must use confirm_dangerous_command first. |
| read_outputA | Read the current terminal screen without sending any input. Safe read-only operation. |
| list_sessionsA | List all active interactive terminal sessions. Safe read-only operation. |
| close_sessionB | Close/kill an interactive terminal session. |
| send_controlA | Send a control character or special key to a session (e.g., ctrl+c to interrupt, ctrl+d to send EOF, arrow keys, tab for completion). |
| confirm_dangerous_commandA | Execute a command that was flagged as dangerous by send_command. Requires a justification explaining WHY the command is necessary. This is a separate confirmation step for safety. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/amol21p/mcp-interactive-terminal'
If you have feedback or need assistance with the MCP directory API, please join our Discord server