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.Application

Configure an MCP application without I/O. server is an explicit borrowed endpoint. Omitted pane targets use only caller ; there is no ambient/current pane fallback. allowed_panes=nothing permits any explicitly addressed pane; otherwise copy the supplied generation-bound references as the allowlist. Tool names and pane policy also apply to each item in run_operations.

Description#

Application(server; caller=nothing, allowed_tools=("list_panes", "capture_pane", "send_keys"),
allowed_panes=nothing, allow_create=false, timeout=5.0,
max_capture_bytes=65536, max_result_bytes=1048576)

Creation requires both an enabled create_session tool and allow_create=true. The application owns those sessions and their observed panes, and tears down its sessions on close . It never owns the borrowed daemon or caller session.

Parameters

Members

server: LibTmux.Server
caller: Union{Nothing, LibTmux.PaneRef}
allowed_tools: Tuple{Vararg{String}}
allow_create: Bool
timeout: Float64
max_capture_bytes: Int64
max_result_bytes: Int64
_allowed_panes: Union{Nothing, Base.Vector{LibTmux.PaneRef}}
_condition: Base.GenericCondition{Base.ReentrantLock}
_state: Base.RefValue{Symbol}
_next: Base.RefValue{UInt64}
_active: Base.Dict{UInt64, LibTmuxMCP._ApplicationCall}
_owned: Base.Dict{LibTmux.SessionRef, Base.Vector{LibTmux.PaneRef}}
_creating: Base.RefValue{Int64}
Esc

Type to search.

Reference preview Open reference