PTY Manager
Manages persistent local PTY sessions and SSH-backed remote workflows for AI agents requiring continuous terminal and SSH state.
pty-mcp functions as an MCP server, providing AI clients with advanced control over both local PTY sessions and remote SSH workflows. It addresses the limitation of one-shot shell execution by allowing agents to maintain continuous terminal and SSH state, which is crucial for complex, long-running, or stateful processes. This enables seamless management of activities such as keeping dev servers alive, running watch tasks, performing remote debugging, and facilitating near-local remote development, significantly enhancing the capability of AI clients to handle intricate development environments and operations.
主な機能
012 GitHub stars
02Persistent local and remote PTY session management.
03Incremental reading and writing to active terminal sessions with buffered output.
04Comprehensive SSH connection and remote resource management (files, directories, execution).
05Local mounting of remote projects via `sshfs` for hybrid local editing and remote execution.
06Built-in guidance for `sshfs`/FUSE installation to assist agents with remote mounting setup.
ユースケース
01Maintain a local development process (e.g., dev servers, watchers, REPLs) across multiple agent interactions.
02Interactively investigate or operate on remote machines using persistent SSH shell sessions.
03Combine local file editing and search with remote execution capabilities on a mounted project.