ServerConfiguration
- struct ServerConfiguration : struct Server
Configuration -
How the executable is configured, read from the environment.
Description#
An MCP server is launched by a client that passes no flags, so environment is the only configuration surface there is. Parsed here rather than in the executable so a test can check what a given environment produces.
The server is on the socket
LIBTMUX_SOCKET_PATHnames, else on the socket nameLIBTMUX_SOCKETgives. With neither, it passes tmux no socket and tmux picks the server: the one inTMUXwhen the client that launched this process runs inside tmux, and its default socket otherwise.
Guides#
Pages that discuss ServerConfiguration.
Members13#
- !=(_:_:) function inherited Returns a Boolean value indicating whether two values are not equal.
- socketName: let socket
Name : String? propertyLIBTMUX_SOCKET, unlessLIBTMUX_SOCKET_PATHis set, which wins. - socketPath: let socket
Path : String? propertyLIBTMUX_SOCKET_PATH, an absolute path. - tmuxExecutable: let tmux
Executable : String property - tmuxConfigurationFile: let tmux
Configuration : String? propertyFile - authority: let authority: Tool
Authority property - waitCeiling: let wait
Ceiling : Duration property - warnings: let warnings: [String] property Anything the environment asked for that could not be honoured, to be reported on standard error rather than silently applied differently.
- errors: let errors: [String] property Fatal configuration errors. The executable reports these before it constructs or probes a tmux server.
- hardWaitCeiling: static let hard
Wait : Double property A wait longer than this is refused however it is configured. A client that hangs for minutes on one call is indistinguishable from one that has died.Ceiling - init(environment:) method
- makeServer() method
- endpointSummary: var endpoint
Summary : String property