MCPExamples

Choose documentation 3

latest

Current version

latest
English

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

Edit this page on GitHub

C# MCP examples

LibTmux.Mcp 0.0.0-alpha.20 · Source

Each example includes its project file, complete program, pinned tool installation, run command, and expected output. The programs create private tmux servers and attempt cleanup after successful and failed requests.

List sessions

List sessions through MCP uses an inspection-only connection. It checks the advertised tools, reads tmux://capabilities, and verifies the session name and window count in structured content.

Run a command

Run a command through MCP discovers the pane ID, submits a bounded shell command, and checks its exit status separately from the MCP result. It also checks whether the captured output is complete.

For an existing server, follow the connection guide and keep its ownership separate from the private servers in these examples. See Waits and captured output before adding retries or cancellation to a client that controls long-running processes.

Esc

Type to search.