UNPKG

@langchain/mcp-adapters

Version:
1 lines 705 kB
{"version":3,"file":"types.d.ts","names":["z","OAuthClientProvider","ContentBlock","ToolMessage","MessageStructure","RunnableConfig","Command","CommandParams","ToolHooks","callToolResultContentTypes","CallToolResultContentType","LoggingLevelSchema","ZodEnum","RequestIdSchema","ZodString","ZodNumber","ZodUnion","detailedOutputHandlingSchema","ZodLiteral","ZodOptional","ZodTypeAny","ZodObject","DetailedOutputHandling","output","outputHandlingSchema","OutputHandling","oAuthClientProviderSchema","ZodTypeDef","ZodType","baseConfigSchema","stdioRestartSchema","ZodBoolean","stdioConnectionSchema","ZodArray","ZodRecord","ZodDefault","Record","ZodIntersection","streamableHttpReconnectSchema","streamableHttpConnectionSchema","connectionSchema","eventContextSchema","ZodUnknown","EventContext","serverMessageSourceSchema","ServerMessageSource","notifications","ZodTuple","ZodVoid","ZodPromise","ZodFunction","Promise","Notifications","clientConfigSchema","__hooks_js0","State","Data","DataContentBlock","Multimodal","Standard","Pick","StdioConnection","input","ResolvedStdioConnection","StreamableHTTPConnection","ResolvedStreamableHTTPConnection","Connection","ClientConfig","ResolvedConnection","ResolvedClientConfig","ConnectionErrorHandler","LoadMcpToolsOptions","_resolveDetailedOutputHandling","_resolveAndApplyOverrideHandlingOverrides","CustomHTTPTransportOptions","MCPResource","MCPResourceTemplate","MCPResourceContent"],"sources":["../src/types.d.ts"],"sourcesContent":["import { z } from \"zod/v3\";\nimport type { OAuthClientProvider } from \"@modelcontextprotocol/sdk/client/auth.js\";\nimport type { ContentBlock, ToolMessage, MessageStructure } from \"@langchain/core/messages\";\nimport type { RunnableConfig } from \"@langchain/core/runnables\";\nimport type { Command, CommandParams } from \"@langchain/langgraph\";\nimport { type ToolHooks } from \"./hooks.js\";\nexport type { Command, ContentBlock, ToolMessage, MessageStructure, RunnableConfig, CommandParams, };\ndeclare const callToolResultContentTypes: readonly [\"audio\", \"image\", \"resource\", \"resource_link\", \"text\"];\nexport type CallToolResultContentType = (typeof callToolResultContentTypes)[number];\n/**\n * The severity of a log message.\n * @see {@link https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/types.ts#L1067}\n */\nexport declare const LoggingLevelSchema: z.ZodEnum<[\"debug\", \"info\", \"notice\", \"warning\", \"error\", \"critical\", \"alert\", \"emergency\"]>;\n/**\n * A uniquely identifying ID for a request in JSON-RPC.\n * @see {@link https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/types.ts#L71C1-L74C72}\n */\nexport declare const RequestIdSchema: z.ZodUnion<[z.ZodString, z.ZodNumber]>;\ndeclare const detailedOutputHandlingSchema: z.ZodObject<{\n audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n image: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource_link: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n text: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n}, \"strip\", z.ZodTypeAny, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n}, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n}>;\nexport type DetailedOutputHandling = z.output<typeof detailedOutputHandlingSchema>;\nexport declare const outputHandlingSchema: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>, z.ZodObject<{\n audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n image: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource_link: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n text: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n}, \"strip\", z.ZodTypeAny, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n}, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n}>]>;\n/**\n * Defines where to place each tool output type in the LangChain ToolMessage.\n *\n * Can be set to `content` or `artifact` to send all tool output into the ToolMessage.content or\n * ToolMessage.artifact array, respectively, or you can assign an object that maps each content type\n * to `content` or `artifact`.\n *\n * @default {\n * \"text\": \"content\",\n * \"image\": \"content\",\n * \"audio\": \"content\",\n * \"resource\": \"artifact\"\n * }\n *\n * Items in the `content` field will be used as input context for the LLM, while the artifact field is\n * used for capturing tool output that won't be shown to the model, to be used in some later workflow\n * step.\n *\n * For example, imagine that you have a SQL query tool that can return huge result sets. Rather than\n * sending these large outputs directly to the model, perhaps you want the model to be able to inspect\n * the output in a code execution environment. In this case, you would set the output handling for the\n * `resource` type to `artifact` (its default value), and then upon initialization of your code\n * execution environment, you would look through your message history for `ToolMessage`s with the\n * `artifact` field set to `resource`, and use the `content` field during initialization of the\n * environment.\n */\nexport type OutputHandling = z.output<typeof outputHandlingSchema>;\n/**\n * Zod schema for validating OAuthClientProvider interface\n * Since OAuthClientProvider has methods, we create a custom validator\n */\nexport declare const oAuthClientProviderSchema: z.ZodType<OAuthClientProvider, z.ZodTypeDef, OAuthClientProvider>;\nexport declare const baseConfigSchema: z.ZodObject<{\n /**\n * Defines where to place each tool output type in the LangChain ToolMessage.\n *\n * Can be set to `content` or `artifact` to send all tool output into the ToolMessage.content or\n * ToolMessage.artifact array, respectively, or you can assign an object that maps each content type\n * to `content` or `artifact`.\n *\n * @default {\n * \"text\": \"content\",\n * \"image\": \"content\",\n * \"audio\": \"content\",\n * \"resource\": \"artifact\"\n * }\n *\n * Items in the `content` field will be used as input context for the LLM, while the artifact field is\n * used for capturing tool output that won't be shown to the model, to be used in some later workflow\n * step.\n *\n * For example, imagine that you have a SQL query tool that can return huge result sets. Rather than\n * sending these large outputs directly to the model, perhaps you want the model to be able to inspect\n * the output in a code execution environment. In this case, you would set the output handling for the\n * `resource` type to `artifact` (its default value), and then upon initialization of your code\n * execution environment, you would look through your message history for `ToolMessage`s with the\n * `artifact` field set to `resource`, and use the `content` field during initialization of the\n * environment.\n */\n outputHandling: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>, z.ZodObject<{\n audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n image: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource_link: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n text: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n }, \"strip\", z.ZodTypeAny, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }>]>>;\n /**\n * Default timeout in milliseconds for tool execution. Must be greater than 0.\n * If not specified, tools will use their own configured timeout values.\n */\n defaultToolTimeout: z.ZodOptional<z.ZodNumber>;\n}, \"strip\", z.ZodTypeAny, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}>;\n/**\n * Stdio transport restart configuration\n */\nexport declare const stdioRestartSchema: z.ZodObject<{\n /**\n * Whether to automatically restart the process if it exits\n */\n enabled: z.ZodOptional<z.ZodBoolean>;\n /**\n * Maximum number of restart attempts\n */\n maxAttempts: z.ZodOptional<z.ZodNumber>;\n /**\n * Delay in milliseconds between restart attempts\n */\n delayMs: z.ZodOptional<z.ZodNumber>;\n}, \"strip\", z.ZodTypeAny, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n}, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n}>;\n/**\n * Stdio transport connection\n */\nexport declare const stdioConnectionSchema: z.ZodIntersection<z.ZodObject<{\n /**\n * Optional transport type, inferred from the structure of the config if not provided. Included\n * for compatibility with common MCP client config file formats.\n */\n transport: z.ZodOptional<z.ZodLiteral<\"stdio\">>;\n /**\n * Optional transport type, inferred from the structure of the config if not provided. Included\n * for compatibility with common MCP client config file formats.\n */\n type: z.ZodOptional<z.ZodLiteral<\"stdio\">>;\n /**\n * The executable to run the server (e.g. `node`, `npx`, etc)\n */\n command: z.ZodString;\n /**\n * Array of command line arguments to pass to the executable\n */\n args: z.ZodArray<z.ZodString, \"many\">;\n /**\n * Environment variables to set when spawning the process.\n */\n env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;\n /**\n * The encoding to use when reading from the process\n */\n encoding: z.ZodOptional<z.ZodString>;\n /**\n * How to handle stderr of the child process. This matches the semantics of Node's `child_process.spawn`\n *\n * The default is \"inherit\", meaning messages to stderr will be printed to the parent process's stderr.\n *\n * @default \"inherit\"\n */\n stderr: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"overlapped\">, z.ZodLiteral<\"pipe\">, z.ZodLiteral<\"ignore\">, z.ZodLiteral<\"inherit\">]>>>;\n /**\n * The working directory to use when spawning the process.\n */\n cwd: z.ZodOptional<z.ZodString>;\n /**\n * Additional restart settings\n */\n restart: z.ZodOptional<z.ZodObject<{\n /**\n * Whether to automatically restart the process if it exits\n */\n enabled: z.ZodOptional<z.ZodBoolean>;\n /**\n * Maximum number of restart attempts\n */\n maxAttempts: z.ZodOptional<z.ZodNumber>;\n /**\n * Delay in milliseconds between restart attempts\n */\n delayMs: z.ZodOptional<z.ZodNumber>;\n }, \"strip\", z.ZodTypeAny, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }>>;\n}, \"strip\", z.ZodTypeAny, {\n transport?: \"stdio\" | undefined;\n type?: \"stdio\" | undefined;\n command: string;\n args: string[];\n env?: Record<string, string> | undefined;\n encoding?: string | undefined;\n stderr: \"ignore\" | \"inherit\" | \"overlapped\" | \"pipe\";\n cwd?: string | undefined;\n restart?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n}, {\n transport?: \"stdio\" | undefined;\n type?: \"stdio\" | undefined;\n command: string;\n args: string[];\n env?: Record<string, string> | undefined;\n encoding?: string | undefined;\n stderr?: \"ignore\" | \"inherit\" | \"overlapped\" | \"pipe\" | undefined;\n cwd?: string | undefined;\n restart?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n}>, z.ZodObject<{\n /**\n * Defines where to place each tool output type in the LangChain ToolMessage.\n *\n * Can be set to `content` or `artifact` to send all tool output into the ToolMessage.content or\n * ToolMessage.artifact array, respectively, or you can assign an object that maps each content type\n * to `content` or `artifact`.\n *\n * @default {\n * \"text\": \"content\",\n * \"image\": \"content\",\n * \"audio\": \"content\",\n * \"resource\": \"artifact\"\n * }\n *\n * Items in the `content` field will be used as input context for the LLM, while the artifact field is\n * used for capturing tool output that won't be shown to the model, to be used in some later workflow\n * step.\n *\n * For example, imagine that you have a SQL query tool that can return huge result sets. Rather than\n * sending these large outputs directly to the model, perhaps you want the model to be able to inspect\n * the output in a code execution environment. In this case, you would set the output handling for the\n * `resource` type to `artifact` (its default value), and then upon initialization of your code\n * execution environment, you would look through your message history for `ToolMessage`s with the\n * `artifact` field set to `resource`, and use the `content` field during initialization of the\n * environment.\n */\n outputHandling: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>, z.ZodObject<{\n audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n image: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource_link: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n text: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n }, \"strip\", z.ZodTypeAny, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }>]>>;\n /**\n * Default timeout in milliseconds for tool execution. Must be greater than 0.\n * If not specified, tools will use their own configured timeout values.\n */\n defaultToolTimeout: z.ZodOptional<z.ZodNumber>;\n}, \"strip\", z.ZodTypeAny, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}>>;\n/**\n * Streamable HTTP transport reconnection configuration\n */\nexport declare const streamableHttpReconnectSchema: z.ZodObject<{\n /**\n * Whether to automatically reconnect if the connection is lost\n */\n enabled: z.ZodOptional<z.ZodBoolean>;\n /**\n * Maximum number of reconnection attempts\n */\n maxAttempts: z.ZodOptional<z.ZodNumber>;\n /**\n * Delay in milliseconds between reconnection attempts\n */\n delayMs: z.ZodOptional<z.ZodNumber>;\n}, \"strip\", z.ZodTypeAny, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n}, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n}>;\n/**\n * Streamable HTTP transport connection\n */\nexport declare const streamableHttpConnectionSchema: z.ZodIntersection<z.ZodObject<{\n /**\n * Optional transport type, inferred from the structure of the config. If \"sse\", will not attempt\n * to connect using streamable HTTP.\n */\n transport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"http\">, z.ZodLiteral<\"sse\">]>>;\n /**\n * Optional transport type, inferred from the structure of the config. If \"sse\", will not attempt\n * to connect using streamable HTTP.\n */\n type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"http\">, z.ZodLiteral<\"sse\">]>>;\n /**\n * The URL to connect to\n */\n url: z.ZodString;\n /**\n * Additional headers to send with the request, useful for authentication\n */\n headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;\n /**\n * OAuth client provider for automatic authentication handling.\n * When provided, the transport will automatically handle token refresh,\n * 401 error retries, and OAuth 2.0 flows according to RFC 6750.\n * This is the recommended approach for authentication instead of manual headers.\n */\n authProvider: z.ZodOptional<z.ZodType<OAuthClientProvider, z.ZodTypeDef, OAuthClientProvider>>;\n /**\n * Additional reconnection settings.\n */\n reconnect: z.ZodOptional<z.ZodObject<{\n /**\n * Whether to automatically reconnect if the connection is lost\n */\n enabled: z.ZodOptional<z.ZodBoolean>;\n /**\n * Maximum number of reconnection attempts\n */\n maxAttempts: z.ZodOptional<z.ZodNumber>;\n /**\n * Delay in milliseconds between reconnection attempts\n */\n delayMs: z.ZodOptional<z.ZodNumber>;\n }, \"strip\", z.ZodTypeAny, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }>>;\n /**\n * Whether to automatically fallback to SSE if Streamable HTTP is not available or not supported\n *\n * @default true\n */\n automaticSSEFallback: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;\n}, \"strip\", z.ZodTypeAny, {\n transport?: \"http\" | \"sse\" | undefined;\n type?: \"http\" | \"sse\" | undefined;\n url: string;\n headers?: Record<string, string> | undefined;\n authProvider?: OAuthClientProvider | undefined;\n reconnect?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n automaticSSEFallback: boolean;\n}, {\n transport?: \"http\" | \"sse\" | undefined;\n type?: \"http\" | \"sse\" | undefined;\n url: string;\n headers?: Record<string, string> | undefined;\n authProvider?: OAuthClientProvider | undefined;\n reconnect?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n automaticSSEFallback?: boolean | undefined;\n}>, z.ZodObject<{\n /**\n * Defines where to place each tool output type in the LangChain ToolMessage.\n *\n * Can be set to `content` or `artifact` to send all tool output into the ToolMessage.content or\n * ToolMessage.artifact array, respectively, or you can assign an object that maps each content type\n * to `content` or `artifact`.\n *\n * @default {\n * \"text\": \"content\",\n * \"image\": \"content\",\n * \"audio\": \"content\",\n * \"resource\": \"artifact\"\n * }\n *\n * Items in the `content` field will be used as input context for the LLM, while the artifact field is\n * used for capturing tool output that won't be shown to the model, to be used in some later workflow\n * step.\n *\n * For example, imagine that you have a SQL query tool that can return huge result sets. Rather than\n * sending these large outputs directly to the model, perhaps you want the model to be able to inspect\n * the output in a code execution environment. In this case, you would set the output handling for the\n * `resource` type to `artifact` (its default value), and then upon initialization of your code\n * execution environment, you would look through your message history for `ToolMessage`s with the\n * `artifact` field set to `resource`, and use the `content` field during initialization of the\n * environment.\n */\n outputHandling: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>, z.ZodObject<{\n audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n image: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource_link: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n text: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n }, \"strip\", z.ZodTypeAny, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }>]>>;\n /**\n * Default timeout in milliseconds for tool execution. Must be greater than 0.\n * If not specified, tools will use their own configured timeout values.\n */\n defaultToolTimeout: z.ZodOptional<z.ZodNumber>;\n}, \"strip\", z.ZodTypeAny, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}>>;\n/**\n * Create combined schema for all transport connection types\n */\nexport declare const connectionSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{\n /**\n * Optional transport type, inferred from the structure of the config if not provided. Included\n * for compatibility with common MCP client config file formats.\n */\n transport: z.ZodOptional<z.ZodLiteral<\"stdio\">>;\n /**\n * Optional transport type, inferred from the structure of the config if not provided. Included\n * for compatibility with common MCP client config file formats.\n */\n type: z.ZodOptional<z.ZodLiteral<\"stdio\">>;\n /**\n * The executable to run the server (e.g. `node`, `npx`, etc)\n */\n command: z.ZodString;\n /**\n * Array of command line arguments to pass to the executable\n */\n args: z.ZodArray<z.ZodString, \"many\">;\n /**\n * Environment variables to set when spawning the process.\n */\n env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;\n /**\n * The encoding to use when reading from the process\n */\n encoding: z.ZodOptional<z.ZodString>;\n /**\n * How to handle stderr of the child process. This matches the semantics of Node's `child_process.spawn`\n *\n * The default is \"inherit\", meaning messages to stderr will be printed to the parent process's stderr.\n *\n * @default \"inherit\"\n */\n stderr: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"overlapped\">, z.ZodLiteral<\"pipe\">, z.ZodLiteral<\"ignore\">, z.ZodLiteral<\"inherit\">]>>>;\n /**\n * The working directory to use when spawning the process.\n */\n cwd: z.ZodOptional<z.ZodString>;\n /**\n * Additional restart settings\n */\n restart: z.ZodOptional<z.ZodObject<{\n /**\n * Whether to automatically restart the process if it exits\n */\n enabled: z.ZodOptional<z.ZodBoolean>;\n /**\n * Maximum number of restart attempts\n */\n maxAttempts: z.ZodOptional<z.ZodNumber>;\n /**\n * Delay in milliseconds between restart attempts\n */\n delayMs: z.ZodOptional<z.ZodNumber>;\n }, \"strip\", z.ZodTypeAny, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }>>;\n}, \"strip\", z.ZodTypeAny, {\n transport?: \"stdio\" | undefined;\n type?: \"stdio\" | undefined;\n command: string;\n args: string[];\n env?: Record<string, string> | undefined;\n encoding?: string | undefined;\n stderr: \"ignore\" | \"inherit\" | \"overlapped\" | \"pipe\";\n cwd?: string | undefined;\n restart?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n}, {\n transport?: \"stdio\" | undefined;\n type?: \"stdio\" | undefined;\n command: string;\n args: string[];\n env?: Record<string, string> | undefined;\n encoding?: string | undefined;\n stderr?: \"ignore\" | \"inherit\" | \"overlapped\" | \"pipe\" | undefined;\n cwd?: string | undefined;\n restart?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n}>, z.ZodObject<{\n /**\n * Defines where to place each tool output type in the LangChain ToolMessage.\n *\n * Can be set to `content` or `artifact` to send all tool output into the ToolMessage.content or\n * ToolMessage.artifact array, respectively, or you can assign an object that maps each content type\n * to `content` or `artifact`.\n *\n * @default {\n * \"text\": \"content\",\n * \"image\": \"content\",\n * \"audio\": \"content\",\n * \"resource\": \"artifact\"\n * }\n *\n * Items in the `content` field will be used as input context for the LLM, while the artifact field is\n * used for capturing tool output that won't be shown to the model, to be used in some later workflow\n * step.\n *\n * For example, imagine that you have a SQL query tool that can return huge result sets. Rather than\n * sending these large outputs directly to the model, perhaps you want the model to be able to inspect\n * the output in a code execution environment. In this case, you would set the output handling for the\n * `resource` type to `artifact` (its default value), and then upon initialization of your code\n * execution environment, you would look through your message history for `ToolMessage`s with the\n * `artifact` field set to `resource`, and use the `content` field during initialization of the\n * environment.\n */\n outputHandling: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>, z.ZodObject<{\n audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n image: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource_link: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n text: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n }, \"strip\", z.ZodTypeAny, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }>]>>;\n /**\n * Default timeout in milliseconds for tool execution. Must be greater than 0.\n * If not specified, tools will use their own configured timeout values.\n */\n defaultToolTimeout: z.ZodOptional<z.ZodNumber>;\n}, \"strip\", z.ZodTypeAny, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}>>, z.ZodIntersection<z.ZodObject<{\n /**\n * Optional transport type, inferred from the structure of the config. If \"sse\", will not attempt\n * to connect using streamable HTTP.\n */\n transport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"http\">, z.ZodLiteral<\"sse\">]>>;\n /**\n * Optional transport type, inferred from the structure of the config. If \"sse\", will not attempt\n * to connect using streamable HTTP.\n */\n type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"http\">, z.ZodLiteral<\"sse\">]>>;\n /**\n * The URL to connect to\n */\n url: z.ZodString;\n /**\n * Additional headers to send with the request, useful for authentication\n */\n headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;\n /**\n * OAuth client provider for automatic authentication handling.\n * When provided, the transport will automatically handle token refresh,\n * 401 error retries, and OAuth 2.0 flows according to RFC 6750.\n * This is the recommended approach for authentication instead of manual headers.\n */\n authProvider: z.ZodOptional<z.ZodType<OAuthClientProvider, z.ZodTypeDef, OAuthClientProvider>>;\n /**\n * Additional reconnection settings.\n */\n reconnect: z.ZodOptional<z.ZodObject<{\n /**\n * Whether to automatically reconnect if the connection is lost\n */\n enabled: z.ZodOptional<z.ZodBoolean>;\n /**\n * Maximum number of reconnection attempts\n */\n maxAttempts: z.ZodOptional<z.ZodNumber>;\n /**\n * Delay in milliseconds between reconnection attempts\n */\n delayMs: z.ZodOptional<z.ZodNumber>;\n }, \"strip\", z.ZodTypeAny, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }>>;\n /**\n * Whether to automatically fallback to SSE if Streamable HTTP is not available or not supported\n *\n * @default true\n */\n automaticSSEFallback: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;\n}, \"strip\", z.ZodTypeAny, {\n transport?: \"http\" | \"sse\" | undefined;\n type?: \"http\" | \"sse\" | undefined;\n url: string;\n headers?: Record<string, string> | undefined;\n authProvider?: OAuthClientProvider | undefined;\n reconnect?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n automaticSSEFallback: boolean;\n}, {\n transport?: \"http\" | \"sse\" | undefined;\n type?: \"http\" | \"sse\" | undefined;\n url: string;\n headers?: Record<string, string> | undefined;\n authProvider?: OAuthClientProvider | undefined;\n reconnect?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n automaticSSEFallback?: boolean | undefined;\n}>, z.ZodObject<{\n /**\n * Defines where to place each tool output type in the LangChain ToolMessage.\n *\n * Can be set to `content` or `artifact` to send all tool output into the ToolMessage.content or\n * ToolMessage.artifact array, respectively, or you can assign an object that maps each content type\n * to `content` or `artifact`.\n *\n * @default {\n * \"text\": \"content\",\n * \"image\": \"content\",\n * \"audio\": \"content\",\n * \"resource\": \"artifact\"\n * }\n *\n * Items in the `content` field will be used as input context for the LLM, while the artifact field is\n * used for capturing tool output that won't be shown to the model, to be used in some later workflow\n * step.\n *\n * For example, imagine that you have a SQL query tool that can return huge result sets. Rather than\n * sending these large outputs directly to the model, perhaps you want the model to be able to inspect\n * the output in a code execution environment. In this case, you would set the output handling for the\n * `resource` type to `artifact` (its default value), and then upon initialization of your code\n * execution environment, you would look through your message history for `ToolMessage`s with the\n * `artifact` field set to `resource`, and use the `content` field during initialization of the\n * environment.\n */\n outputHandling: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>, z.ZodObject<{\n audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n image: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource_link: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n text: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n }, \"strip\", z.ZodTypeAny, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }>]>>;\n /**\n * Default timeout in milliseconds for tool execution. Must be greater than 0.\n * If not specified, tools will use their own configured timeout values.\n */\n defaultToolTimeout: z.ZodOptional<z.ZodNumber>;\n}, \"strip\", z.ZodTypeAny, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n}>>]>;\ndeclare const eventContextSchema: z.ZodUnion<[z.ZodObject<{\n type: z.ZodLiteral<\"tool\">;\n name: z.ZodString;\n args: z.ZodUnknown;\n server: z.ZodString;\n}, \"strip\", z.ZodTypeAny, {\n type: \"tool\";\n name: string;\n args?: unknown;\n server: string;\n}, {\n type: \"tool\";\n name: string;\n args?: unknown;\n server: string;\n}>, z.ZodObject<{\n type: z.ZodLiteral<\"unknown\">;\n}, \"strip\", z.ZodTypeAny, {\n type: \"unknown\";\n}, {\n type: \"unknown\";\n}>]>;\nexport type EventContext = z.output<typeof eventContextSchema>;\ndeclare const serverMessageSourceSchema: z.ZodObject<{\n server: z.ZodString;\n options: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{\n /**\n * Optional transport type, inferred from the structure of the config if not provided. Included\n * for compatibility with common MCP client config file formats.\n */\n transport: z.ZodOptional<z.ZodLiteral<\"stdio\">>;\n /**\n * Optional transport type, inferred from the structure of the config if not provided. Included\n * for compatibility with common MCP client config file formats.\n */\n type: z.ZodOptional<z.ZodLiteral<\"stdio\">>;\n /**\n * The executable to run the server (e.g. `node`, `npx`, etc)\n */\n command: z.ZodString;\n /**\n * Array of command line arguments to pass to the executable\n */\n args: z.ZodArray<z.ZodString, \"many\">;\n /**\n * Environment variables to set when spawning the process.\n */\n env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;\n /**\n * The encoding to use when reading from the process\n */\n encoding: z.ZodOptional<z.ZodString>;\n /**\n * How to handle stderr of the child process. This matches the semantics of Node's `child_process.spawn`\n *\n * The default is \"inherit\", meaning messages to stderr will be printed to the parent process's stderr.\n *\n * @default \"inherit\"\n */\n stderr: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"overlapped\">, z.ZodLiteral<\"pipe\">, z.ZodLiteral<\"ignore\">, z.ZodLiteral<\"inherit\">]>>>;\n /**\n * The working directory to use when spawning the process.\n */\n cwd: z.ZodOptional<z.ZodString>;\n /**\n * Additional restart settings\n */\n restart: z.ZodOptional<z.ZodObject<{\n /**\n * Whether to automatically restart the process if it exits\n */\n enabled: z.ZodOptional<z.ZodBoolean>;\n /**\n * Maximum number of restart attempts\n */\n maxAttempts: z.ZodOptional<z.ZodNumber>;\n /**\n * Delay in milliseconds between restart attempts\n */\n delayMs: z.ZodOptional<z.ZodNumber>;\n }, \"strip\", z.ZodTypeAny, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }, {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n }>>;\n }, \"strip\", z.ZodTypeAny, {\n transport?: \"stdio\" | undefined;\n type?: \"stdio\" | undefined;\n command: string;\n args: string[];\n env?: Record<string, string> | undefined;\n encoding?: string | undefined;\n stderr: \"ignore\" | \"inherit\" | \"overlapped\" | \"pipe\";\n cwd?: string | undefined;\n restart?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n }, {\n transport?: \"stdio\" | undefined;\n type?: \"stdio\" | undefined;\n command: string;\n args: string[];\n env?: Record<string, string> | undefined;\n encoding?: string | undefined;\n stderr?: \"ignore\" | \"inherit\" | \"overlapped\" | \"pipe\" | undefined;\n cwd?: string | undefined;\n restart?: {\n enabled?: boolean | undefined;\n maxAttempts?: number | undefined;\n delayMs?: number | undefined;\n } | undefined;\n }>, z.ZodObject<{\n /**\n * Defines where to place each tool output type in the LangChain ToolMessage.\n *\n * Can be set to `content` or `artifact` to send all tool output into the ToolMessage.content or\n * ToolMessage.artifact array, respectively, or you can assign an object that maps each content type\n * to `content` or `artifact`.\n *\n * @default {\n * \"text\": \"content\",\n * \"image\": \"content\",\n * \"audio\": \"content\",\n * \"resource\": \"artifact\"\n * }\n *\n * Items in the `content` field will be used as input context for the LLM, while the artifact field is\n * used for capturing tool output that won't be shown to the model, to be used in some later workflow\n * step.\n *\n * For example, imagine that you have a SQL query tool that can return huge result sets. Rather than\n * sending these large outputs directly to the model, perhaps you want the model to be able to inspect\n * the output in a code execution environment. In this case, you would set the output handling for the\n * `resource` type to `artifact` (its default value), and then upon initialization of your code\n * execution environment, you would look through your message history for `ToolMessage`s with the\n * `artifact` field set to `resource`, and use the `content` field during initialization of the\n * environment.\n */\n outputHandling: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>, z.ZodObject<{\n audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n image: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n resource_link: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n text: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"content\">, z.ZodLiteral<\"artifact\">]>>;\n }, \"strip\", z.ZodTypeAny, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }, {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n }>]>>;\n /**\n * Default timeout in milliseconds for tool execution. Must be greater than 0.\n * If not specified, tools will use their own configured timeout values.\n */\n defaultToolTimeout: z.ZodOptional<z.ZodNumber>;\n }, \"strip\", z.ZodTypeAny, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n }, {\n outputHandling?: \"artifact\" | \"content\" | {\n audio?: \"artifact\" | \"content\" | undefined;\n image?: \"artifact\" | \"content\" | undefined;\n resource?: \"artifact\" | \"content\" | undefined;\n resource_link?: \"artifact\" | \"content\" | undefined;\n text?: \"artifact\" | \"content\" | undefined;\n } | undefined;\n defaultToolTimeout?: number | undefined;\n }>>, z.ZodIntersection<z.ZodObject<{\n /**\n * Optional transport type, inferred from the structure of the config. If \"sse\", will not attempt\n * to connect using streamable HTTP.\n */\n transport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"http\">, z.ZodLiteral<\"sse\">]>>;\n /**\n * Optional transport type, inferred from the structure of the config. If \"sse\", will not attempt\n * to connect using streamable HTTP.\n */\n type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<\"http\">, z.ZodLiteral<\"sse\">]>>;\n /**\n * The URL to connect to\n */\n url: z.ZodString;\n /**\n * Additional headers to send with the request, useful for authent