Onda MCP
This MCP server lets AI agents control an Onda terminal: manage panes, terminals, tabs, workspaces, and windows; observe/send terminal I/O; and orchestrate multi-agent sessions.
Inspect agent context and Onda state with
onda_context,onda_status,onda_app_info, andonda_ping.Split, list, close, and focus panes; list terminals and filter by window/workspace.
Run commands, send raw text or semantic keys, kill terminals, and spawn binaries with exact argv.
Read terminal output, subscribe/poll/unsubscribe from output streams, list listeners, and wait for regex patterns.
Create/list/close/focus/exec tabs, including exact-argv launches with preserved quoting/newlines.
Create/list/focus/locate workspaces; add ready terminals; inspect layout; set tiling layouts; unmount workspaces.
List/create/focus windows; mount workspaces between windows; capture window screenshots.
Atomically launch agent sessions in a target workspace/window with
onda_launch_session, including interactiveask-userplacement.Coordinate multi-agent workflows by spawning Claude/other agents, then sending/polling terminal input and output.
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., "@Onda MCP run 'npm install' in a new tab"
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.
@mindfullabai/onda-mcp
MCP server to control Onda terminal from AI agents (Claude Code, Cursor, Windsurf, etc.)
31 tools across 7 categories let AI agents split panes, run commands, manage tabs and workspaces, coordinate across multiple windows, and orchestrate multi-agent workflows -- all through the standard Model Context Protocol.
Since v0.2.0 Onda MCP is multi-window aware: agents can discover windows, locate workspaces, address terminals unambiguously (each entry carries windowId + workspaceId + paneId), and launch full Claude/agent sessions in one atomic call with the onda_launch_session macro.
Requirements
Onda terminal running with IPC server active (automatic since v1.6)
Node.js 18+
Related MCP server: hyperpanes-mcp
Quick Start
Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"onda": {
"command": "npx",
"args": ["-y", "@mindfullabai/onda-mcp"]
}
}
}Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"onda": {
"command": "npx",
"args": ["-y", "@mindfullabai/onda-mcp"]
}
}
}Cursor / Windsurf
Same MCP config format as above.
Available Tools
Pane Management
Tool | Description |
| Split the active pane. Creates a new terminal beside ( |
| List all panes of the focused window. Returns pane IDs, terminal IDs, and content types. |
| Close a specific pane by ID. If no ID given, closes the active pane. |
| Focus (activate) a specific pane by its ID. |
| Re-attach a live terminal that no pane shows (an orphan) to a new pane of a mounted workspace, without a new shell. |
Terminal Control
Tool | Description |
| Run a command in a specific terminal (sends command + newline). |
| Send raw text to a terminal without appending a newline. Use for interactive input or key sequences. |
| List terminals with |
| Spawn a binary inside an existing pane via |
| Kill a terminal process by ID. |
Workspace Management
Tool | Description |
| List workspaces with |
| Create a new workspace. Workspaces group tabs by project. |
| Switch to a workspace by ID. |
| Add a new terminal pane to a workspace (tiled mode). Returns |
| Set the workspace tiling layout: |
| Resolve a workspace by |
Window (multi-window)
Tool | Description |
| List Onda main windows. Each entry: |
| Open a fresh empty main window. Returns |
| Bring a window to the foreground (restore + raise + focus). When |
| Mount a workspace in a specific window. Idempotent; orchestrates an atomic transfer if the workspace is currently owned by another window. Returns |
| Remove a workspace from whichever window currently hosts it. The workspace continues to exist globally — only its on-screen mounting is dropped. Returns |
Macro
Tool | Description |
| Atomic "ensure workspace + mount in target window + add terminal + spawn |
System
Tool | Description |
| Get the Onda context for the current AI agent (paneId, tabId, workspaceId). Call this first. |
| Get current session state: active workspace, pane, and their details. |
| Get Onda app info: version, process ID. |
| Health check -- verify Onda is running and responsive. |
Environment Variables
Variable | Description | Default |
| Path to Onda IPC socket |
|
| Pane ID where agent is running | auto-detected |
| Tab ID where agent is running | auto-detected |
| Workspace ID | auto-detected |
| Set to | auto-detected |
Agent-bus pattern (since v0.2.0)
Typical flow when an agent in window A delegates a task to another agent in workspace X (which may or may not be already mounted somewhere):
// 1. Try a fully-automatic launch
onda_launch_session({
workspace: { name: "brandart-agentic-platform" },
bin: "claude",
prompt: "Scaffold modulo memoria — segui il brief #BAP-2026-05-20 ...",
placement: "ask-user"
})
// → If multiple windows exist, the tool returns without acting:
{
"needsDecision": true,
"reason": "placement: ask-user",
"options": [
{ "placement": "window:w-abc12345", "label": "Window w-abc1234 (current, focused)" },
{ "placement": "window:w-def67890", "label": "Window w-def6789" },
{ "placement": "new-window", "label": "Open in a new window" }
],
"workspace": { "id": "ws-...", "name": "brandart-agentic-platform", "rootPath": "/Users/mario/Projects/06-Brandart/brandart-agentic-platform" }
}
// 2. Host agent shows options to the human, gets choice, re-invokes:
onda_launch_session({ /* same args */, placement: "window:w-abc12345" })
// → { windowId, workspaceId, terminalId, paneId, pid }
// Claude is now running in that pane with the brief as its initial prompt.After launch, the caller can keep talking to the spawned agent via onda_terminal_send / onda_terminal_run using the returned terminalId, or use onda_terminal_list (now enriched with workspaceId/windowId) to disambiguate which terminal belongs to which session.
Architecture
Communicates with Onda via Unix domain socket
Protocol: JSON-RPC 2.0 over newline-delimited JSON
Socket path:
~/.config/onda/onda.sockTransport: stdio (standard MCP transport)
AI Agent <--stdio--> onda-mcp <--Unix socket--> Onda TerminalLicense
MIT
Available Tools
39 toolsonda_app_infoA
Get Onda app info: version, process ID.
Inputs: no named parameters.
onda_contextA
Get the Onda context for the terminal where this AI agent is running. Returns paneId, tabId, workspaceId. Use this FIRST to know which pane/tab you are in before splitting or sending commands.
Inputs: no named parameters.
onda_launch_sessionA
High-level macro: ensure workspace exists → mount it in target window → add a terminal pane → spawn bin with args (or prompt as single argv). Atomic from the agent's point of view. Supports placement modes: "auto" (default), "current-window", "window:", "new-window", "ask-user" (interactive — see below).
Placement "ask-user": the tool does NOT proceed. Instead returns { needsDecision: true, options: [{placement, label}], workspace }. The host agent must surface the choice to the human user and re-invoke this tool with placement set to a concrete value (e.g. "window:w-abc").
On success returns { windowId, workspaceId, terminalId, paneId, pid }.
Inputs: bin (required), workspace (required), args, prompt, +2 more.
onda_pane_closeA
Close a specific pane by ID. If no ID given, closes the active pane.
Inputs: id.
onda_pane_focusA
Focus (activate) a specific pane by its ID.
Inputs: id (required).
onda_pane_listA
List all panes in the active tab. Returns pane IDs, terminal IDs, and content types. Use this to discover available terminals before sending commands.
Inputs: no named parameters.
onda_pane_splitA
Split the active pane in Onda terminal. Creates a new terminal beside or below the current one. Use this to set up parallel workspaces for multi-agent workflows.
Inputs: cwd, shell, direction.
onda_pingA
Health check - verify Onda is running and responsive.
Inputs: no named parameters.
onda_statusA
Get current Onda session state: active workspace, active tab, active pane, and their details. Use this to understand the current context before taking actions.
Inputs: no named parameters.
onda_tab_closeA
Close a tab by ID. If no ID given, closes the active tab.
Inputs: id.
onda_tab_execA
Open a new tab and spawn a process directly with exact argv (bypasses shell parsing). Use this when you need to pass multi-line strings or special characters as a single argument — e.g. launching claude with a structured preamble. The process replaces the shell in the tab's PTY: argv is passed to execve() as-is, so embedded newlines, quotes, and dollar signs are preserved verbatim.
Inputs: bin (required), cwd, args, workspaceId.
onda_tab_focusA
Switch to (focus) a specific tab by ID.
Inputs: id (required).
onda_tab_listA
List all tabs with their IDs, titles, active state, and workspace.
Inputs: no named parameters.
onda_tab_newA
Create a new tab in Onda. Each tab has its own layout of panes. Use this to isolate different workstreams.
Inputs: cwd, shell.
onda_terminal_killB
Kill a terminal process by ID.
Inputs: id (required).
onda_terminal_listA
List active terminals. Each entry: { id, pid, cwd, alive, workspaceId, paneId, tabId, windowId }. Use the optional filters to scope the list. Essential to disambiguate which terminal belongs to which workspace/window when many are alive — no more cwd reverse-lookup.
Inputs: windowId, workspaceId.
onda_terminal_listenersA
List currently attached listeners for a terminal. Returns name + sessionId + timestamps. Used to inspect who is observing a terminal (introspection / debugging).
Inputs: id (required).
onda_terminal_pollA
Long-poll a subscribed terminal session for new output. Blocks up to timeoutMs (default 15000) waiting for new chunks. Returns immediately if data is already pending. Each call advances the cursor; only data emitted after the last poll is returned. Use in a loop: subscribe -> poll -> poll -> ... -> unsubscribe.
Inputs: sessionId (required), timeoutMs.
onda_terminal_readA
Read recent output of a terminal (ring buffer ~200 KB / ~1 MB if a listener is attached). Returns the current buffer content plus byte total and timestamps. Use to see what a terminal has printed without subscribing to a live stream. Lazily attaches a passive tap on first call — no impact on the terminal itself.
Inputs: id (required), lines.
onda_terminal_runA
Run a command in a specific terminal (sends command + newline). Use this to execute shell commands, launch processes, or start other AI agents in separate terminals.
Inputs: id (required), command (required).
onda_terminal_sendA
Send raw text to a terminal without appending a newline. Use for interactive input, partial commands, or key sequences.
Inputs: id (required), text (required).
onda_terminal_send_keysA
Send semantic key sequences to a terminal (Ctrl+C, Up, Enter, Esc, F5, Tab, ...). Each entry in keys is mapped to the appropriate stdin bytes. Supports Ctrl+, Arrow keys, Function keys F1-F12, Enter/Tab/Esc/Backspace/Delete/Home/End/PageUp/PageDown/Insert/Space, and raw literal text as fallback. Use this for tmux-like control instead of onda_terminal_send when you need to type special keys.
Inputs: id (required), keys (required).
onda_terminal_spawnA
Spawn a binary inside an EXISTING pane by writing exec bin args... into its PTY. Preserves multi-line/quoted argv elements verbatim (each one becomes a single execve argv entry after shell quoting). Use this to launch claude (or any agent) with a structured prompt inside a workspace pane created via onda_workspace_add_terminal. Either paneId or workspaceId is required; if workspaceId, the first terminal pane in that workspace is used.
Inputs: bin (required), args, paneId, workspaceId.
onda_terminal_subscribeA
Attach a long-lived listener to a terminal's output stream. Returns a sessionId for use with onda_terminal_poll. Also returns the current buffer snapshot so the listener has full context. Cap of 4 concurrent listeners per terminal. The listener's name is shown in the Onda UI as a presence indicator.
Inputs: id (required), listener (required).
onda_terminal_unsubscribeA
Detach a listener session. Idempotent. Always call this when done to free the ring buffer (drops back to idle size after the last subscriber leaves).
Inputs: sessionId (required).
onda_terminal_wait_forA
Block until a regex pattern matches new terminal output, or timeout. Useful to synchronize scripted command sequences: run command -> wait for prompt -> run next command. Pattern is a JavaScript regex string; flags default to "m" (multiline). Returns { matched: bool, match?: string }.
Inputs: id (required), pattern (required), flags, timeoutMs.
onda_window_focusA
Bring a specific main window to the foreground (restore if minimized, raise, focus). When windowId is omitted, focuses the primary window. Returns { success, windowId }. Use after mounting a workspace remotely, or to wake Onda from a background CLI subagent.
Inputs: windowId.
onda_window_listA
List all Onda main windows. Returns { windows: [{ windowId, isFocused, title, workspaceIds[], activeWorkspaceId, uiMode }] }. Use this before placing a new workspace/terminal to know what windows exist and which workspace lives in which window.
Inputs: no named parameters.
onda_window_mount_workspaceA
Mount a workspace in a specific window. Idempotent when the workspace is already there. If the workspace is currently mounted in another window, orchestrates an atomic transfer via the unmount-request flow (same path the in-app "Move workspace here?" dialog uses). Returns { success, workspaceId, windowId, transferred }. Pass direction to control how the new tile is spliced into the mosaic (mirrors the Cmd+P picker: Enter = down, Cmd+Enter = right).
Inputs: windowId (required), workspaceId (required), direction, anchorWorkspaceId.
onda_window_newA
Open a fresh empty main window (analogue of File > New Window). Returns { windowId }. Useful when an agent needs to host a workspace in a brand new window without contaminating existing ones.
Inputs: no named parameters.
onda_window_screenshotA
Capture a PNG/JPEG snapshot of an Onda main window for visual debugging. Returns either a base64 dataUrl or a tempfile path. Use this when you (the agent) need to SEE what the user sees — verifying a layout change, confirming a feature renders correctly, or investigating UI glitches. Returns { dataUrl | path, width, height, windowId, capturedAt }. Defaults: focused window, PNG format, dataUrl=true.
Inputs: format, dataUrl, quality, windowId.
onda_workspace_add_terminalA
Add a new terminal pane to a workspace and wait for its PTY to be ready. Returns { success, terminalId, paneId, workspaceId, windowId, ready }.
Placement: by default the new pane is appended via react-mosaic's built-in logic (typically "split right"). For deterministic placement, pass direction and (optionally) relativeToPaneId — this routes through splitPane and gives you explicit control.
CALL onda_workspace_layout FIRST when you care about placement: it returns the current mosaic tree + active pane + viewport, so you can decide whether to stack "down" (output-heavy panes) or split "right" (parallel-watch panes).
Inputs: cwd, shell, direction, workspaceId, +2 more.
onda_workspace_createB
Create a new workspace. Workspaces group tabs by project.
Inputs: name (required), rootPath (required), color.
onda_workspace_focusB
Switch to a workspace by ID.
Inputs: id (required).
onda_workspace_layoutA
Read the current layout of a workspace: mosaic tree, list of pane IDs, active pane, viewport dimensions, and per-pane cwd. Use this BEFORE spawning a new terminal to decide where to place it (right/down/replace) and whether the viewport has room. Returns null for workspace if the id is unknown. Omit workspaceId to use the active workspace.
Inputs: workspaceId.
onda_workspace_listA
List all workspaces. Each entry: { id, name, rootPath, mountedIn }. mountedIn is the windowId hosting that workspace, or null if not currently mounted. Use this with onda_window_list to map workspaces ↔ windows.
Inputs: no named parameters.
onda_workspace_locateA
Find a workspace by name, id, or rootPath without listing them all. Returns { workspace: { id, name, rootPath, mountedIn } } or { workspace: null }. mountedIn is the windowId currently hosting the workspace, or null if not mounted.
Inputs: id, name, rootPath.
onda_workspace_tileC
Set the workspace-level tiling layout. Controls how workspaces are arranged in the main window.
Inputs: layout (required), workspaceId.
onda_workspace_unmountA
Remove a workspace from whichever window currently hosts it (drops it from that window's tiled mosaic and releases the mount registry slot). The workspace continues to exist in the global list — only its on-screen mounting is dropped. Returns { success, workspaceId, windowId, alreadyUnmounted }.
Inputs: workspaceId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 39 tools
Most tools target distinct resources (panes, terminals, workspaces, windows, tabs) and actions, with clear descriptions. Some overlap exists between terminal_run, terminal_send, terminal_send_keys, and terminal_spawn, but their purposes are differentiated enough (newline, raw text, key sequences, exec). Overall, an agent can reliably select the right tool with careful reading.
The dominant pattern is domain_verb (e.g., onda_terminal_run, onda_workspace_focus, onda_pane_split), which is consistent. However, a few tools break the pattern: onda_context, onda_status, onda_app_info, onda_ping are nouns without a domain prefix, and onda_launch_session is a verb_noun with no domain. This mixed convention makes the set slightly harder to predict.
At 39 tools, this is well above the 25+ threshold for 'too many' per the calibration guide. While the domain is broad (panes, terminals, workspaces, windows, tabs, session), the count feels heavy and could overwhelm an agent. Several tools could potentially be merged (e.g., workspace_locate and workspace_list, window_focus and window_mount_workspace are distinct but related).
The tool set covers the full lifecycle of terminals, panes, workspaces, tabs, and windows: list, create, close, focus, read, subscribe, poll, kill, mount/unmount, and layout inspection. It even includes a high-level launch_session macro for complex workflows. Minor gaps exist (e.g., no explicit pane resize or terminal resize tool), but agents can work around them via window layout and tile tools.
Maintenance
Related MCP Connectors
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseAqualityBmaintenanceTerminal multiplexer MCP server for orchestrating parallel AI agents. Manages workspaces, panes, surfaces with send_input/read_screen/spawn_agent/stop_agent tools. Supports Claude Code, Codex, Gemini, Cursor CLI agents with lifecycle management, browser automation, and agent status push via Claude --channels.1030Apache 2.0
- AlicenseAqualityBmaintenanceMCP server for hyperpanes terminal workspace app, enabling AI agents to compose and launch workspace layouts, inspect and drive terminal panes, stream output, and orchestrate agent hierarchies.501MIT
- AlicenseAqualityDmaintenanceMCP server that gives AI assistants full visibility into your tmux sessions — browse sessions, windows, and panes, read terminal output, and send commands.1455 npm1MIT
- AlicenseNot gradedqualityAmaintenanceA standalone MCP server that lets AI agents such as Claude Code, Gemini CLI, Codex, and Kimi CLI read, type into, and send messages to each other's terminal panes, enabling coordinated multi-agent workflows without manual copy-pasting. It talks directly to tmux, so no external dependencies or framework rewrites are needed.49 npmMIT