# LibTmux.Mcp.TmuxConnectionAccessor.GetAsync

- **Module:** LibTmux.Mcp.TmuxConnectionAccessor
- **Package:** LibTmux.Mcp
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux.Mcp/Connection/TmuxConnectionAccessor.cs#L81
- **Page:** https://libtmux.org/en/dotnet/latest/mcp/reference/libtmux-mcp-tmuxconnectionaccessor-getasync/

```
LibTmux.Mcp.TmuxConnectionAccessor.GetAsync(socketName: string?, cancellationToken: CancellationToken) -> Task<Server>
```

Answers a server, connecting on the first ask for that socket.

## Parameters

- `socketName` (string?): The socket, or null for the configured default.
- `cancellationToken` (CancellationToken): Cancels the tmux command.

## Returns

The server.

## Raises

- `McpException`: tmux could not be reached.
