pty-mcp-server

phoityne/pty-mcp-server

3.4

If you are the rightful owner of pty-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server is a Haskell-based implementation that allows AI agents to interact with real system environments through terminal-based interfaces using PTY sessions.

The `pty-mcp-server` is a sophisticated tool designed to enable AI agents to dynamically acquire and control PTY (pseudo-terminal) sessions. This allows for interaction with real system environments through terminal-based interfaces, similar to how a human operator would use a terminal. The server communicates via standard input/output (stdio), ensuring secure and straightforward integration with MCP clients. It is particularly useful for automated configuration, inspection, and operation using CLI tools, supporting AI-driven workflows for system development, diagnostics, and remote interaction. The server is ideal for scenarios requiring interactive or stateful terminal workflows, such as Infrastructure as Code (IaC) and system integration across heterogeneous environments and legacy systems.

Features

  • Provides TTY-based control capabilities for AI agents.
  • Enables automated configuration, inspection, and operation using CLI tools.
  • Facilitates AI-driven workflows for system development, diagnostics, and remote interaction.
  • Supports Infrastructure as Code (IaC) scenarios requiring interactive or stateful terminal workflows.
  • Empowers AI agents to support DevOps, IaC, and integration pipelines by operating tools that require human-like terminal interaction.

Tools

  1. pty-connect

    Launches any command through a PTY interface with optional arguments.

  2. pty-terminate

    Forcefully terminates an active pseudo-terminal (PTY) connection.

  3. pty-message

    Sends input to an existing PTY session without needing full context of the current terminal state.

  4. pty-bash

    Starts an interactive Bash shell in a pseudo-terminal.

  5. pty-ssh

    Opens a remote SSH session via PTY, enabling access to remote systems.