On this page
CallerIdentity
- Package
- libtmux-swift
- Source
- Sources/LibTmuxMCP/Caller.swift
- struct CallerIdentity : struct CallerIdentity
-
Where this MCP server is itself running, when that is inside tmux.
An agent driving tmux from a pane is one
kill-paneaway from ending the conversation it is having. Knowing which pane is its own is what lets the tools refuse that, and lets a listing mark the row that is the caller so the agent never has to ask.
8 declared, 0 inherited
Members
- !=(_:_:) function Returns a Boolean value indicating whether two values are not equal.
- current(environment:) method Reads the surrounding tmux, or
nilwhen there is none. - init(from:) method Creates a new instance by decoding from the given decoder.
- isOn(serverProcessID:) method Whether
serveris the tmux this process is running inside. - paneID property From
TMUX_PANE, which tmux sets in every process it starts. - serverProcessID property The surrounding server's process id. This, rather than the socket path, is what identifies a server: a daemon that died and was replaced binds the same path, and comparing paths would then call the replacement "ours" and refuse to touch panes that only reuse an id.
- sessionID property From
TMUX, in the same$…spelling as a session id. - socketPath property