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
executetool can type the equivalent of any hidden tool.
Members
- __init__ ( self, toolsets: t
.Abstract [str], tools: tSet .Abstract [str] = frozenset(), exclude_tools: tSet .Abstract [str] = frozenset(), ) NoneSet -
- Parameters
-
-
tools(t.Abstract [str]) #Set
- on_list_tools ( self, context: Middleware
Context , call_next: t.Any ) t.Any -
Drop tools outside the enabled surface from the listing.
- on_call_tool ( self, context: Middleware
Context , call_next: t.Any ) t.Any -
Refuse a tool outside the enabled surface.