Pty icon

Pty

1

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.

主要功能

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

使用案例

  • System diagnostics through bash scripting
  • Interactive debugging of Haskell applications
  • Performing interactive REPL operations