Skip to main content

i4z-terminal-mcp

MCP server that enables AI agents to manage multiple persistent terminal sessions concurrently.

Features

  • Persistent PTY-backed bash shells
  • 9 MCP tools for full terminal lifecycle management
  • Concurrent terminals with isolated async background readers
  • Incremental cursor-based output reads
  • Pattern-based output waiting
  • Signal support (SIGINT, SIGTERM, SIGKILL)
  • Web UI — view terminals live at http://127.0.0.1:9020 (xterm.js)

Install

uv tool install i4z-terminal-mcp
# or
pip install i4z-terminal-mcp
# or from source
uv pip install -e .

Usage

With OpenCode, add to opencode.json:

{
  "mcp": {
    "terminal": {
      "type": "local",
      "command": ["uvx", "i4z-terminal-mcp"],
      "enabled": true
    }
  }
}

Or directly:

i4z-terminal-mcp

Tools

Tool Description
create_terminal Spawn a persistent bash shell
list_terminals List all active sessions
terminal_status Get PID, CWD, alive, timestamps
send_input Write text/commands to stdin
read_output Incremental read via cursor
send_signal Send SIGINT/SIGTERM/SIGKILL
kill_terminal Destroy session and free resources
wait_for_output Block until pattern appears
search_output Search output history buffer

Requirements

  • Python 3.11+
  • Linux or macOS (pexpect PTY support)

Metadata

Release files for i4z-terminal-mcp 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for i4z-terminal-mcp 0.6.0
File Size Uploaded Provenance Actions
i4z_terminal_mcp-0.6.0.tar.gz 9.7 kB Without provenance Details for i4z_terminal_mcp-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for i4z-terminal-mcp 0.6.0
File Interpreter ABI Platform Actions
i4z_terminal_mcp-0.6.0-py3-none-any.whl Python 3 none any Details for i4z_terminal_mcp-0.6.0-py3-none-any.whl

Total release size: 22.3 kB

Release files / i4z_terminal_mcp-0.6.0.tar.gz

Download URL i4z_terminal_mcp-0.6.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
36db1ab2ce27cdeb23692eee99ebc53bec964f00a42d600409f846fd52adcc2a
BLAKE2b-256 checksum
How to use checksums
be17aed96757546f2e9c2cbfd5e665d8372244e25c4681d5b0af90e7897ba70b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / i4z_terminal_mcp-0.6.0-py3-none-any.whl

Download URL i4z_terminal_mcp-0.6.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d685cbf3e93156dba0c2f2604dba8c47c265408213706bd08d864ccaf498442c
BLAKE2b-256 checksum
How to use checksums
56ac314c4650e0976335acd983703c1169a5447d963e061062e06bad2d72d627
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for i4z-terminal-mcp 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page