Brings real interactive terminal sessions to Claude and other AI agents through node-pty and xterm-headless emulation. Handles REPLs (Python, Node, Rails console), SSH sessions, database clients (psql, mysql), Docker exec, and any CLI that needs stdin streaming. Exposes seven tools: create_session spawns a process with full PTY support, send_command pipes input and waits for prompt detection, read_output grabs the current screen buffer, and send_control handles arrow keys and ctrl sequences. Falls back to pipe mode when PTY isn't available. Blocks dangerous patterns (rm -rf, DROP TABLE, curl|bash) behind a separate confirm_dangerous_command tool that requires justification. Solves the problem of agents that can't handle interactive commands because they lack PTY access.
claude mcp add --transport stdio io.github.amol21p-interactive-terminal uvx interactive-terminal