import { createMcpServerRegistry, type McpServerRegistry } from "./McpServerRegistry.js"; import type { McpServerHealth } from "./McpServerRegistry.js"; import type { RunContext } from "../../runcontext/RunContextResolver.js"; import type { ToolRegistry } from "../../tools/ToolRegistry.js"; /** * Connects a run's configured MCP servers and registers what they expose into * the run's `ToolRegistry`. * * Registration goes into the *existing* registry rather than a parallel store: * one source of truth means the planner cannot see a schema the executor would * not honour, no matter where the tool came from. */ export interface McpAttachResult { registry?: McpServerRegistry; health: McpServerHealth[]; registered: string[]; warnings: string[]; } export interface McpAttachOptions { context: RunContext; toolRegistry: ToolRegistry; maxConcurrentCalls?: number; /** Injected in tests. */ createRegistry?: typeof createMcpServerRegistry; } export declare const attachMcpTools: (options: McpAttachOptions) => Promise; //# sourceMappingURL=McpToolSource.d.ts.map