import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; /** * Serve tools/list with JSON Schema converted by this package's own zod. * * bin/mcp.js bundles zod but loads the MCP SDK from the consumer's * node_modules, and the SDK may resolve a different zod. The SDK's own * tools/list converts each input schema with its zod; when that zod is older * than the one that built the schema it fails (`ctx.deferred.push`) or * advertises degraded schemas. This records the schemas each tool is * registered with and converts them exactly as the SDK does (draft-7, `io` * input/output, raw shapes as objects), but with the zod that built them. * Argument validation for tools/call stays with the SDK. * * Call it right after constructing the server and before registering tools. * Both `registerTool` and the positional `tool()` form are covered. */ export declare function servePackageZodToolList(server: McpServer): void; /** The input schema the SDK's positional `tool()` form takes from its arguments. */ export declare function legacyInputSchema(rest: readonly unknown[]): unknown;