Interactive PTY & SSH Terminal
Manages stateful terminal sessions across local shells, SSH connections, and serial ports with persistent execution capabilities.
pty-mcp empowers AI agents with a persistent, stateful terminal environment, allowing for complex multi-step workflows that require maintaining context like directory changes and environment variables. Unlike standard command execution tools, it supports interactive SSH sessions, serial port communication for hardware, and 'ai-tmux' style persistent remote sessions that continue running even after the agent disconnects. It features a unique secure-secret mechanism that uses local GUI dialogs to handle passwords, ensuring sensitive credentials are never exposed to the AI model's context.
Características Principales
01Interactive SSH access with full support for remote prompts and sudo commands
02Stateful terminal sessions that preserve shell environment and working directories
03Secure password handling via localized GUI dialogs that bypass AI context
04Persistent remote execution that survives disconnections via ai-tmux integration
05Direct serial port communication for debugging IoT and networking hardware
069 GitHub stars
Casos de Uso
01Managing long-running build processes that require monitoring across multiple sessions
02Performing remote server maintenance and complex software migrations via SSH
03Interacting with hardware devices or network switches through serial port interfaces