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

libtmux_mcp.middleware.ToolsetMiddleware

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

class libtmux_mcp.middleware.ToolsetMiddleware
class [source]
class [source]
class libtmux_mcp.middleware.ToolsetMiddleware
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 execute tool can type the equivalent of any hidden tool.

Members

__init__

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

on_list_tools

on_list_tools ( self , context : MiddlewareContext , call_next : t.Any ) → t.Any
methodasync [source]
methodasync [source]
on_list_tools

Drop tools outside the enabled surface from the listing.

on_call_tool

on_call_tool ( self , context : MiddlewareContext , call_next : t.Any ) → t.Any
methodasync [source]
methodasync [source]
on_call_tool

Refuse a tool outside the enabled surface.

Esc

Type to search.