AN

alejandroqh/npcterm

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

46 stars 2 forks Качество 61 Тренд 0Apache-2.0

alejandroqh/npcterm - кандидат на сервер MCP, импортированный из https://github.com/alejandroqh/npcterm.

Обзор

alejandroqh/npcterm - кандидат на сервер MCP, импортированный из https://github.com/alejandroqh/npcterm.

Обзор (машинный перевод)

Конечный инструмент ремня безопасности. Безголовый эмулятор терминала в памяти для агентов ИИ, выставленный через MCP (Model Context Protocol).

NPCterm предоставляет агентам ИИ** полный доступ к терминалу**. Возможность создавать оболочки, запускать произвольные команды, читать вывод экрана, отправлять нажатия клавиш и взаимодействовать с приложениями TUI. Это одна из самых мощных возможностей, которую вы можете предоставить агенту ИИ: это фактически эквивалентно предоставлению ему доступа к компьютеру.

Использовать с осторожностью. Терминал представляет собой неограниченную среду исполнения. Любая команда, которую может ввести агент, будет работать. Это включает в себя установку программного обеспечения, изменение файлов, доступ к сети и все, что может сделать пользователь оболочки. Развертывайте NPCterm в песочнице или контролируемых средах и всегда применяйте принцип наименьших привилегий. Не подвергайте его ненадежным агентам без соответствующих гарантий.

Полный системный мониторинг с помощью btop, запускаемый, читаемый и полностью управляемый агентом ИИ с помощью инструментов MCP.

Особенности

** Полная эмуляция терминала ANSI/VT100** с нерестом PTY через portable-pty 17 MCP-инструментов для полного контроля над JSON-RPC Построен на TurboMCP 3.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

NPCterm

The ultimate harness agent tool. A headless, in-memory terminal emulator for AI agents, exposed via MCP (Model Context Protocol).

NPCterm gives AI agents full terminal access. The ability to spawn shells, run arbitrary commands, read screen output, send keystrokes, and interact with TUI applications. This is one of the most powerful capabilities you can grant an AI agent: it is effectively equivalent to giving it access to a computer.

Use with precautions. A terminal is an unrestricted execution environment. Any command the agent can type, the system will run. This includes installing software, modifying files, accessing the network, and anything else a shell user can do. Deploy NPCterm in sandboxed or controlled environments, and always apply the principle of least privilege. Do not expose it to untrusted agents without appropriate safeguards.

Full system monitoring with btop, launched, read, and navigated entirely by an AI agent through MCP tools.

Features

  • Full ANSI/VT100 terminal emulation with PTY spawning via portable-pty
  • 17 MCP tools for complete terminal control over JSON-RPC stdio
  • Built on TurboMCP 3.0 – production-grade MCP SDK with auto-generated tool schemas
  • Multi-version MCP protocol support – compatible with clients using 2024-11-05, 2025-06-18, or 2025-11-25 spec versions
  • Incremental screen reads with dirty-row tracking for efficient output consumption
  • Process state detection: knows when a command is running, idle, waiting for input, or exited
  • Event system: ring buffer of terminal events (CommandFinished, WaitingForInput, Bell, etc.)
  • AI-friendly coordinate overlay for precise screen navigation
  • Mouse, selection, and scroll support for interacting with TUI applications
  • Multiple concurrent terminals with short 2-character IDs
  • Built-in web debug viewer – live terminal rendering and activity log in the browser, controllable via MCP tools

Install

cargo install npcterm

Install for any AI CLI / IDE

Installs the binary and auto-configures it for every MCP client detected: Claude Code, Claude Desktop, Codex, OpenCode, OpenClaw.

curl -fsSL https://raw.githubusercontent.com/alejandroqh/marketplace/main/h39.sh | bash

Pre-built binaries

Pre-built binaries are available in the dist/ directory for:

  • macOS ARM64 (Apple Silicon) / x64 (Intel)
  • Linux ARM64 / x64
  • Windows x64

Download the binary for your platform and place it somewhere in your PATH.

Build from source

cargo build --release

The binary will be at target/release/npcterm.

MCP config

Add to your MCP client config:

{
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "npcterm": { "command": "npcterm" } } }