Parley Term
Controls iTerm2 tabs via AppleScript to open CLI agents, paste prompts, send keys, and close Parley-opened tabs.
Controls tmux sessions/panes using load-buffer and paste-buffer to open CLI agents, send prompts and keys, and manage Parley-opened tabs.
Controls WezTerm panes via the wezterm CLI to open CLI agents, send prompts and keys, and manage Parley-opened tabs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Parley Term open a claude tab and have it add unit tests for auth, then report back"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Parley Term
Peer-to-peer Model Context Protocol (MCP) server for orchestrating interactive coding CLI agents across native terminal tabs.
Parley lets any MCP-capable coding agent (Codex, Claude Code, Antigravity, OpenCode, Grok Build) open real interactive tabs in your terminal, delegate tasks, read structured replies directly from local session logs instead of screen-scraping, and collaborate peer-to-peer while you watch every turn live and step in whenever you want.
Parley imposes no forcedgit worktree layout, no hardcoded default "leader" agent, and no model overrides. Any agent can orchestrate any other agent in your active working directory, passing custom CLI arguments through verbatim.
Why Parley
Visible, interactive collaboration: Agents run inside real terminal tabs you can click into at any moment rather than hidden background subprocesses.
Structured session log reading:
wait_for_replyandread_historyread native local session files (JSONL / structured storage) instead of parsing ANSI terminal scrollback.Multi-terminal native drivers: Auto-detects your host terminal and supports Ghostty 1.3+, iTerm2, WezTerm, Kitty, and tmux.
Safe by default: Uses bracketed/paste input with calibrated pre-Enter delays, blocks self-loop messages, and refuses to close pre-existing tabs you opened yourself.
Related MCP server: termcp
Supported Terminals
Terminal | Platform | Control Mechanism | Auto-Detection Signal |
Ghostty (1.3+) | macOS | Native AppleScript ( |
|
iTerm2 | macOS | Native AppleScript |
|
WezTerm | macOS / Linux / Windows |
|
|
Kitty | macOS / Linux |
|
|
tmux | macOS / Linux / SSH |
|
|
Override auto-detection anytime withPARLEY_DRIVER=ghostty|iterm2|wezterm|kitty|tmux or parley-term --driver <name>.
Supported CLI Agents
Agent | Default Command | Session Log Source |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| User-specified | Tab control only ( |
Quick Start
CC Switch / Standard MCP Client Config
Add parley-term as a standard stdio MCP server in CC Switch, Claude Code, Codex, Antigravity (~/.gemini/config/mcp_config.json), OpenCode, or Grok:
{
"mcpServers": {
"parley": {
"command": "npx",
"args": ["-y", "parley-term@latest"]
}
}
}To force a specific terminal driver:
{
"mcpServers": {
"parley": {
"command": "npx",
"args": ["-y", "parley-term@latest", "--driver", "ghostty"]
}
}
}# Claude Code
claude mcp add parley -- npx -y parley-term@latest
# Codex CLI
codex mcp add parley -- npx -y parley-term@latestTools Reference
Tool | Purpose | Key Parameters |
| Discover active terminal tabs and bound session files | — |
| Open a new tab running a CLI agent without touching existing tabs |
|
| Paste a prompt safely and press Enter after calibrated delay |
|
| Wait on local session logs until turn completion, stall, exit, or timeout |
|
| Read recent structured user/assistant messages from session logs |
|
| Send a control key ( |
|
| Close a Parley-opened tab (external tabs require |
|
Development
npm install
npm run validateEnvironment Variables
Variable | Description |
| Override detected terminal driver ( |
| Custom tmux socket path |
| Override caller tab ID for self-loop protection |
| Emit diagnostic logs to |
Available Tools
7 toolsclose_agentA
Close a terminal tab opened by Parley. Refuses to close pre-existing external tabs unless allowExternal is explicitly true.
Inputs: target (required), allowExternal.
list_agentsA
List active terminal tabs and any tracked or auto-discovered coding CLI agents (Codex, Claude Code, Antigravity, OpenCode, Grok).
Inputs: no named parameters.
open_agentB
Open a new terminal tab running a coding CLI agent without altering existing tabs or creating git worktrees.
Inputs: cwd (required), agent (required), env, args, +2 more.
read_historyB
Read recent structured conversation messages from the target agent local session log.
Inputs: target (required), limit, sessionPath.
send_keyB
Send a control or navigation key (enter, escape, ctrl-c, ctrl-d, tab, up, down) to a target agent tab.
Inputs: key (required), target (required).
send_messageA
Send a prompt or instruction to a target agent tab using safe bracketed/paste input and a calibrated pre-Enter delay.
Inputs: target (required), message (required), sender, pressEnter, +1 more.
wait_for_replyB
Wait for the target agent to finish its current turn by monitoring its structured local session log (no screen scraping).
Inputs: target (required), sessionPath, timeoutSeconds, stallWarningSeconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool maps to a distinct action on the agent-tab resource: discovery, creation, teardown, text input, key input, waiting, and history reading. The only potential overlap is send_message vs send_key, since both inject input into the same tab, but the descriptions clearly separate text prompts from control/navigation keys.
All seven names follow a strict snake_case verb_noun pattern (list_agents, open_agent, send_message, wait_for_reply, read_history, send_key, close_agent). The verb choice is also semantically precise (send vs read vs wait vs open/close), so the pattern is both consistent and informative.
Seven tools is a tight, well-scoped surface for driving a set of terminal agent tabs, with no redundant or filler operations. Each tool covers a necessary step in the interaction loop (discover → open → prompt → wait → read → clean up).
The full lifecycle is covered: listing, spawning, prompting, key input, polling for completion, history retrieval, and guarded teardown. Minor gaps remain—no broadcast/multi-agent fan-out, no tool to inspect whether a tab is idle without waiting on a turn, and no explicit way to query raw screen state if the session log is unavailable.
Maintenance
Related MCP Connectors
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceThe terminal AI agents can drive: a cross-platform desktop terminal (macOS/Linux/Windows, MIT) that runs a local MCP server. Spawn tabs/panes, run commands with structured output, read screens and full scrollback, take scrolling screenshots, record sessions with secret redaction, switch identity profiles. Auto-registers with Claude Code / Codex / Gemini CLI on install.29-
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to interact with real terminal sessions across local and remote hosts, driving multi-turn interactive programs like TUIs, REPLs, and SSH prompts through MCP.76MIT
- AlicenseBqualityBmaintenanceEnables any MCP host to delegate work to multiple coding-agent CLIs such as Codex, Claude Code, and Antigravity as subagents, preserving native sessions and supporting team-based supervision and agent-to-agent messaging.1719 npmApache 2.0

ShellPuppetofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to drive real terminal sessions — starting, typing, reading the screen, waiting on prompts and killing processes — while a human watches and can type into the same live session from a browser. Exposes twelve MCP tools for session control, snapshotting, finding text and sharing viewer links.1,366 npmApache 2.0