Skip to main content

Module registry

Module registry 

Source

Structs§

ToolRegistry
Central registry mapping tool names to their trait-based handlers. Every tool is trait-based and resolved here; the earlier match-cascade dispatch has been fully retired.

Functions§

build_registry
Register all trait-based tools. Called once during server startup. New tools are added here as their McpTool implementation lands.
register_tool_catalog
Hand this registry’s tool definitions to the engine’s lean_ctx::core::tool_catalog, which manifests, overhead measurement and discovery cards read. Idempotent; the CLI calls it at start-up and every MCP server construction calls it too.
tool_count
Number of official MCP tools — the single source of truth for the “N MCP tools” count shown in --help, the README, and the feature catalog. Deprecated aliases remain callable for compatibility but are not counted.