terminal-mcp
terminal-mcp 是一个通过 MCP(模型上下文协议)向 AI 助手暴露终端模拟器的开源工具,让 LLM 能够与终端会话共享视图并直接交互。它使用 xterm.js headless 实现精确的 VT100/ANSI 模拟,通过 node-pty 提供跨平台的原生伪终端支持(macOS、Linux、Windows)。适合实时调试 CLI 和 TUI 应用,或让 AI 自主驱动基于终端的工具。支持 Claude Code、Codex、Cursor、opencode 和 Copilot 等客户端,可作为独立 MCP 服务器运行。