Pty

•
41
•

Enables AI agents to dynamically acquire and control PTY connections for interacting with CLI-based tools.

Pty allows AI agents to acquire and control pseudo-terminal (PTY) connections dynamically through the Model Context Protocol (MCP). This enables AI to interact with external CLI-based tools in a structured, automated, and scriptable manner, leveraging PTY interfaces to execute tasks in real environments. It supports various built-in tools like `pty-connect`, `pty-bash`, `pty-ssh`, `pty-cabal`, `pty-stack`, and `pty-ghci`, along with scriptable CLI integration via shell scripts for custom tools. Pty is designed with modularity, maintainability, and scalability in mind, suitable for medium-to-large scale systems and follows Onion Architecture principles.

主要功能

01Operates in stdio mode for MCP communication
02Supports interactive REPL sessions (GHCi, cabal, stack)
03Allows dynamic execution of CLI tools via shell scripts
04Provides built-in tools for PTY connection and command execution
051 GitHub stars
06Enables remote server management via SSH

使用案例

01System diagnostics through bash scripting
02Interactive debugging of Haskell applications
03Performing interactive REPL operations