# LibTmux.Mcp.McpServerComposition.Add

- **Module:** LibTmux.Mcp
- **Package:** LibTmux.Mcp
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Mcp/McpServerComposition.cs#L27
- **Page:** https://libtmux.org/en/csharp/latest/mcp/reference/libtmux-mcp-mcpservercomposition-add/

```
LibTmux.Mcp.McpServerComposition.Add(services: IServiceCollection, policy: ServerPolicy, connectionOptions: ServerConnectionOptions, callerPaneId: string?) -> IMcpServerBuilder
```

Registers everything the server needs and everything it offers.

## Parameters

- `services` (`IServiceCollection`): The container to register into.
- `policy` (`ServerPolicy`): What the server will do.
- `connectionOptions` (`ServerConnectionOptions`): How to reach tmux.
- `callerPaneId` (`string?`): The pane the server runs in, when it runs in one.

## Returns

The builder, for a transport to be chosen on.
