Skip to main content
Glama

Tmux MCP Server

by nickgnd
MIT License
289
91
  • Linux
  • Apple

execute-command

Run commands in a tmux pane, retrieve results, and handle interactive applications using rawMode. Avoid multi-line constructs for non-rawMode executions. Ideal for terminal session control and monitoring.

Instructions

Execute a command in a tmux pane and get results. For interactive applications (REPLs, editors), use rawMode=true. IMPORTANT: When rawMode=false (default), avoid heredoc syntax (cat << EOF) and other multi-line constructs as they conflict with command wrapping. For file writing, prefer: printf 'content\n' > file, echo statements, or write to temp files instead

Input Schema

NameRequiredDescriptionDefault
commandYesCommand to execute
paneIdYesID of the tmux pane
rawModeNoExecute command without wrapper markers for REPL/interactive compatibility. Disables get-command-result status tracking. Use capture-pane to monitor interactive apps.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "command": { "description": "Command to execute", "type": "string" }, "paneId": { "description": "ID of the tmux pane", "type": "string" }, "rawMode": { "description": "Execute command without wrapper markers for REPL/interactive compatibility. Disables get-command-result status tracking. Use capture-pane to monitor interactive apps.", "type": "boolean" } }, "required": [ "paneId", "command" ], "type": "object" }

Other Tools from Tmux MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nickgnd/tmux-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server