# tmux MCP for Swift

Source: https://libtmux.org/en/swift/latest/mcp/

> Run the Swift MCP executable or embed its typed tool service with explicit authority.

**MCP concept example** A working example of the core library. It can change without notice.

`libtmux-mcp` is the Swift stdio executable.
[`LibTmuxMCP`](https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Package.swift)
is the SwiftPM library product for embedding the same
tools. They expose tmux discovery, captures, waits, input, configuration,
and process control.

The package requires Swift 6.2 or newer and supports Linux and macOS.
The documented Darwin dependency build uses Xcode's Swift 6.3 toolchain.
tmux is required at runtime.

## Start here

- [Install](https://libtmux.org/en/swift/latest/mcp/#install) points an MCP client at this server.
- [Tools](https://libtmux.org/en/swift/latest/mcp/tools/) lists the MCP operations, arguments, and results.
- [Guides](https://libtmux.org/en/swift/latest/mcp/guides/) build the executable and configure its environment.
- [Topics](https://libtmux.org/en/swift/latest/mcp/topics/) explain toolsets, command waits, and capability discovery.
- [Examples](https://libtmux.org/en/swift/latest/mcp/examples/) call a tool, then explore server internals.
- [Language API](https://libtmux.org/en/swift/latest/mcp/reference/) documents embedding and implementation types.

The executable defaults to inspection, management, and execution; a
verified dedicated daemon can also receive teardown tools. The embedding
initializer defaults to inspection alone. Read [`tmux://capabilities`](<https://libtmux.org/en/swift/latest/mcp/resources/capabilities/>)
for the startup selection.

[Workspace Manager](https://libtmux.org/en/swift/latest/workspace/) is a separate library product. The
current MCP catalog does not include a workspace-file operation.

[Library contract](https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmuxMCP/README.md)
and [platform requirements](https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/README.md#requirements).
