Skip to main content

MCP server for persistent interactive terminal orchestration

Project description

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, create/delete sessions, search output, browse dead sessions, filter history, and switch theme

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 (newline optional)
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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i4z_terminal_mcp-0.5.3.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

i4z_terminal_mcp-0.5.3-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file i4z_terminal_mcp-0.5.3.tar.gz.

File metadata

  • Download URL: i4z_terminal_mcp-0.5.3.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for i4z_terminal_mcp-0.5.3.tar.gz
Algorithm Hash digest
SHA256 a34b05d7be82c2307351d5b153c8695cf5871b2ec61d79aadeb90af51c61b907
MD5 d0d013846bb3856c8602d4f4d8190edc
BLAKE2b-256 2ef05befed4281077374a5d7b28e036b55819dc590df147a4cee650c8384aeb0

See more details on using hashes here.

File details

Details for the file i4z_terminal_mcp-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: i4z_terminal_mcp-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for i4z_terminal_mcp-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cc149497b110648ab9ce670ac94fd1c028d24f8b9a6f51c8907f552c1dff72db
MD5 006f941ff6da07628d76f139aa975edd
BLAKE2b-256 f05b06416f79fe078ace04837520fd7b0f659533bc463df00ab64f5fd83f9f41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page