# libtmux_mcp.middleware.ToolsetMiddleware.__init__

- **Module:** libtmux_mcp.middleware
- **Package:** libtmux-mcp
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/middleware.py#L106
- **Page:** https://libtmux.org/en/py/stable/mcp/reference/libtmux_mcp-middleware-toolsetmiddleware-__init__/

```
libtmux_mcp.middleware.ToolsetMiddleware.__init__(
    self,
    toolsets: t.AbstractSet[str],
    tools: t.AbstractSet[str] = frozenset(),
    exclude_tools: t.AbstractSet[str] = frozenset(),
) -> None
```

## Parameters

- `toolsets` (`t.AbstractSet[str]`)
- `tools` (`t.AbstractSet[str]`)
- `exclude_tools` (`t.AbstractSet[str]`)
