mcp.caller.CallerIdentity
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
The tmux pane hosting this process, as its environment describes it.
TMUXcarriessocket_path,server_pid,session_number;TMUX_PANEcarries the pane id. Either both variables form one complete identity or the context is malformed; only two absent variables mean detached operation, and an empty variable counts as absent.
Members
-
Read the identity from this process's environment.
Returns
Nonewhen neither variable is set, which is the ordinary case for a server started outside tmux.
-
Build an identity from explicit values, as the environment would give them.
Separate from
CallerIdentity::from_envso the parsing can be tested without a process-wide environment, which no test can hold alone.
-
Whether the variables were set but do not describe one tmux pane.
Pane-input and teardown tools refuse every call while this holds, because they cannot rule out reaching the caller's own pane.
-
The pane this process runs in, when tmux named one.
-
The socket path this process was started from, when tmux named one.
-
Whether a pane on the given server is provably this process's own.
Positive only on a confirmed socket match, because this drives an annotation an agent reads as fact. Anything less is
Relation::Other: a bare pane-id match across two sockets is the false positive this whole module exists to avoid.
-
-
Whether this process might be running on the given server.
Malformed context and an unreadable target socket remain protected. Complete identities on a different physical socket are foreign; a socket basename alone never authenticates a caller.