MCPpre-alphaAPI Reference

Choose documentation 3

stable

Current version

stable
English

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

libtmux_mcp.middleware.ToolsetMiddleware

class libtmux_mcp.middleware.ToolsetMiddleware
Bases:
  • Middleware

Filter tools to the enabled toolsets.

Description#

Filtering controls which MCP tool calls this server advertises and accepts. It does not confine tmux: an enabled execute tool can type the equivalent of any hidden tool.

Members

__init__ ( self, toolsets: t.AbstractSet[str], tools: t.AbstractSet[str] = frozenset(), exclude_tools: t.AbstractSet[str] = frozenset(), ) → None

Drop tools outside the enabled surface from the listing.

Refuse a tool outside the enabled surface.

Esc

Type to search.

Reference preview Open reference