CallerIdentity
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- 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.
Members
- functionstatic ¶!=(_:_:)
-
Inherited from
Equatable.!=(_:_:)Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values
aandb,a != bimplies thata == bisfalse.This is the default implementation of the not-equal-to operator (
!=) for any type that conforms toEquatable.- Parameters:
- lhs: A value to compare.
- rhs: Another value to compare.
- Parameters:
-
From
TMUX_PANE, which tmux sets in every process it starts.
-
From
TMUX, in the same$…spelling as a session id.
- socketPath : let socketPath: String?
- serverProcessID : let serverProcessID: Int?
-
The surrounding server's process id. It authenticates alternate routes to one socket and rejects a daemon that replaced one exact route.
- current(environment:) ( environment : [String : String] ) CallerIdentity?
-
Reads the surrounding tmux, or
nilwhen both context variables are absent.An incomplete or malformed environment remains present as an invalid identity so an input guard cannot mistake it for a detached process.
- isOn(_:) ( server : ServerIncarnation ) Bool
-
Whether
serveris the tmux this process is running inside, including when caller and server reached its socket through different links.
- method ¶init(from:)
-
Inherited from
Decodable.init(from:)Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
- Parameter decoder: The decoder to read data from.