LibTmuxMCP.main
-
Methods
main(arguments; input, output, err)[source]
Run
libtmux-mcp. It takes at most one of--socketand--socket-name. With neither, the core'sServerreadsLIBTMUX_SOCKET_PATH, thenLIBTMUX_SOCKET, and otherwise leaves the choice to tmux. With--start-session NAME, startup first creates that session, which starts the daemon when none answers; the daemon and the session stay running after the launcher exits, and an existing session of that name is borrowed. Startup captures exact caller/allowed pane references.--helpand invalid options perform no tmux I/O, and a variable that cannot be used is an option error. Returns 0 after clean EOF, 2 for option errors, 130 for interruption and 1 for startup, protocol or cleanup failure. Only--helpwrites human text to stdout; serving reserves it for MCP messages.main(arguments=ARGS; input=stdin, output=stdout, err=stderr) -> Intmain(; ...)[source]
Run
libtmux-mcp. It takes at most one of--socketand--socket-name. With neither, the core'sServerreadsLIBTMUX_SOCKET_PATH, thenLIBTMUX_SOCKET, and otherwise leaves the choice to tmux. With--start-session NAME, startup first creates that session, which starts the daemon when none answers; the daemon and the session stay running after the launcher exits, and an existing session of that name is borrowed. Startup captures exact caller/allowed pane references.--helpand invalid options perform no tmux I/O, and a variable that cannot be used is an option error. Returns 0 after clean EOF, 2 for option errors, 130 for interruption and 1 for startup, protocol or cleanup failure. Only--helpwrites human text to stdout; serving reserves it for MCP messages.main(arguments=ARGS; input=stdin, output=stdout, err=stderr) -> Int- Parameters
-
-
arguments=ARGS(Any) formain(arguments, input, output, err) -
input=stdin(IO) formain(arguments, input, output, err) -
output=stdout(IO) formain(arguments, input, output, err) -
err=stderr(IO) formain(arguments, input, output, err)
-