LibTmuxMCP.Application
- Lib
Tmux .Application( server::LibMCP Tmux , caller::Union{Nothing, Lib.Server Tmux }, allowed.Pane Ref _tools ::Tuple{Vararg{String}}, allow_create ::Bool, timeout::Float64, max_capture ::Int64, max_bytes _result ::Int64, _allowed_bytes _panes ::Union{Nothing, Vector{LibTmux }}, _condition::Base.GenericCondition{Reentrant.Pane Ref Lock }, _state::Base.RefValue{Symbol}, _next::Base.RefValue{UInt64}, _active::Dict{UInt64, LibTmuxMCP._ApplicationCall}, _owned::Dict{LibTmux , Vector{Lib.Session Ref Tmux }}, _creating::Base.RefValue{Int64} ) Lib.Pane Ref Tmux .Application( server::LibMCP Tmux ; caller, allowed.Server _tools , allowed_panes , allow_create , timeout, max_capture , max_bytes _result ) Lib_bytes Tmux .Application( server, caller, allowedMCP _tools , allow_create , timeout, max_capture , max_bytes _result , _allowed_bytes _panes , _condition, _state, _next, _active, _owned, _creating ) -
Configure an MCP application without I/O.
serveris an explicit borrowed endpoint. Omitted pane targets use onlycaller; there is no ambient/current pane fallback.allowed_panes=nothingpermits any explicitly addressed pane; otherwise copy the supplied generation-bound references as the allowlist. Tool names and pane policy also apply to each item inrun_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_sessiontool andallow_create=true. The application owns those sessions and their observed panes, and tears down its sessions onclose. It never owns the borrowed daemon or caller session.Methods#
Lib
Tmux .Application( server::LibMCP Tmux , caller::Union{Nothing, Lib.Server Tmux }, allowed.Pane Ref _tools ::Tuple{Vararg{String}}, allow_create ::Bool, timeout::Float64, max_capture ::Int64, max_bytes _result ::Int64, _allowed_bytes _panes ::Union{Nothing, Vector{LibTmux }}, _condition::Base.GenericCondition{Reentrant.Pane Ref Lock }, _state::Base.RefValue{Symbol}, _next::Base.RefValue{UInt64}, _active::Dict{UInt64, LibTmuxMCP._ApplicationCall}, _owned::Dict{LibTmux , Vector{Lib.Session Ref Tmux }}, _creating::Base.RefValue{Int64} )[source]#.Pane Ref Lib
Tmux .Application( server::LibMCP Tmux ; caller, allowed.Server _tools , allowed_panes , allow_create , timeout, max_capture , max_bytes _result )[source]#_bytes Lib
Tmux .Application( server, caller, allowedMCP _tools , allow_create , timeout, max_capture , max_bytes _result , _allowed_bytes _panes , _condition, _state, _next, _active, _owned, _creating )[source]#- Parameters
-
-
server( LibTmux ) (for.Server Application(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1];Application(server, caller, allowed_tools, allowed_panes, allow_create, timeout, max_capture_bytes, max_result_bytes)) # -
caller( Union{Nothing, LibTmux } ) (for.Pane Ref Application(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
allowed_tools( Tuple{Vararg{String}} ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
allow_create( Bool ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
timeout( Float64 ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
max_capture_bytes( Int64 ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
max_result_bytes( Int64 ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
_allowed_panes( Union{Nothing, Base.Vector {LibTmux }} ) (for.Pane Ref Application(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
_condition( Base.GenericCondition{Base.Reentrant } ) (forLock Application(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
_state( Base.RefValue{Symbol} ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
_next( Base.RefValue{UInt64} ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
_active( Base.Dict {UInt64, LibTmuxMCP._ApplicationCall} ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
_owned( Base.Dict {LibTmux , Base.Session Ref .Vector {LibTmux }} ) (for.Pane Ref Application(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
_creating( Base.RefValue{Int64} ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 1]) # -
caller=nothing( Union{Nothing, LibTmux } ) (for.Pane Ref Application(server, caller, allowed_tools, allowed_panes, allow_create, timeout, max_capture_bytes, max_result_bytes)) # -
allowed_tools=_ROUTINE_TOOLS(forApplication(server, caller, allowed_tools, allowed_panes, allow_create, timeout, max_capture_bytes, max_result_bytes)) # -
allowed_panes=nothing(forApplication(server, caller, allowed_tools, allowed_panes, allow_create, timeout, max_capture_bytes, max_result_bytes)) # -
allow_create=false( Bool ) (forApplication(server, caller, allowed_tools, allowed_panes, allow_create, timeout, max_capture_bytes, max_result_bytes)) # -
timeout=5.0( Real ) (forApplication(server, caller, allowed_tools, allowed_panes, allow_create, timeout, max_capture_bytes, max_result_bytes)) # -
max_capture_bytes=65536( Int ) (forApplication(server, caller, allowed_tools, allowed_panes, allow_create, timeout, max_capture_bytes, max_result_bytes)) # -
max_result_bytes=1048576( Int ) (forApplication(server, caller, allowed_tools, allowed_panes, allow_create, timeout, max_capture_bytes, max_result_bytes)) # -
server( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
caller( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
allowed_tools( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
allow_create( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
timeout( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
max_capture_bytes( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
max_result_bytes( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
_allowed_panes( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
_condition( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
_state( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
_next( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
_active( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
_owned( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) # -
_creating( Any ) (forApplication(server, caller, allowed_tools, allow_create, timeout, max_capture_bytes, max_result_bytes, _allowed_panes, _condition, _state, _next, _active, _owned, _creating) [overload 3]) #
-
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}