
elleryfamilia/terminal-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
elleryfamilia/terminal-mcp — это кандидат-сервер MCP, импортированный из https://github.com/elleryfamilia/terminal-mcp.
Обзор
elleryfamilia/terminal-mcp — это кандидат-сервер MCP, импортированный из https://github.com/elleryfamilia/terminal-mcp.
Обзор (машинный перевод)
Позвольте ИИ видеть и взаимодействовать с вашим терминалом.
Terminal MCP предоставляет LLM общий обзор вашей сессии терминала. Идеально подходит для отладки CLI и TUI-приложений в реальном времени или для автономного управления терминальными инструментами.
Установка
Или через скрипт установки:
Настройте свои AI-инструменты
Подключите terminal-mcp к конфигурации MCP каждого AI-инструмента, установленного на вашем компьютере, за один раз:
Поддерживаемые клиенты (каждый получает правильную схему для своего формата конфигурации):
| Клиент | Конфигурационный файл | Формат |
|---|---|---|
| OpenAI Codex CLI | ~/.codex/config.toml |
TOML |
| GitHub Copilot CLI | ~/.copilot/mcp-config.json |
JSON |
| Gemini CLI | ~/.gemini/settings.json |
JSON |
| OpenCode | ~/.config/opencode/opencode.json |
JSON |
| Код Клода | ~/.claude.json |
JSON |
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows) |
JSON |
.bak любой уже существующей конфигурации записывается рядом с оригиналом при первой установке. Запись terminal-mcp добавляется без нарушения других серверов или несвязанных ключей; повторное запуск setup — неоперативный режим.
Апгрейд
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Let AI see and interact with your terminal.
Terminal MCP gives LLMs a shared view of your terminal session. Perfect for debugging CLIs and TUI applications in real-time, or letting AI drive terminal-based tools autonomously.
Install
npm install -g @ellery/terminal-mcp
Or via install script:
curl -fsSL https://raw.githubusercontent.com/elleryfamilia/terminal-mcp/main/install.sh | bash
Configure your AI tools
Wire terminal-mcp into the MCP config of every AI tool installed on your machine in one shot:
terminal-mcp setup # detect & install for all detected tools
terminal-mcp setup --dry-run # preview without writing
terminal-mcp setup --client claude-code,gemini # specific tools only
terminal-mcp setup --uninstall # remove the entry from each tool
Supported clients (each gets the right schema for its config format):
| Client | Config file | Format |
|---|---|---|
| OpenAI Codex CLI | ~/.codex/config.toml |
TOML |
| GitHub Copilot CLI | ~/.copilot/mcp-config.json |
JSON |
| Gemini CLI | ~/.gemini/settings.json |
JSON |
| OpenCode | ~/.config/opencode/opencode.json |
JSON |
| Claude Code | ~/.claude.json |
JSON |
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows) |
JSON |
A .bak of any pre-existing config is written next to the original on first install. The terminal-mcp entry is added without disturbing other servers or unrelated keys; running setup again is a no-op.
Upgrading
npm install -g @ellery/terminal-mcp@latest
Interactive mode will print a banner on next launch when a newer release is available — terminal-mcp checks the npm registry once per day and caches the result. Headless and MCP-client modes never check or print anything (so MCP stdio stays clean). To opt out entirely, set NO_UPDATE_NOTIFIER=1 or pass --no-update-notifier.
Features
- Full Terminal Emulation: Uses xterm.js headless for accurate VT100/ANSI emulation
- Cross-Platform PTY: Native pseudo-terminal support via node-pty (macOS, Linux, Windows)
- MCP Protocol: Implements Model Context Protocol for AI assistant integration
- Session Recording: Record terminal sessions to asciicast format for playback with asciinema
- Simple API: Nine tools covering input, observation, recording, and session lifecycle
- Headless Mode: Run as a standalone MCP server without a TTY — ideal for CI, containers, and non-interactive environments
- Multi-Session: Run multiple isolated terminal sessions in one process, addressed by
sessionId - Sandbox Mode: Optional security restrictions for filesystem and network access
Building from Source
npm install
npm run build
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"terminal": {
"command": "terminal-mcp"
}
}
}