ServerConfiguration
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- struct ServerConfiguration : 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
- functionstatic ¶!=(_:_:)
-
Inherited from
Equatable.!=(_:_:)Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values
aandb,a != bimplies thata == bisfalse.This is the default implementation of the not-equal-to operator (
!=) for any type that conforms toEquatable.- Parameters:
- lhs: A value to compare.
- rhs: Another value to compare.
- Parameters:
- socketName : let socketName: String?
- socketPath : let socketPath: String?
- tmuxExecutable : let tmuxExecutable: String
- tmuxConfigurationFile : let tmuxConfigurationFile: String?
- isDefaultDedicatedMinimal : let isDefaultDedicatedMinimal: Bool
- authority : let authority: ToolAuthority
- waitCeiling : let waitCeiling: Duration
-
Anything the environment asked for that could not be honoured, to be reported on standard error rather than silently applied differently.
-
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 : static let hardWaitCeiling: Double
-
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.
-
- Raises
- endpointSummary : var endpointSummary: String