LibTmuxMCP.serve
-
Methods#
Serve the application's tools using the admitted MCP stdio profiles. This call owns and closes both streams and
app, including after EOF, cancellation or failure. It joins request work before cleaning up application-owned sessions. Protocol output is serialized; tool logs use the supplied task-local logger. The borrowed tmux daemon and pre-existing sessions remain caller-owned.serve(app; input=stdin, output=stdout, workers=4, capacity=16, logger=...)