Skip to main content

Module ctx_tools

Module ctx_tools 

Source
Expand description

ctx_tools business logic (#210): the MCP Tool-Catalog Gateway meta-tool.

Keeps the registered wrapper thin: this module owns config gating, action routing, and driving the async gateway from the synchronous tool handler. The MCP dispatch layer wraps handlers in block_in_place, so an ambient runtime handle is available there. The CLI call path has no ambient runtime, so run falls back to building its own current_thread runtime (see Rt) instead of panicking on Handle::current().

Functionsยง

run
Execute a ctx_tools action, returning response text or an error message.