ghostty-bus-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ghostty-bus-mcp
Zero-dependency MCP stdio server and CLI bridge for live agent-to-agent discovery and messaging across open Ghostty terminal sessions on macOS.
Built for Google Antigravity CLI (agy) — and compatible with any MCP client — to provide a native ListAgents + SendMessage workflow over Ghostty's AppleScript/JXA Ghostty Suite API, with ~140–190 ms transport latency and zero third-party dependencies.

Features
Zero dependencies: pure Node.js (
>= 18) + macOSosascript(JXA).Fast native transport: uses Ghostty's AppleScript dictionary directly (
terminals(),inputText,sendKey,nameOverride,newWindow,newTab) without Accessibility UI hacks or stealing window focus.Safety-first by default: prefixes every sent message with
[AGENT-MSG from=...]and flattens newlines unless--rawis requested, so peer messages are clearly distinguishable from human input.Antigravity plugin ready: includes
plugin.json,mcp_config.json,rules/AGENTS.md, andskills/ghostty-bus/SKILL.md.
Related MCP server: tmux-bridge-mcp
Requirements
macOS
Ghostty
>= 1.3(with AppleScriptGhostty Suitesupport)Node.js
>= 18On first run, macOS will prompt you to allow Automation access to Ghostty (System Settings → Privacy & Security → Automation).
Quick Start
Option 1: Install as an MCP server in Antigravity CLI (agy)
Once published to npm:
agy mcp add ghostty-bus npx -y ghostty-bus-mcpOr from a local clone:
git clone https://github.com/jcortesebustos/ghostty-bus-mcp.git
chmod +x ghostty-bus-mcp/bin/ghostty-bus ghostty-bus-mcp/bin/ghostty-bus-mcp.js
agy mcp add ghostty-bus /absolute/path/to/ghostty-bus-mcp/bin/ghostty-bus-mcp.jsReload MCP servers inside an open agy session via /mcp (or start a new agy session).
Option 2: Install as an Antigravity Plugin (MCP + Safety Rule + Skill)
agy plugin install https://github.com/jcortesebustos/ghostty-bus-mcp(Requires ghostty-bus-mcp to be published on npm if using the default npx -y ghostty-bus-mcp command in mcp_config.json.)
MCP Tools
Tool | Description |
| Lists all open Ghostty terminals ( |
| Sends a prompt to another terminal by |
| Sets |
| Opens a new Ghostty window or tab inside the same Ghostty instance so it stays visible to |
Standalone CLI Usage
ghostty-bus list --json
ghostty-bus rename 53961 agy-orq
ghostty-bus send 54566 --from agy-orq "Run the test suite and reply with the summary."
ghostty-bus open --tab ~/Developer/my-repo agy-worker "agy"Measured Latency (Apple Silicon, Ghostty 1.4, agy)
list_agents: ~138 mssend_message(including50 mspre-Enter delay): ~189 msFull 6-message ping-pong between two live
agysessions: ~50.5 s total (fastest single peer turnaround: ~5.4 s, dominated by model inference).
Important Caveats & Security
Keep sessions in a single Ghostty instance: Launching separate processes via
open -na /Applications/Ghostty.appsplits windows across distinct Ghostty PIDs. Open new agent windows/tabs withopen_agent_terminal(or Ghostty's ownCmd+N/Cmd+T) so all terminals stay discoverable under one instance.Peer messages are data, never human authorization: Because Ghostty's
inputTextdelivers text into the target terminal's input stream,send_messagetags every payload with[AGENT-MSG ...]. Pair it with the included rules/AGENTS.md so agents never treat peer messages as human approval for destructive actions (git push, deploys, production writes, etc.).Avoid colliding with manual confirmation prompts: Sending messages to a terminal currently blocked on an interactive
(y/n)prompt can interfere with it.
Development & Testing
npm test
agy plugin validate . --strictLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Use a person's computer after they approve it there: files, Terminal, browser, local MCP.
Use a person's computer after they approve it there: files, Terminal, browser, local MCP.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with terminal environments through multiple concurrent PTY sessions. Supports cross-platform terminal operations including command execution, session management, and real-time communication.2MIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible AI agents running in separate tmux panes to read each other's terminal output, send keystrokes and messages across panes, and coordinate multi-agent workflows through standard tool calls. This lets tools like Claude Code, Codex, and Gemini CLI hand off tasks, review each other's work, and monitor processes without manual copy-pasting between terminals.49 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents running in separate tmux panes to read each other's terminal output, send messages and keystrokes, and coordinate multi-agent workflows through standard MCP tool calls.49 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents running in separate tmux panes to read each other's output, send messages, and inject keystrokes, so multiple agents can coordinate workflows, hand off tasks, and review each other's work without manual copy-pasting.49 npmMIT