libtmux_mcp.middleware.ToolsetMiddleware
Python
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Bases:
- Middleware
Filter tools to the enabled toolsets.
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
- on_list_tools ( self , context : MiddlewareContext , call_next : t.Any ) t.Any
-
Drop tools outside the enabled surface from the listing.
- on_call_tool ( self , context : MiddlewareContext , call_next : t.Any ) t.Any
-
Refuse a tool outside the enabled surface.