# LibTmux.Mcp.McpServerComposition.Add

- **Module:** LibTmux.Mcp.McpServerComposition
- **Package:** LibTmux.Mcp
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux.Mcp/McpServerComposition.cs#L26
- **Page:** https://libtmux.org/en/dotnet/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.
