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.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=...)
Parameters
Esc

Type to search.

Reference preview Open reference