MCPconceptAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

LibTmux.Mcp.TmuxConnectionAccessor

class LibTmux.Mcp.TmuxConnectionAccessor

Holds the tmux servers this process talks to, one per socket.

Description

A conversation outlives any single tool call, so connecting once and keeping the handle costs one process launch instead of one per call. Sockets are cached separately because a machine runs several tmux servers at once — a user's own, a test rig's, a sandbox's — and they are different servers with the same commands, not one server addressed two ways.

When no template is supplied, the tmux binary comes from LIBTMUX_TMUX. An explicit template is already a pinned route and wins over later process-environment changes.

Properties1

TmuxConnectionAccessor properties
NameTypeDescription
DefaultSocketName string? Gets the socket used when a call names none.

Other members4 members

Esc
Search in

Type to search.

Reference previewOpen reference