import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; type ToolAnnotations = { readOnlyHint?: boolean; destructiveHint?: boolean; idempotentHint?: boolean; openWorldHint?: boolean; }; /** * Register a tool with the MCP server, working around TypeScript's * "Type instantiation is excessively deep" error that occurs with * zod 3.25+ and the MCP SDK's dual v3/v4 type inference. * * The schema is passed as `any` to bypass deep type inference, * while still getting runtime validation from zod. */ export declare function registerTool(server: McpServer, name: string, description: string, schema: Record, handler: (args: any, extra: RequestHandlerExtra) => Promise, options?: { annotations?: ToolAnnotations; }): void; export {}; //# sourceMappingURL=toolHelper.d.ts.map