TmuxTools
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- Bases:
The tmux tools an MCP client can call.
This is the layer that puts
LibTmuxacross a process boundary, which is what a filter expression was designed for: a client sends the expression as data and the tool evaluates it here, rather than the client asking for everything and filtering at home.Discussed in Swift MCP API
Members
- authority : let authority: ToolAuthority
-
The authority shared by tool listing and invocation.
- waitCeiling : let waitCeiling: Duration
-
The ceiling every wait is clamped to.
What an unbounded wait costs is not the transport — calls are served concurrently — but the caller's turn: it picks the wrong pattern once and has no way to change its mind mid-call. A ceiling makes that mistake cheap and repeatable instead of terminal.
- provenance : let provenance: ServerProvenance
init(server:authority:waitCeiling:caller:provenance:)
- init(server:authority:waitCeiling:caller:provenance:) ( server : Server , authority : ToolAuthority , waitCeiling : Duration , caller : CallerIdentity? , provenance : ServerProvenance )
-
Creates a tool set with explicit authority.
- visibleDefinitions : var visibleDefinitions: [ToolDefinition]
-
The tools visible under this server's authority.
Discussed in Swift MCP API
- call(_:reporting:) ( request : ToolCall , reporting : ProgressReporter ) ToolOutcome
-
Runs a tool and returns its result.
progressis how a blocking tool says it is still running. It is silent unless the client asked to be told.- Raises
Discussed in Swift MCP API
- definitions : static let definitions: [ToolDefinition]
-
The one authoritative public tool registry, in protocol order.