MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

LibTmuxMCP.main

Methods#

main(arguments; input, output, err)[source]#

Run libtmux-mcp with an explicit socket selector. Startup captures exact caller/allowed pane references. --help and invalid options perform no tmux I/O. Returns 0 after clean EOF, 2 for option errors, 130 for interruption and 1 for startup, protocol or cleanup failure. Only --help writes human text to stdout; serving reserves it for MCP messages.

main(arguments=ARGS; input=stdin, output=stdout, err=stderr) -> Int

main(; ...)[source]#

Run libtmux-mcp with an explicit socket selector. Startup captures exact caller/allowed pane references. --help and invalid options perform no tmux I/O. Returns 0 after clean EOF, 2 for option errors, 130 for interruption and 1 for startup, protocol or cleanup failure. Only --help writes human text to stdout; serving reserves it for MCP messages.

main(arguments=ARGS; input=stdin, output=stdout, err=stderr) -> Int
Esc

Type to search.

Reference preview Open reference