import * as z from 'zod/v4'; import { AuthInfo } from './server/auth/types.js'; export declare const LATEST_PROTOCOL_VERSION = "2025-06-18"; export declare const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26"; export declare const SUPPORTED_PROTOCOL_VERSIONS: string[]; export declare const JSONRPC_VERSION = "2.0"; /** * Utility types */ type ExpandRecursively = T extends object ? (T extends infer O ? { [K in keyof O]: ExpandRecursively; } : never) : T; /** * A progress token, used to associate progress notifications with the original request. */ export declare const ProgressTokenSchema: z.ZodUnion; /** * An opaque token used to represent a cursor for pagination. */ export declare const CursorSchema: z.ZodString; declare const RequestMetaSchema: z.ZodObject<{ /** * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications. */ progressToken: z.ZodOptional>; }, z.core.$loose>; /** * Common params for any request. */ declare const BaseRequestParamsSchema: z.ZodObject<{ /** * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage. */ _meta: z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>; export declare const RequestSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$strip>; declare const NotificationsParamsSchema: z.ZodObject<{ /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional>; }, z.core.$loose>; export declare const NotificationSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>; export declare const ResultSchema: z.ZodObject<{ /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional>; }, z.core.$loose>; /** * A uniquely identifying ID for a request in JSON-RPC. */ export declare const RequestIdSchema: z.ZodUnion; /** * A request that expects a response. */ export declare const JSONRPCRequestSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; }, z.core.$strict>; export declare const isJSONRPCRequest: (value: unknown) => value is JSONRPCRequest; /** * A notification which does not expect a response. */ export declare const JSONRPCNotificationSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; }, z.core.$loose>>; jsonrpc: z.ZodLiteral<"2.0">; }, z.core.$strict>; export declare const isJSONRPCNotification: (value: unknown) => value is JSONRPCNotification; /** * A successful (non-error) response to a request. */ export declare const JSONRPCResponseSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; result: z.ZodObject<{ /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional>; }, z.core.$loose>; }, z.core.$strict>; export declare const isJSONRPCResponse: (value: unknown) => value is JSONRPCResponse; /** * Error codes defined by the JSON-RPC specification. */ export declare enum ErrorCode { ConnectionClosed = -32000, RequestTimeout = -32001, ParseError = -32700, InvalidRequest = -32600, MethodNotFound = -32601, InvalidParams = -32602, InternalError = -32603, UrlElicitationRequired = -32042 } /** * A response to a request that indicates an error occurred. */ export declare const JSONRPCErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; }, z.core.$strict>; export declare const isJSONRPCError: (value: unknown) => value is JSONRPCError; export declare const JSONRPCMessageSchema: z.ZodUnion>; }, z.core.$loose>>; }, z.core.$loose>>; jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; }, z.core.$strict>, z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; }, z.core.$loose>>; jsonrpc: z.ZodLiteral<"2.0">; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; result: z.ZodObject<{ /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional>; }, z.core.$loose>; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; }, z.core.$strict>]>; /** * A response that indicates success but carries no data. */ export declare const EmptyResultSchema: z.ZodObject<{ /** * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields) * for notes on _meta usage. */ _meta: z.ZodOptional>; }, z.core.$strict>; export declare const CancelledNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; requestId: z.ZodUnion; reason: z.ZodOptional; }, z.core.$loose>; /** * This notification can be sent by either side to indicate that it is cancelling a previously-issued request. * * The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. * * This notification indicates that the result will be unused, so any associated processing SHOULD cease. * * A client MUST NOT attempt to cancel its `initialize` request. */ export declare const CancelledNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/cancelled">; params: z.ZodObject<{ _meta: z.ZodOptional>; requestId: z.ZodUnion; reason: z.ZodOptional; }, z.core.$loose>; }, z.core.$strip>; /** * Icon schema for use in tools, prompts, resources, and implementations. */ export declare const IconSchema: z.ZodObject<{ src: z.ZodString; mimeType: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>; /** * Base schema to add `icons` property. * */ export declare const IconsSchema: z.ZodObject<{ icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; /** * Base metadata interface for common properties across resources, tools, prompts, and implementations. */ export declare const BaseMetadataSchema: z.ZodObject<{ name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * Describes the name and version of an MCP implementation. */ export declare const ImplementationSchema: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. */ export declare const ClientCapabilitiesSchema: z.ZodObject<{ experimental: z.ZodOptional>>; sampling: z.ZodOptional>; tools: z.ZodOptional>; }, z.core.$strip>>; elicitation: z.ZodOptional, z.ZodIntersection; }, z.core.$strip>, z.ZodRecord>>; url: z.ZodOptional>; }, z.core.$strip>, z.ZodOptional>>>>; roots: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const InitializeRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; protocolVersion: z.ZodString; capabilities: z.ZodObject<{ experimental: z.ZodOptional>>; sampling: z.ZodOptional>; tools: z.ZodOptional>; }, z.core.$strip>>; elicitation: z.ZodOptional, z.ZodIntersection; }, z.core.$strip>, z.ZodRecord>>; url: z.ZodOptional>; }, z.core.$strip>, z.ZodOptional>>>>; roots: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; clientInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; }, z.core.$loose>; /** * This request is sent from the client to the server when it first connects, asking it to begin initialization. */ export declare const InitializeRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"initialize">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; protocolVersion: z.ZodString; capabilities: z.ZodObject<{ experimental: z.ZodOptional>>; sampling: z.ZodOptional>; tools: z.ZodOptional>; }, z.core.$strip>>; elicitation: z.ZodOptional, z.ZodIntersection; }, z.core.$strip>, z.ZodRecord>>; url: z.ZodOptional>; }, z.core.$strip>, z.ZodOptional>>>>; roots: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; clientInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; }, z.core.$loose>; }, z.core.$strip>; export declare const isInitializeRequest: (value: unknown) => value is InitializeRequest; /** * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. */ export declare const ServerCapabilitiesSchema: z.ZodObject<{ experimental: z.ZodOptional>>; logging: z.ZodOptional>; completions: z.ZodOptional>; prompts: z.ZodOptional; }, z.core.$strip>>; resources: z.ZodOptional; listChanged: z.ZodOptional; }, z.core.$strip>>; tools: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** * After receiving an initialize request from the client, the server sends this response. */ export declare const InitializeResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; protocolVersion: z.ZodString; capabilities: z.ZodObject<{ experimental: z.ZodOptional>>; logging: z.ZodOptional>; completions: z.ZodOptional>; prompts: z.ZodOptional; }, z.core.$strip>>; resources: z.ZodOptional; listChanged: z.ZodOptional; }, z.core.$strip>>; tools: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; serverInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; instructions: z.ZodOptional; }, z.core.$loose>; /** * This notification is sent from the client to the server after initialization has finished. */ export declare const InitializedNotificationSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/initialized">; }, z.core.$strip>; export declare const isInitializedNotification: (value: unknown) => value is InitializedNotification; /** * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. */ export declare const PingRequestSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; method: z.ZodLiteral<"ping">; }, z.core.$strip>; export declare const ProgressSchema: z.ZodObject<{ progress: z.ZodNumber; total: z.ZodOptional; message: z.ZodOptional; }, z.core.$strip>; export declare const ProgressNotificationParamsSchema: z.ZodObject<{ progressToken: z.ZodUnion; progress: z.ZodNumber; total: z.ZodOptional; message: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>; /** * An out-of-band notification used to inform the receiver of a progress update for a long-running request. * * @category notifications/progress */ export declare const ProgressNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/progress">; params: z.ZodObject<{ progressToken: z.ZodUnion; progress: z.ZodNumber; total: z.ZodOptional; message: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; export declare const PaginatedRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>; export declare const PaginatedRequestSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; }, z.core.$strip>; export declare const PaginatedResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; }, z.core.$loose>; /** * The contents of a specific resource or sub-resource. */ export declare const ResourceContentsSchema: z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>; export declare const TextResourceContentsSchema: z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>; export declare const BlobResourceContentsSchema: z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>; /** * A known resource that the server is capable of reading. */ export declare const ResourceSchema: z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * A template description for resources available on the server. */ export declare const ResourceTemplateSchema: z.ZodObject<{ uriTemplate: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * Sent from the client to request a list of resources the server has. */ export declare const ListResourcesRequestSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; method: z.ZodLiteral<"resources/list">; }, z.core.$strip>; /** * The server's response to a resources/list request from the client. */ export declare const ListResourcesResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; resources: z.ZodArray; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; /** * Sent from the client to request a list of resource templates the server has. */ export declare const ListResourceTemplatesRequestSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; method: z.ZodLiteral<"resources/templates/list">; }, z.core.$strip>; /** * The server's response to a resources/templates/list request from the client. */ export declare const ListResourceTemplatesResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; resourceTemplates: z.ZodArray; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; export declare const ResourceRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; /** * Parameters for a `resources/read` request. */ export declare const ReadResourceRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; /** * Sent from the client to the server, to read a specific resource URI. */ export declare const ReadResourceRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"resources/read">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; }, z.core.$strip>; /** * The server's response to a resources/read request from the client. */ export declare const ReadResourceResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; contents: z.ZodArray; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>>; }, z.core.$loose>; /** * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. */ export declare const ResourceListChangedNotificationSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/resources/list_changed">; }, z.core.$strip>; export declare const SubscribeRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; /** * Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. */ export declare const SubscribeRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"resources/subscribe">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; }, z.core.$strip>; export declare const UnsubscribeRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; /** * Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. */ export declare const UnsubscribeRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"resources/unsubscribe">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; }, z.core.$strip>; /** * Parameters for a `notifications/resources/updated` notification. */ export declare const ResourceUpdatedNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; uri: z.ZodString; }, z.core.$loose>; /** * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request. */ export declare const ResourceUpdatedNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/resources/updated">; params: z.ZodObject<{ _meta: z.ZodOptional>; uri: z.ZodString; }, z.core.$loose>; }, z.core.$strip>; /** * Describes an argument that a prompt can accept. */ export declare const PromptArgumentSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>; /** * A prompt or prompt template that the server offers. */ export declare const PromptSchema: z.ZodObject<{ description: z.ZodOptional; arguments: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * Sent from the client to request a list of prompts and prompt templates the server has. */ export declare const ListPromptsRequestSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; method: z.ZodLiteral<"prompts/list">; }, z.core.$strip>; /** * The server's response to a prompts/list request from the client. */ export declare const ListPromptsResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; prompts: z.ZodArray; arguments: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; /** * Parameters for a `prompts/get` request. */ export declare const GetPromptRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$loose>; /** * Used by the client to get a prompt provided by the server. */ export declare const GetPromptRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"prompts/get">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$loose>; }, z.core.$strip>; /** * Text provided to or from an LLM. */ export declare const TextContentSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>; /** * An image provided to or from an LLM. */ export declare const ImageContentSchema: z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>; /** * An Audio provided to or from an LLM. */ export declare const AudioContentSchema: z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>; /** * A tool call request from an assistant (LLM). * Represents the assistant's request to use a tool. */ export declare const ToolUseContentSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>; /** * The contents of a resource, embedded into a prompt or tool call result. */ export declare const EmbeddedResourceSchema: z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>; /** * A resource that the server is capable of reading, included in a prompt or tool call result. * * Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests. */ export declare const ResourceLinkSchema: z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>; /** * A content block that can be used in prompts and tool results. */ export declare const ContentBlockSchema: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>; /** * Describes a message returned as part of a prompt. */ export declare const PromptMessageSchema: z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>; }, z.core.$strip>; /** * The server's response to a prompts/get request from the client. */ export declare const GetPromptResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; description: z.ZodOptional; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>; }, z.core.$strip>>; }, z.core.$loose>; /** * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. */ export declare const PromptListChangedNotificationSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/prompts/list_changed">; }, z.core.$strip>; /** * Additional properties describing a Tool to clients. * * NOTE: all properties in ToolAnnotations are **hints**. * They are not guaranteed to provide a faithful description of * tool behavior (including descriptive properties like `title`). * * Clients should never make tool use decisions based on ToolAnnotations * received from untrusted servers. */ export declare const ToolAnnotationsSchema: z.ZodObject<{ title: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strip>; /** * Definition for a tool the client can call. */ export declare const ToolSchema: z.ZodObject<{ description: z.ZodOptional; inputSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>; outputSchema: z.ZodOptional; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * Sent from the client to request a list of tools the server has. */ export declare const ListToolsRequestSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; method: z.ZodLiteral<"tools/list">; }, z.core.$strip>; /** * The server's response to a tools/list request from the client. */ export declare const ListToolsResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; tools: z.ZodArray; inputSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>; outputSchema: z.ZodOptional; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; /** * The server's response to a tool call. */ export declare const CallToolResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$loose>; /** * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07. */ export declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<{ _meta: z.ZodOptional>; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; toolResult: z.ZodUnknown; }, z.core.$loose>]>; /** * Parameters for a `tools/call` request. */ export declare const CallToolRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$loose>; /** * Used by the client to invoke a tool provided by the server. */ export declare const CallToolRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"tools/call">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$loose>; }, z.core.$strip>; /** * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. */ export declare const ToolListChangedNotificationSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/tools/list_changed">; }, z.core.$strip>; /** * The severity of a log message. */ export declare const LoggingLevelSchema: z.ZodEnum<{ error: "error"; debug: "debug"; info: "info"; notice: "notice"; warning: "warning"; critical: "critical"; alert: "alert"; emergency: "emergency"; }>; /** * Parameters for a `logging/setLevel` request. */ export declare const SetLevelRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; level: z.ZodEnum<{ error: "error"; debug: "debug"; info: "info"; notice: "notice"; warning: "warning"; critical: "critical"; alert: "alert"; emergency: "emergency"; }>; }, z.core.$loose>; /** * A request from the client to the server, to enable or adjust logging. */ export declare const SetLevelRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"logging/setLevel">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; level: z.ZodEnum<{ error: "error"; debug: "debug"; info: "info"; notice: "notice"; warning: "warning"; critical: "critical"; alert: "alert"; emergency: "emergency"; }>; }, z.core.$loose>; }, z.core.$strip>; /** * Parameters for a `notifications/message` notification. */ export declare const LoggingMessageNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; level: z.ZodEnum<{ error: "error"; debug: "debug"; info: "info"; notice: "notice"; warning: "warning"; critical: "critical"; alert: "alert"; emergency: "emergency"; }>; logger: z.ZodOptional; data: z.ZodUnknown; }, z.core.$loose>; /** * Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. */ export declare const LoggingMessageNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/message">; params: z.ZodObject<{ _meta: z.ZodOptional>; level: z.ZodEnum<{ error: "error"; debug: "debug"; info: "info"; notice: "notice"; warning: "warning"; critical: "critical"; alert: "alert"; emergency: "emergency"; }>; logger: z.ZodOptional; data: z.ZodUnknown; }, z.core.$loose>; }, z.core.$strip>; /** * Hints to use for model selection. */ export declare const ModelHintSchema: z.ZodObject<{ name: z.ZodOptional; }, z.core.$strip>; /** * The server's preferences for model selection, requested of the client during sampling. */ export declare const ModelPreferencesSchema: z.ZodObject<{ hints: z.ZodOptional; }, z.core.$strip>>>; costPriority: z.ZodOptional; speedPriority: z.ZodOptional; intelligencePriority: z.ZodOptional; }, z.core.$strip>; /** * Controls tool usage behavior in sampling requests. */ export declare const ToolChoiceSchema: z.ZodObject<{ mode: z.ZodOptional>; }, z.core.$strip>; /** * The result of a tool execution, provided by the user (server). * Represents the outcome of invoking a tool requested via ToolUseContent. */ export declare const ToolResultContentSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>; /** * Content block types allowed in sampling messages. * This includes text, image, audio, tool use requests, and tool results. */ export declare const SamplingMessageContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>; /** * Describes a message issued to or received from an LLM API. */ export declare const SamplingMessageSchema: z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>, z.ZodArray; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>>]>; _meta: z.ZodOptional>; }, z.core.$loose>; /** * Parameters for a `sampling/createMessage` request. */ export declare const CreateMessageRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>, z.ZodArray; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>>]>; _meta: z.ZodOptional>; }, z.core.$loose>>; modelPreferences: z.ZodOptional; }, z.core.$strip>>>; costPriority: z.ZodOptional; speedPriority: z.ZodOptional; intelligencePriority: z.ZodOptional; }, z.core.$strip>>; systemPrompt: z.ZodOptional; includeContext: z.ZodOptional>; temperature: z.ZodOptional; maxTokens: z.ZodNumber; stopSequences: z.ZodOptional>; metadata: z.ZodOptional>; tools: z.ZodOptional; inputSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>; outputSchema: z.ZodOptional; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>>; toolChoice: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>; /** * A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. */ export declare const CreateMessageRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"sampling/createMessage">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>, z.ZodArray; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>>]>; _meta: z.ZodOptional>; }, z.core.$loose>>; modelPreferences: z.ZodOptional; }, z.core.$strip>>>; costPriority: z.ZodOptional; speedPriority: z.ZodOptional; intelligencePriority: z.ZodOptional; }, z.core.$strip>>; systemPrompt: z.ZodOptional; includeContext: z.ZodOptional>; temperature: z.ZodOptional; maxTokens: z.ZodNumber; stopSequences: z.ZodOptional>; metadata: z.ZodOptional>; tools: z.ZodOptional; inputSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>; outputSchema: z.ZodOptional; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>>; toolChoice: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>; }, z.core.$strip>; /** * The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it. */ export declare const CreateMessageResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; model: z.ZodString; stopReason: z.ZodOptional, z.ZodString]>>; role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>, z.ZodArray; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>>]>; }, z.core.$loose>; /** * Primitive schema definition for boolean fields. */ export declare const BooleanSchemaSchema: z.ZodObject<{ type: z.ZodLiteral<"boolean">; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>; /** * Primitive schema definition for string fields. */ export declare const StringSchemaSchema: z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; format: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>; /** * Primitive schema definition for number fields. */ export declare const NumberSchemaSchema: z.ZodObject<{ type: z.ZodEnum<{ number: "number"; integer: "integer"; }>; title: z.ZodOptional; description: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>; /** * Schema for single-selection enumeration without display titles for options. */ export declare const UntitledSingleSelectEnumSchemaSchema: z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; default: z.ZodOptional; }, z.core.$strip>; /** * Schema for single-selection enumeration with display titles for each option. */ export declare const TitledSingleSelectEnumSchemaSchema: z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; oneOf: z.ZodArray>; default: z.ZodOptional; }, z.core.$strip>; /** * Use TitledSingleSelectEnumSchema instead. * This interface will be removed in a future version. */ export declare const LegacyTitledEnumSchemaSchema: z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; enumNames: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>; export declare const SingleSelectEnumSchemaSchema: z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; oneOf: z.ZodArray>; default: z.ZodOptional; }, z.core.$strip>]>; /** * Schema for multiple-selection enumeration without display titles for options. */ export declare const UntitledMultiSelectEnumSchemaSchema: z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ type: z.ZodLiteral<"string">; enum: z.ZodArray; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>; /** * Schema for multiple-selection enumeration with display titles for each option. */ export declare const TitledMultiSelectEnumSchemaSchema: z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ anyOf: z.ZodArray>; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>; /** * Combined schema for multiple-selection enumeration */ export declare const MultiSelectEnumSchemaSchema: z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ type: z.ZodLiteral<"string">; enum: z.ZodArray; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ anyOf: z.ZodArray>; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>]>; /** * Primitive schema definition for enum fields. */ export declare const EnumSchemaSchema: z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; enumNames: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; oneOf: z.ZodArray>; default: z.ZodOptional; }, z.core.$strip>]>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ type: z.ZodLiteral<"string">; enum: z.ZodArray; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ anyOf: z.ZodArray>; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>]>]>; /** * Union of all primitive schema definitions. */ export declare const PrimitiveSchemaDefinitionSchema: z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; enumNames: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; oneOf: z.ZodArray>; default: z.ZodOptional; }, z.core.$strip>]>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ type: z.ZodLiteral<"string">; enum: z.ZodArray; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ anyOf: z.ZodArray>; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>]>]>, z.ZodObject<{ type: z.ZodLiteral<"boolean">; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; format: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodEnum<{ number: "number"; integer: "integer"; }>; title: z.ZodOptional; description: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>]>; /** * Parameters for an `elicitation/create` request for form-based elicitation. */ export declare const ElicitRequestFormParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; mode: z.ZodOptional>; message: z.ZodString; requestedSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; enumNames: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; oneOf: z.ZodArray>; default: z.ZodOptional; }, z.core.$strip>]>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ type: z.ZodLiteral<"string">; enum: z.ZodArray; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ anyOf: z.ZodArray>; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>]>]>, z.ZodObject<{ type: z.ZodLiteral<"boolean">; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; format: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodEnum<{ number: "number"; integer: "integer"; }>; title: z.ZodOptional; description: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>]>>; required: z.ZodOptional>; }, z.core.$strip>; }, z.core.$loose>; /** * Parameters for an `elicitation/create` request for URL-based elicitation. */ export declare const ElicitRequestURLParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; mode: z.ZodLiteral<"url">; message: z.ZodString; elicitationId: z.ZodString; url: z.ZodString; }, z.core.$loose>; /** * The parameters for a request to elicit additional information from the user via the client. */ export declare const ElicitRequestParamsSchema: z.ZodUnion>; }, z.core.$loose>>; mode: z.ZodOptional>; message: z.ZodString; requestedSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; enumNames: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; oneOf: z.ZodArray>; default: z.ZodOptional; }, z.core.$strip>]>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ type: z.ZodLiteral<"string">; enum: z.ZodArray; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ anyOf: z.ZodArray>; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>]>]>, z.ZodObject<{ type: z.ZodLiteral<"boolean">; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; format: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodEnum<{ number: "number"; integer: "integer"; }>; title: z.ZodOptional; description: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>]>>; required: z.ZodOptional>; }, z.core.$strip>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; mode: z.ZodLiteral<"url">; message: z.ZodString; elicitationId: z.ZodString; url: z.ZodString; }, z.core.$loose>]>; /** * A request from the server to elicit user input via the client. * The client should present the message and form fields to the user (form mode) * or navigate to a URL (URL mode). */ export declare const ElicitRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"elicitation/create">; params: z.ZodUnion>; }, z.core.$loose>>; mode: z.ZodOptional>; message: z.ZodString; requestedSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; enumNames: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; oneOf: z.ZodArray>; default: z.ZodOptional; }, z.core.$strip>]>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ type: z.ZodLiteral<"string">; enum: z.ZodArray; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ anyOf: z.ZodArray>; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>]>]>, z.ZodObject<{ type: z.ZodLiteral<"boolean">; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; format: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodEnum<{ number: "number"; integer: "integer"; }>; title: z.ZodOptional; description: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>]>>; required: z.ZodOptional>; }, z.core.$strip>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; mode: z.ZodLiteral<"url">; message: z.ZodString; elicitationId: z.ZodString; url: z.ZodString; }, z.core.$loose>]>; }, z.core.$strip>; /** * Parameters for a `notifications/elicitation/complete` notification. * * @category notifications/elicitation/complete */ export declare const ElicitationCompleteNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; elicitationId: z.ZodString; }, z.core.$loose>; /** * A notification from the server to the client, informing it of a completion of an out-of-band elicitation request. * * @category notifications/elicitation/complete */ export declare const ElicitationCompleteNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/elicitation/complete">; params: z.ZodObject<{ _meta: z.ZodOptional>; elicitationId: z.ZodString; }, z.core.$loose>; }, z.core.$strip>; /** * The client's response to an elicitation/create request from the server. */ export declare const ElicitResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; action: z.ZodEnum<{ accept: "accept"; decline: "decline"; cancel: "cancel"; }>; content: z.ZodOptional]>>>; }, z.core.$loose>; /** * A reference to a resource or resource template definition. */ export declare const ResourceTemplateReferenceSchema: z.ZodObject<{ type: z.ZodLiteral<"ref/resource">; uri: z.ZodString; }, z.core.$strip>; /** * @deprecated Use ResourceTemplateReferenceSchema instead */ export declare const ResourceReferenceSchema: z.ZodObject<{ type: z.ZodLiteral<"ref/resource">; uri: z.ZodString; }, z.core.$strip>; /** * Identifies a prompt. */ export declare const PromptReferenceSchema: z.ZodObject<{ type: z.ZodLiteral<"ref/prompt">; name: z.ZodString; }, z.core.$strip>; /** * Parameters for a `completion/complete` request. */ export declare const CompleteRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; ref: z.ZodUnion; name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"ref/resource">; uri: z.ZodString; }, z.core.$strip>]>; argument: z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, z.core.$strip>; context: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>; /** * A request from the client to the server, to ask for completion options. */ export declare const CompleteRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"completion/complete">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; ref: z.ZodUnion; name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"ref/resource">; uri: z.ZodString; }, z.core.$strip>]>; argument: z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, z.core.$strip>; context: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>; }, z.core.$strip>; export declare function assertCompleteRequestPrompt(request: CompleteRequest): asserts request is CompleteRequestPrompt; export declare function assertCompleteRequestResourceTemplate(request: CompleteRequest): asserts request is CompleteRequestResourceTemplate; /** * The server's response to a completion/complete request */ export declare const CompleteResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; completion: z.ZodObject<{ /** * An array of completion values. Must not exceed 100 items. */ values: z.ZodArray; /** * The total number of completion options available. This can exceed the number of values actually sent in the response. */ total: z.ZodOptional; /** * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. */ hasMore: z.ZodOptional; }, z.core.$loose>; }, z.core.$loose>; /** * Represents a root directory or file that the server can operate on. */ export declare const RootSchema: z.ZodObject<{ uri: z.ZodString; name: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>; /** * Sent from the server to request a list of root URIs from the client. */ export declare const ListRootsRequestSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; method: z.ZodLiteral<"roots/list">; }, z.core.$strip>; /** * The client's response to a roots/list request from the server. */ export declare const ListRootsResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; roots: z.ZodArray; _meta: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>; /** * A notification from the client to the server, informing it that the list of roots has changed. */ export declare const RootsListChangedNotificationSchema: z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/roots/list_changed">; }, z.core.$strip>; export declare const ClientRequestSchema: z.ZodUnion>; }, z.core.$loose>>; }, z.core.$loose>>; method: z.ZodLiteral<"ping">; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"initialize">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; protocolVersion: z.ZodString; capabilities: z.ZodObject<{ experimental: z.ZodOptional>>; sampling: z.ZodOptional>; tools: z.ZodOptional>; }, z.core.$strip>>; elicitation: z.ZodOptional, z.ZodIntersection; }, z.core.$strip>, z.ZodRecord>>; url: z.ZodOptional>; }, z.core.$strip>, z.ZodOptional>>>>; roots: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; clientInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"completion/complete">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; ref: z.ZodUnion; name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"ref/resource">; uri: z.ZodString; }, z.core.$strip>]>; argument: z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, z.core.$strip>; context: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"logging/setLevel">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; level: z.ZodEnum<{ error: "error"; debug: "debug"; info: "info"; notice: "notice"; warning: "warning"; critical: "critical"; alert: "alert"; emergency: "emergency"; }>; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"prompts/get">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; method: z.ZodLiteral<"prompts/list">; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; method: z.ZodLiteral<"resources/list">; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; method: z.ZodLiteral<"resources/templates/list">; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"resources/read">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"resources/subscribe">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"resources/unsubscribe">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"tools/call">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$loose>>; method: z.ZodLiteral<"tools/list">; }, z.core.$strip>]>; export declare const ClientNotificationSchema: z.ZodUnion; params: z.ZodObject<{ _meta: z.ZodOptional>; requestId: z.ZodUnion; reason: z.ZodOptional; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/progress">; params: z.ZodObject<{ progressToken: z.ZodUnion; progress: z.ZodNumber; total: z.ZodOptional; message: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/initialized">; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/roots/list_changed">; }, z.core.$strip>]>; export declare const ClientResultSchema: z.ZodUnion>; }, z.core.$strict>, z.ZodObject<{ _meta: z.ZodOptional>; model: z.ZodString; stopReason: z.ZodOptional, z.ZodString]>>; role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>, z.ZodArray; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>>]>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; action: z.ZodEnum<{ accept: "accept"; decline: "decline"; cancel: "cancel"; }>; content: z.ZodOptional]>>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; roots: z.ZodArray; _meta: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>]>; export declare const ServerRequestSchema: z.ZodUnion>; }, z.core.$loose>>; }, z.core.$loose>>; method: z.ZodLiteral<"ping">; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"sampling/createMessage">; params: z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>, z.ZodArray; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodObject<{}, z.core.$loose>; _meta: z.ZodOptional>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$loose>]>>]>; _meta: z.ZodOptional>; }, z.core.$loose>>; modelPreferences: z.ZodOptional; }, z.core.$strip>>>; costPriority: z.ZodOptional; speedPriority: z.ZodOptional; intelligencePriority: z.ZodOptional; }, z.core.$strip>>; systemPrompt: z.ZodOptional; includeContext: z.ZodOptional>; temperature: z.ZodOptional; maxTokens: z.ZodNumber; stopSequences: z.ZodOptional>; metadata: z.ZodOptional>; tools: z.ZodOptional; inputSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>; outputSchema: z.ZodOptional; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>>; toolChoice: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"elicitation/create">; params: z.ZodUnion>; }, z.core.$loose>>; mode: z.ZodOptional>; message: z.ZodString; requestedSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; enumNames: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; enum: z.ZodArray; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; oneOf: z.ZodArray>; default: z.ZodOptional; }, z.core.$strip>]>, z.ZodUnion; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ type: z.ZodLiteral<"string">; enum: z.ZodArray; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"array">; title: z.ZodOptional; description: z.ZodOptional; minItems: z.ZodOptional; maxItems: z.ZodOptional; items: z.ZodObject<{ anyOf: z.ZodArray>; }, z.core.$strip>; default: z.ZodOptional>; }, z.core.$strip>]>]>, z.ZodObject<{ type: z.ZodLiteral<"boolean">; title: z.ZodOptional; description: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"string">; title: z.ZodOptional; description: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; format: z.ZodOptional>; default: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodEnum<{ number: "number"; integer: "integer"; }>; title: z.ZodOptional; description: z.ZodOptional; minimum: z.ZodOptional; maximum: z.ZodOptional; default: z.ZodOptional; }, z.core.$strip>]>>; required: z.ZodOptional>; }, z.core.$strip>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; }, z.core.$loose>>; mode: z.ZodLiteral<"url">; message: z.ZodString; elicitationId: z.ZodString; url: z.ZodString; }, z.core.$loose>]>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; method: z.ZodLiteral<"roots/list">; }, z.core.$strip>]>; export declare const ServerNotificationSchema: z.ZodUnion; params: z.ZodObject<{ _meta: z.ZodOptional>; requestId: z.ZodUnion; reason: z.ZodOptional; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/progress">; params: z.ZodObject<{ progressToken: z.ZodUnion; progress: z.ZodNumber; total: z.ZodOptional; message: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/message">; params: z.ZodObject<{ _meta: z.ZodOptional>; level: z.ZodEnum<{ error: "error"; debug: "debug"; info: "info"; notice: "notice"; warning: "warning"; critical: "critical"; alert: "alert"; emergency: "emergency"; }>; logger: z.ZodOptional; data: z.ZodUnknown; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/resources/updated">; params: z.ZodObject<{ _meta: z.ZodOptional>; uri: z.ZodString; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/resources/list_changed">; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/tools/list_changed">; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; }, z.core.$loose>>; method: z.ZodLiteral<"notifications/prompts/list_changed">; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/elicitation/complete">; params: z.ZodObject<{ _meta: z.ZodOptional>; elicitationId: z.ZodString; }, z.core.$loose>; }, z.core.$strip>]>; export declare const ServerResultSchema: z.ZodUnion>; }, z.core.$strict>, z.ZodObject<{ _meta: z.ZodOptional>; protocolVersion: z.ZodString; capabilities: z.ZodObject<{ experimental: z.ZodOptional>>; logging: z.ZodOptional>; completions: z.ZodOptional>; prompts: z.ZodOptional; }, z.core.$strip>>; resources: z.ZodOptional; listChanged: z.ZodOptional; }, z.core.$strip>>; tools: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; serverInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; instructions: z.ZodOptional; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; completion: z.ZodObject<{ /** * An array of completion values. Must not exceed 100 items. */ values: z.ZodArray; /** * The total number of completion options available. This can exceed the number of values actually sent in the response. */ total: z.ZodOptional; /** * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. */ hasMore: z.ZodOptional; }, z.core.$loose>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; description: z.ZodOptional; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; prompts: z.ZodArray; arguments: z.ZodOptional; required: z.ZodOptional; }, z.core.$strip>>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; resources: z.ZodArray; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; resourceTemplates: z.ZodArray; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; contents: z.ZodArray; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; content: z.ZodDefault; text: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; type: z.ZodLiteral<"resource_link">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resource">; resource: z.ZodUnion; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>]>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; nextCursor: z.ZodOptional; tools: z.ZodArray; inputSchema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>; outputSchema: z.ZodOptional; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$catchall>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>]>; export declare class McpError extends Error { readonly code: number; readonly data?: unknown; constructor(code: number, message: string, data?: unknown); /** * Factory method to create the appropriate error type based on the error code and data */ static fromError(code: number, message: string, data?: unknown): McpError; } /** * Specialized error type when a tool requires a URL mode elicitation. * This makes it nicer for the client to handle since there is specific data to work with instead of just a code to check against. */ export declare class UrlElicitationRequiredError extends McpError { constructor(elicitations: ElicitRequestURLParams[], message?: string); get elicitations(): ElicitRequestURLParams[]; } type Primitive = string | number | boolean | bigint | null | undefined; type Flatten = T extends Primitive ? T : T extends Array ? Array> : T extends Set ? Set> : T extends Map ? Map, Flatten> : T extends object ? { [K in keyof T]: Flatten; } : T; type Infer = Flatten>; /** * Headers that are compatible with both Node.js and the browser. */ export type IsomorphicHeaders = Record; /** * Information about the incoming request. */ export interface RequestInfo { /** * The headers of the request. */ headers: IsomorphicHeaders; } /** * Extra information about a message. */ export interface MessageExtraInfo { /** * The request information. */ requestInfo?: RequestInfo; /** * The authentication information. */ authInfo?: AuthInfo; } export type ProgressToken = Infer; export type Cursor = Infer; export type Request = Infer; export type RequestMeta = Infer; export type Notification = Infer; export type Result = Infer; export type RequestId = Infer; export type JSONRPCRequest = Infer; export type JSONRPCNotification = Infer; export type JSONRPCResponse = Infer; export type JSONRPCError = Infer; export type JSONRPCMessage = Infer; export type RequestParams = Infer; export type NotificationParams = Infer; export type EmptyResult = Infer; export type CancelledNotificationParams = Infer; export type CancelledNotification = Infer; export type Icon = Infer; export type Icons = Infer; export type BaseMetadata = Infer; export type Implementation = Infer; export type ClientCapabilities = Infer; export type InitializeRequestParams = Infer; export type InitializeRequest = Infer; export type ServerCapabilities = Infer; export type InitializeResult = Infer; export type InitializedNotification = Infer; export type PingRequest = Infer; export type Progress = Infer; export type ProgressNotificationParams = Infer; export type ProgressNotification = Infer; export type PaginatedRequestParams = Infer; export type PaginatedRequest = Infer; export type PaginatedResult = Infer; export type ResourceContents = Infer; export type TextResourceContents = Infer; export type BlobResourceContents = Infer; export type Resource = Infer; export type ResourceTemplate = Infer; export type ListResourcesRequest = Infer; export type ListResourcesResult = Infer; export type ListResourceTemplatesRequest = Infer; export type ListResourceTemplatesResult = Infer; export type ResourceRequestParams = Infer; export type ReadResourceRequestParams = Infer; export type ReadResourceRequest = Infer; export type ReadResourceResult = Infer; export type ResourceListChangedNotification = Infer; export type SubscribeRequestParams = Infer; export type SubscribeRequest = Infer; export type UnsubscribeRequestParams = Infer; export type UnsubscribeRequest = Infer; export type ResourceUpdatedNotificationParams = Infer; export type ResourceUpdatedNotification = Infer; export type PromptArgument = Infer; export type Prompt = Infer; export type ListPromptsRequest = Infer; export type ListPromptsResult = Infer; export type GetPromptRequestParams = Infer; export type GetPromptRequest = Infer; export type TextContent = Infer; export type ImageContent = Infer; export type AudioContent = Infer; export type ToolUseContent = Infer; export type ToolResultContent = Infer; export type EmbeddedResource = Infer; export type ResourceLink = Infer; export type ContentBlock = Infer; export type PromptMessage = Infer; export type GetPromptResult = Infer; export type PromptListChangedNotification = Infer; export type ToolAnnotations = Infer; export type Tool = Infer; export type ListToolsRequest = Infer; export type ListToolsResult = Infer; export type CallToolRequestParams = Infer; export type CallToolResult = Infer; export type CompatibilityCallToolResult = Infer; export type CallToolRequest = Infer; export type ToolListChangedNotification = Infer; export type LoggingLevel = Infer; export type SetLevelRequestParams = Infer; export type SetLevelRequest = Infer; export type LoggingMessageNotificationParams = Infer; export type LoggingMessageNotification = Infer; export type ToolChoice = Infer; export type ModelHint = Infer; export type ModelPreferences = Infer; export type SamplingMessageContentBlock = Infer; export type SamplingMessage = Infer; export type CreateMessageRequestParams = Infer; export type CreateMessageRequest = Infer; export type CreateMessageResult = Infer; export type BooleanSchema = Infer; export type StringSchema = Infer; export type NumberSchema = Infer; export type EnumSchema = Infer; export type UntitledSingleSelectEnumSchema = Infer; export type TitledSingleSelectEnumSchema = Infer; export type LegacyTitledEnumSchema = Infer; export type UntitledMultiSelectEnumSchema = Infer; export type TitledMultiSelectEnumSchema = Infer; export type SingleSelectEnumSchema = Infer; export type MultiSelectEnumSchema = Infer; export type PrimitiveSchemaDefinition = Infer; export type ElicitRequestParams = Infer; export type ElicitRequestFormParams = Infer; export type ElicitRequestURLParams = Infer; export type ElicitRequest = Infer; export type ElicitationCompleteNotificationParams = Infer; export type ElicitationCompleteNotification = Infer; export type ElicitResult = Infer; export type ResourceTemplateReference = Infer; /** * @deprecated Use ResourceTemplateReference instead */ export type ResourceReference = ResourceTemplateReference; export type PromptReference = Infer; export type CompleteRequestParams = Infer; export type CompleteRequest = Infer; export type CompleteRequestResourceTemplate = ExpandRecursively; export type CompleteRequestPrompt = ExpandRecursively; export type CompleteResult = Infer; export type Root = Infer; export type ListRootsRequest = Infer; export type ListRootsResult = Infer; export type RootsListChangedNotification = Infer; export type ClientRequest = Infer; export type ClientNotification = Infer; export type ClientResult = Infer; export type ServerRequest = Infer; export type ServerNotification = Infer; export type ServerResult = Infer; export {}; //# sourceMappingURL=types.d.ts.map