LibTmux.Mcp 0.0.0-alpha.14 · Source
Connect the server using the setup guide, then call
list_sessions from your MCP client.
List sessionsLink to section
This is the params object for an MCP tools/call request. Send it
through the connected client:
{ "name": "list_sessions", "arguments": {}}Use the returned session IDs when choosing a window or pane. The tool reference describes this port’s result and optional arguments.
Run a commandLink to section
Call run_shell_command with a pane ID returned by discovery. This is the
params object for tools/call:
{ "name": "run_shell_command", "arguments": { "paneId": "%3", "command": "test -f /etc/hostname && echo present", "timeoutSeconds": 20 }}Read exitStatus, timedOut, and output. A timed-out command may still
be running; inspect the pane with capture_since before deciding to
submit more input. The current catalog has no detached job handles.
The protocol example describes this workflow. Use the language API for source embedding.