# socket_path

Source: https://libtmux.org/en/tmux/3.7c/catalog/formats/socket_path/

> Server socket path

format variable tmux3.7c

Server socket path

* Scope

  Describes the server being formatted

* Type

  Text

* Usage

  `#{socket_path}`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/socket_path/#description)

Server socket path

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/socket_path/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/formats/socket_path/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/formats/socket_path/) : present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/socket_path/#source)

* Defined in

  [`format.c:3641`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3641)

* C source reference

  [`format_cb_socket_path`](https://libtmux.org/en/tmux/3.7c/reference/c-function-format-c-format_cb_socket_path/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#socket_path)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/socket_path/#used-by)

Library documentation that names this format variable.

* Julia

  [`LibTmux.from_env`](https://libtmux.org/en/julia/latest/reference/libtmux-from_env/), [`LibTmux.Server`](https://libtmux.org/en/julia/latest/reference/libtmux-server/)

* Python

  [`libtmux_mcp.tools.server_tools.list_servers`](https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-server_tools-list_servers/), [`libtmux._internal.env.socket_path_from_env`](https://libtmux.org/en/py/latest/reference/libtmux-_internal-env-socket_path_from_env/), [`libtmux._internal.env.TMUX`](https://libtmux.org/en/py/latest/reference/libtmux-_internal-env-tmux/), [`libtmux.neo._token_scope`](https://libtmux.org/en/py/latest/reference/libtmux-neo-_token_scope/), [`libtmux.Server.display_message`](https://libtmux.org/en/py/latest/reference/libtmux-server-display_message/), [`libtmux.Server.from_env`](https://libtmux.org/en/py/latest/reference/libtmux-server-from_env/)

* Ruby

  [`LibTmux::Endpoint#socket_path`](https://libtmux.org/en/ruby/latest/reference/libtmux-endpoint-socket_path/)

* Rust

  [`mcp.caller.CallerIdentity`](https://libtmux.org/en/rs/latest/mcp/reference/mcp-caller-calleridentity/), [`server.Server.from_env`](https://libtmux.org/en/rs/latest/reference/server-server-from_env/)

* Go

  [`tmux.FormatValues.SocketPath`](https://libtmux.org/en/go/latest/reference/tmux-formatvalues-socketpath/)

* Swift

  [`Server.format(_:)`](https://libtmux.org/en/swift/latest/reference/server-format\(_-\)/)
