Skip to main content

Module tool_handler

Module tool_handler 

Source
Expand description

ToolHandler trait and associated types for MCP tool dispatch.

Every tool in cortex-mcp must implement ToolHandler and declare a non-empty gate_set. The ToolRegistry asserts gate wiring at registration time (DA-3): a missing gate is a fatal startup error, not a per-call error.

Enums§

GateId
Logical gate IDs that a tool activates when called.
ToolError
Errors returned from ToolHandler::call.

Traits§

ToolHandler
A single MCP tool that can be dispatched by the ToolRegistry.