# Function registerDelegateToModelTool

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- registerDelegateToModelTool(server: McpServer, deps: DelegateDeps): void

  Registers the delegate_to_model tool with the MCP server.

  Uses createSecureHandler for standardized security middleware (Issue #531). Includes timeout protection for CVE-2026-0621 mitigation (Issue #271).

  #### Parameters

  - server: McpServer

    MCP server instance

  - deps: DelegateDeps

    Dependencies

  #### Returns void

  - Defined in packages/nexus-agents/src/mcp/tools/delegate-to-model.ts:270