# CallerIdentity

- **Package:** LibTmuxMCP
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmuxMCP/Caller.swift#L10
- **Page:** https://libtmux.org/en/swift/latest/mcp/reference/calleridentity/

Where this MCP server is itself running, when that is inside tmux.

An agent driving tmux from a pane is one `kill-pane` away 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.

## Members

- `!=(_:_:)` (function): Returns a Boolean value indicating whether two values are not equal.
- `paneID` (property): From `TMUX_PANE`, which tmux sets in every process it starts.
- `sessionID` (property): From `TMUX`, in the same `$…` spelling as a session id.
- `socketPath` (property)
- `serverProcessID` (property): The surrounding server's process id. It authenticates alternate routes to one socket and rejects a daemon that replaced one exact route.
- `current(environment:)` (method): Reads the surrounding tmux, or `nil` when both context variables are absent.
- `isOn(_:)` (method): Whether `server` is the tmux this process is running inside, including when caller and server reached its socket through different links.
- `init(from:)` (method): Creates a new instance by decoding from the given decoder.
