cmux-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CMUX_BIN | No | Path to the cmux binary if it isn't on PATH (bundled at /Applications/cmux.app/Contents/Resources/bin/cmux on macOS). | |
| CMUX_WORKSPACE_ID | No | Default workspace ref (auto-set inside a cmux pane). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cmux_identifyA | Return caller and focused window/workspace/pane/surface refs as JSON. caller = you (the issuing pane); focused = current UI focus — they differ if focus moved away. Use caller.pane_ref as anchor_pane in cmux_new_pane to place panes next to yourself. |
| cmux_treeC | Print the window > workspace > pane > surface tree. |
| cmux_listC | List cmux objects of the given kind. |
| cmux_captureA | Read the current screen or scrollback of a terminal surface. Pass workspace/window for a surface in another workspace. |
| cmux_new_paneB | Open a new pane by splitting in the given direction. Pass anchor_pane (your pane_ref from cmux_identify.caller) to split next to that specific pane regardless of UI focus. Resolution order: anchor_pane > workspace > caller's workspace > focused workspace. |
| cmux_new_workspaceB | Create a new workspace, optionally with a title, cwd, and startup command. Pass group to create it inside a workspace group. |
| cmux_rename_workspaceB | Set a workspace title. Uses workspace-action (the legacy rename alias mangles args). |
| cmux_rename_tabA | Set a tab's title (the pane's tab label). Target the tab by ref, or by a surface inside it; defaults to the current tab. |
| cmux_focus_paneC | Move focus to the given pane. |
| cmux_closeA | Close a surface (tab) or an entire workspace. For kind "surface" a pane ref also works (closes that pane's selected surface). For kind "workspace", ref "current" safely closes the CALLING pane's own workspace (never the UI-focused one) — first call previews it, call again with confirm=true to close. |
| cmux_configA | Manage cmux settings (~/.config/cmux/cmux.json). doctor: validate JSONC. path/docs: print paths/schema URL (run before hand-editing; back up to .bak first). reload: re-read config + Ghostty, no restart needed. get/set: read/write sidebar-font-size or surface-tab-bar-font-size. |
| cmux_surface_healthA | List health details (e.g. stuck/unresponsive terminals) for surfaces in a workspace. |
| cmux_new_groupA | Group workspaces under a collapsible sidebar header (spawns a fresh anchor workspace as the header row). Omitting |
| cmux_group_actionA | Run an action on a group: rename (needs name), collapse, expand, pin, unpin, focus (focuses its anchor), set-color (hex; omit to clear), set-icon (symbol; omit to clear), move (toIndex/before/after), ungroup (dissolve, keep workspaces), delete (CLOSES every member workspace — needs confirm=true; prefer ungroup). |
| cmux_group_membersB | add a workspace to a group, remove a workspace from its group (group inferred from membership), or set-anchor to make a member the group's anchor/header row. |
| cmux_sendA | Type literal text into a terminal surface. Does NOT press Enter — follow with cmux_send_key Enter. Pass workspace/window to target a surface in another workspace. |
| cmux_send_keyA | Send a named key such as Enter, Tab, Escape, C-c, C-d. Ctrl chords accept either form: "C-u" or "ctrl+u". Pass workspace/window to target a surface in another workspace. |
| cmux_list_panelsA | List the panels (agent/terminal surfaces) in a workspace, so you can discover a panel ref to drive. |
| cmux_send_panelB | Send text into an agent panel via send-panel. Use cmux_list_panels to find the panel ref. Pass workspace/window when the panel lives in another workspace. |
| cmux_wait_readyA | Poll a surface until ready, then return the final screen. Ready = matches |
| cmux_notifyC | Show a cmux notification. |
| cmux_browserB | Run a |
| cmux_rawA | Escape hatch for cmux subcommands without a dedicated tool. Pass tokens after "cmux" as an array, e.g. ["new-split","right","--focus","true"]. Run ["help"] to discover commands. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 23 tools
Most tools target distinct resource+action pairs (new_pane vs new_workspace, send vs send_key, capture vs identify). A few boundaries blur: cmux_list vs cmux_list_panels, cmux_send vs cmux_send_panel, and cmux_group_action vs cmux_group_members overlap conceptually but are differentiated by descriptions and target type. cmux_raw is a deliberate universal escape hatch that inevitably overlaps everything.
The cmux_ prefix and snake_case casing are perfectly consistent across all 23 tools. However the verb pattern is mixed: some are verb_noun (new_pane, rename_workspace, focus_pane, list_panels) while others are bare nouns or noun phrases (tree, config, browser, raw, surface_health, group_action, group_members). Readable, but the convention is not uniform.
23 tools is on the heavy side but the domain (windows, workspaces, panes, surfaces, groups, config, browser) is genuinely broad, so each tool earns a place. Some consolidation is possible—notably via the existing cmux_raw escape hatch that could cover several dedicated wrappers—but overall the count is reasonable for the scope.
The surface covers inspection (list, tree, identify, capture, health), mutation (new_pane, new_workspace, rename, focus, close), interaction (send, send_key, wait_ready), plus groups, config, notify, and browser automation. Minor gaps like pane resize/reorder exist, but the cmux_raw escape hatch makes almost any missing subcommand reachable.