# mcp.caller.CallerIdentity

- **Module:** mcp.caller
- **Package:** tmux-mcp
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/tmux-mcp/src/caller.rs#L45
- **Page:** https://libtmux.org/en/rs/latest/mcp/reference/mcp-caller-calleridentity/

The tmux pane hosting this process, as its environment describes it.

`TMUX` carries `socket_path,server_pid,session_number`; `TMUX_PANE` carries
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

- `from_env` (method): Read the identity from this process's environment.
- `from_values` (method): Build an identity from explicit values, as the environment would give them.
- `is_malformed` (method): Whether the variables were set but do not describe one tmux pane.
- `pane_id` (method): The pane this process runs in, when tmux named one.
- `socket` (method): The socket path this process was started from, when tmux named one.
- `relation_to` (method): Whether a pane on the given server is provably this process's own.
- `may_be_on` (method): Whether this process might be running on the given server.
