# Module server/toolRegistry

MCP tool registry – metadata and dispatch.

Centralizes the mapping between tool names, their metadata (name, description, inputSchema) and the handler functions that execute tool calls. The getToolMetadataArray function feeds the MCP `ListTools` response, while dispatchToolCall routes incoming `CallTool` requests to the correct handler.

## Functions

dispatchToolCall
getToolMetadataArray

## References

CLIOptions → CLIOptions
ToolCategory → ToolCategory
ToolHandler → ToolHandler
ToolMetadata → ToolMetadata
ToolResult → ToolResult