mcp.server.serverFromEnvironment
-
The tmux server this process was pointed at.
Description#
An MCP client launches this with an environment and a command line, and nothing else, so the environment is the only place a socket can come from. The library reads
LIBTMUX_SOCKET_PATH, elseLIBTMUX_SOCKET, from it; with neither set no socket is passed and tmux picks the server, which inside tmux is the oneTMUXnames. What the library chose is checked here, at the edge that has a process to answer for it.
Guides#
Pages that discuss serverFromEnvironment.