Skip to main content

Module registry

Module registry 

Source

Structs§

ToolRegistry
Central registry mapping tool names to their trait-based handlers. Replaces the match-cascade dispatch for migrated tools while coexisting with the legacy dispatch for tools not yet migrated.

Functions§

build_registry
Register all trait-based tools. Called once during server startup. Tools are added here as they are migrated from the legacy dispatch.
tool_count
Number of registered MCP tools — the single source of truth for the “N MCP tools” count shown in --help, the README, and the feature catalog. Deriving it here means the count can never drift from the actual registry.