Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

ServerConfiguration

Swift
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift

API reference · Markdown

struct ServerConfiguration : struct ServerConfiguration
struct [source]
struct [source]
struct ServerConfiguration

How the executable is configured, read from the environment.

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.

Discussed in Swift MCP API

Members

!=(_:_:)

!=(_:_:) ( lhs : Self , rhs : Self ) → Bool
functionstatic
functionstatic
!=(_:_:)

Inherited from Equatable.!=(_:_:)

Returns a Boolean value indicating whether two values are not equal.

Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

  • Parameters:
    • lhs: A value to compare.
    • rhs: Another value to compare.

socketName

socketName : let socketName: String?
property [source]
property [source]
socketName

socketPath

socketPath : let socketPath: String?
property [source]
property [source]
socketPath

tmuxExecutable

tmuxExecutable : let tmuxExecutable: String
property [source]
property [source]
tmuxExecutable

tmuxConfigurationFile

tmuxConfigurationFile : let tmuxConfigurationFile: String?
property [source]
property [source]
tmuxConfigurationFile

isDefaultDedicatedMinimal

isDefaultDedicatedMinimal : let isDefaultDedicatedMinimal: Bool
property [source]
property [source]
isDefaultDedicatedMinimal

authority

authority : let authority: ToolAuthority
property [source]
property [source]
authority

waitCeiling

waitCeiling : let waitCeiling: Duration
property [source]
property [source]
waitCeiling

warnings

warnings : let warnings: [String]
property [source]
property [source]
warnings

Anything the environment asked for that could not be honoured, to be reported on standard error rather than silently applied differently.

errors

errors : let errors: [String]
property [source]
property [source]
errors

Fatal configuration errors. The executable reports these before it constructs or probes a tmux server.

Discussed in Exit codes and errors , JSON, NDJSON, and semantic color

hardWaitCeiling

hardWaitCeiling : static let hardWaitCeiling: Double
propertystatic [source]
propertystatic [source]
hardWaitCeiling

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.

init(environment:)

init(environment:) ( environment : [String : String] )
method [source]
method [source]
init(environment:)

makeServer()

makeServer() ( ) → Server
method [source]
method [source]
makeServer()
Raises

endpointSummary

endpointSummary : var endpointSummary: String
property [source]
property [source]
endpointSummary
Esc

Type to search.