TUI

•
15
•

Programmatically manage and interact with any terminal application through a persistent, emulated pseudo-terminal session.

TUI-mcp offers a powerful framework for interacting with terminal applications, analogous to how browser automation tools interact with web browsers. It launches any TUI app within a managed pseudo-terminal (pty), enabling persistent and interactive sessions. This tool distinguishes itself from basic bash scripts by maintaining application state, rendering full-screen interfaces with ANSI escape codes into readable screenshots or text, handling multi-step conversational flows, and monitoring ongoing processes. It effectively allows agents or scripts to 'sit down at a terminal and use it like a human,' making it suitable for automating complex terminal-based workflows across a wide range of applications.

주요 기능

01Monitor terminal activity, including waiting for specific text patterns or idle states
02Launch and manage terminal applications in a dedicated pseudo-terminal
03Capture terminal output as high-fidelity PNG screenshots or plain text snapshots
04Send keystrokes, text input, and mouse events to active terminal sessions
05Dynamically resize terminal dimensions for any active session
061 GitHub stars

사용 사례

01Orchestrating multiple simultaneous terminal sessions for development, testing, debugging, or build monitoring workflows.
02Interacting with legacy systems, command-line interfaces (CLIs), or ncurses/TUI admin panels that lack modern REST APIs.
03Automating complex remote operations like SSH, log analysis, service restarts, and monitoring without needing custom APIs.