import * as z from "zod/v4"; //#region ../core-internal/src/types/constants.d.ts declare const LATEST_PROTOCOL_VERSION = "2025-11-25"; declare const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26"; declare const SUPPORTED_PROTOCOL_VERSIONS: string[]; declare const RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task"; /** * `_meta` key carrying the MCP protocol version governing a request. * * For the HTTP transport, the value must match the `MCP-Protocol-Version` header. */ declare const PROTOCOL_VERSION_META_KEY = "io.modelcontextprotocol/protocolVersion"; /** * `_meta` key identifying the client software making a request. */ declare const CLIENT_INFO_META_KEY = "io.modelcontextprotocol/clientInfo"; /** * `_meta` key carrying the client's capabilities for a request. * * Capabilities are declared per request rather than once at initialization; * servers must not infer capabilities from prior requests. */ declare const CLIENT_CAPABILITIES_META_KEY = "io.modelcontextprotocol/clientCapabilities"; /** * `_meta` key carrying the desired log level for a request. * * When absent, the server must not send `notifications/message` notifications * for the request. * * @deprecated Deprecated as of protocol version 2026-07-28 (SEP-2577); remains * in the specification for at least twelve months. */ declare const LOG_LEVEL_META_KEY = "io.modelcontextprotocol/logLevel"; /** * `_meta` key carrying W3C Trace Context for distributed tracing (SEP-414). * * When present, the value MUST follow the W3C `traceparent` header format, * e.g. `00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01`. * * @see https://www.w3.org/TR/trace-context/#traceparent-header */ declare const TRACEPARENT_META_KEY = "traceparent"; /** * `_meta` key carrying vendor-specific trace state for distributed tracing (SEP-414). * * When present, the value MUST follow the W3C `tracestate` header format, * e.g. `vendor1=value1,vendor2=value2`. * * @see https://www.w3.org/TR/trace-context/#tracestate-header */ declare const TRACESTATE_META_KEY = "tracestate"; /** * `_meta` key carrying cross-cutting propagation values for distributed tracing (SEP-414). * * When present, the value MUST follow the W3C Baggage header format, * e.g. `userId=alice,serverRegion=us-east-1`. * * @see https://www.w3.org/TR/baggage/ */ declare const BAGGAGE_META_KEY = "baggage"; declare const JSONRPC_VERSION = "2.0"; declare const PARSE_ERROR = -32700; declare const INVALID_REQUEST = -32600; declare const METHOD_NOT_FOUND = -32601; declare const INVALID_PARAMS = -32602; declare const INTERNAL_ERROR = -32603; declare namespace schemas_d_exports { export { AnnotationsSchema, AudioContentSchema, BaseMetadataSchema, BaseRequestParamsSchema, BlobResourceContentsSchema, BooleanSchemaSchema, CallToolRequestParamsSchema, CallToolRequestSchema, CallToolResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, ClientCapabilitiesSchema, ClientNotificationSchema, ClientRequestSchema, ClientResultSchema, ClientTasksCapabilitySchema, CompatibilityCallToolResultSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, ContentBlockSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, CreateTaskResultSchema, CursorSchema, DiscoverRequestSchema, DiscoverResultSchema, ElicitRequestFormParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitRequestURLParamsSchema, ElicitResultSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, EmbeddedResourceSchema, EmptyResultSchema, EnumSchemaSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, GetPromptResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, GetTaskRequestSchema, GetTaskResultSchema, IconSchema, IconsSchema, ImageContentSchema, ImplementationSchema, InitializeRequestParamsSchema, InitializeRequestSchema, InitializeResultSchema, InitializedNotificationSchema, JSONArraySchema, JSONObjectSchema, JSONRPCErrorResponseSchema, JSONRPCMessageSchema, JSONRPCNotificationSchema, JSONRPCRequestSchema, JSONRPCResponseSchema, JSONRPCResultResponseSchema, JSONValueSchema, LegacyTitledEnumSchemaSchema, ListChangedOptionsBaseSchema, ListPromptsRequestSchema, ListPromptsResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListRootsRequestSchema, ListRootsResultSchema, ListTasksRequestSchema, ListTasksResultSchema, ListToolsRequestSchema, ListToolsResultSchema, LoggingLevelSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, MultiSelectEnumSchemaSchema, NotificationSchema, NotificationsParamsSchema, NumberSchemaSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, PingRequestSchema, PrimitiveSchemaDefinitionSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, ProgressSchema, ProgressTokenSchema, PromptArgumentSchema, PromptListChangedNotificationSchema, PromptMessageSchema, PromptReferenceSchema, PromptSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, RelatedTaskMetadataSchema, RequestIdSchema, RequestMetaEnvelopeSchema, RequestMetaSchema, RequestSchema, ResourceContentsSchema, ResourceLinkSchema, ResourceListChangedNotificationSchema, ResourceRequestParamsSchema, ResourceSchema, ResourceTemplateReferenceSchema, ResourceTemplateSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, ResultSchema, RoleSchema, RootSchema, RootsListChangedNotificationSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, ServerCapabilitiesSchema, ServerNotificationSchema, ServerRequestSchema, ServerResultSchema, ServerTasksCapabilitySchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, SingleSelectEnumSchemaSchema, StringSchemaSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, TaskAugmentedRequestParamsSchema, TaskCreationParamsSchema, TaskMetadataSchema, TaskSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, TaskStatusSchema, TextContentSchema, TextResourceContentsSchema, TitledMultiSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, ToolAnnotationsSchema, ToolChoiceSchema, ToolExecutionSchema, ToolListChangedNotificationSchema, ToolResultContentSchema, ToolSchema, ToolUseContentSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, UntitledMultiSelectEnumSchemaSchema, UntitledSingleSelectEnumSchemaSchema, getNotificationSchema, getRequestSchema, getResultSchema }; } declare const JSONValueSchema: z.ZodType; declare const JSONObjectSchema: z.ZodType; declare const JSONArraySchema: z.ZodType; /** * A progress token, used to associate progress notifications with the original request. */ declare const ProgressTokenSchema: z.ZodUnion; /** * An opaque token used to represent a cursor for pagination. */ declare const CursorSchema: z.ZodString; /** * Task creation parameters, used to ask that the server create a task to represent a request. */ declare const TaskCreationParamsSchema: z.ZodObject<{ /** * Requested duration in milliseconds to retain task from creation. */ ttl: z.ZodOptional; /** * Time in milliseconds to wait between task status requests. */ pollInterval: z.ZodOptional; }, z.core.$loose>; declare const TaskMetadataSchema: z.ZodObject<{ ttl: z.ZodOptional; }, z.core.$strip>; /** * Metadata for associating messages with a task. * Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`. */ declare const RelatedTaskMetadataSchema: z.ZodObject<{ taskId: z.ZodString; }, z.core.$strip>; 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>; /** * Common params for any request. */ declare const BaseRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>; /** * Common params for any task-augmented request. */ declare const TaskAugmentedRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; declare const RequestSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$strip>; declare const NotificationsParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>; declare const NotificationSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$strip>; 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; /** * Indicates the type of the result, allowing the receiver to determine how to * parse the result object. Servers implementing protocol revision 2026-07-28 or * later always include this field; results from earlier revisions omit it, and * an absent value must be treated as `"complete"`. */ resultType: z.ZodOptional; }, z.core.$loose>; /** * A uniquely identifying ID for a request in JSON-RPC. */ declare const RequestIdSchema: z.ZodUnion; /** * A request that expects a response. */ declare const JSONRPCRequestSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion; }, z.core.$strict>; /** * A notification which does not expect a response. */ declare const JSONRPCNotificationSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$loose>>; jsonrpc: z.ZodLiteral<"2.0">; }, z.core.$strict>; /** * A successful (non-error) response to a request. */ declare const JSONRPCResultResponseSchema: 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; /** * Indicates the type of the result, allowing the receiver to determine how to * parse the result object. Servers implementing protocol revision 2026-07-28 or * later always include this field; results from earlier revisions omit it, and * an absent value must be treated as `"complete"`. */ resultType: z.ZodOptional; }, z.core.$loose>; }, z.core.$strict>; /** * A response to a request that indicates an error occurred. */ declare const JSONRPCErrorResponseSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; }, z.core.$strict>; declare const JSONRPCMessageSchema: z.ZodUnion>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; /** * Indicates the type of the result, allowing the receiver to determine how to * parse the result object. Servers implementing protocol revision 2026-07-28 or * later always include this field; results from earlier revisions omit it, and * an absent value must be treated as `"complete"`. */ resultType: z.ZodOptional; }, z.core.$loose>; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; }, z.core.$strict>]>; declare const JSONRPCResponseSchema: z.ZodUnion; 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; /** * Indicates the type of the result, allowing the receiver to determine how to * parse the result object. Servers implementing protocol revision 2026-07-28 or * later always include this field; results from earlier revisions omit it, and * an absent value must be treated as `"complete"`. */ resultType: z.ZodOptional; }, z.core.$loose>; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; 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. */ 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; /** * Indicates the type of the result, allowing the receiver to determine how to * parse the result object. Servers implementing protocol revision 2026-07-28 or * later always include this field; results from earlier revisions omit it, and * an absent value must be treated as `"complete"`. */ resultType: z.ZodOptional; }, z.core.$strict>; declare const CancelledNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; requestId: z.ZodOptional>; reason: z.ZodOptional; }, z.core.$strip>; /** * 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 {@linkcode InitializeRequest | initialize} request. */ declare const CancelledNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/cancelled">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; requestId: z.ZodOptional>; reason: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; /** * Icon schema for use in {@link Tool | tools}, {@link Prompt | prompts}, {@link Resource | resources}, and {@link Implementation | implementations}. */ declare const IconSchema: z.ZodObject<{ src: z.ZodString; mimeType: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>; /** * Base schema to add `icons` property. * */ declare const IconsSchema: z.ZodObject<{ icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; /** * Base metadata interface for common properties across {@link Resource | resources}, {@link Tool | tools}, {@link Prompt | prompts}, and {@link Implementation | implementations}. */ declare const BaseMetadataSchema: z.ZodObject<{ name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * Describes the name and version of an MCP implementation. */ declare const ImplementationSchema: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; description: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * Task capabilities for clients, indicating which request types support task creation. */ declare const ClientTasksCapabilitySchema: z.ZodObject<{ /** * Present if the client supports listing tasks. */ list: z.ZodOptional>>; /** * Present if the client supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; /** * Task support for elicitation requests. */ elicitation: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>; /** * Task capabilities for servers, indicating which request types support task creation. */ declare const ServerTasksCapabilitySchema: z.ZodObject<{ /** * Present if the server supports listing tasks. */ list: z.ZodOptional>>; /** * Present if the server supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>; /** * 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. */ 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.ZodType>>>; url: z.ZodOptional>>; }, z.core.$strip>, z.ZodOptional>>>>>; roots: z.ZodOptional; }, z.core.$strip>>; tasks: z.ZodOptional>>; /** * Present if the client supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; /** * Task support for elicitation requests. */ elicitation: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; declare const InitializeRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.ZodType>>>; url: z.ZodOptional>>; }, z.core.$strip>, z.ZodOptional>>>>>; roots: z.ZodOptional; }, z.core.$strip>>; tasks: z.ZodOptional>>; /** * Present if the client supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; /** * Task support for elicitation requests. */ elicitation: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; clientInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; description: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; /** * This request is sent from the client to the server when it first connects, asking it to begin initialization. */ declare const InitializeRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"initialize">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.ZodType>>>; url: z.ZodOptional>>; }, z.core.$strip>, z.ZodOptional>>>>>; roots: z.ZodOptional; }, z.core.$strip>>; tasks: z.ZodOptional>>; /** * Present if the client supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; /** * Task support for elicitation requests. */ elicitation: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; clientInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; description: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; /** * 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. */ 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>>; tasks: z.ZodOptional>>; /** * Present if the server supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; /** * After receiving an initialize request from the client, the server sends this response. */ declare const InitializeResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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>>; tasks: z.ZodOptional>>; /** * Present if the server supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; serverInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; description: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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. */ declare const InitializedNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/initialized">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>; /** * A request from the client asking the server to advertise its supported protocol * versions, capabilities, and other metadata (protocol revision 2026-07-28). Servers * MUST implement `server/discover`. Clients MAY call it but are not required to — * version negotiation can also happen inline via the per-request `_meta` envelope. */ declare const DiscoverRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"server/discover">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>; /** * The result returned by the server for a `server/discover` request. */ declare const DiscoverResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; supportedVersions: z.ZodArray; 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>>; tasks: z.ZodOptional>>; /** * Present if the server supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; serverInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; description: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; instructions: z.ZodOptional; }, z.core.$loose>; /** * 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. */ declare const PingRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"ping">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>; declare const ProgressSchema: z.ZodObject<{ progress: z.ZodNumber; total: z.ZodOptional; message: z.ZodOptional; }, z.core.$strip>; declare const ProgressNotificationParamsSchema: z.ZodObject<{ progressToken: z.ZodUnion; progress: z.ZodNumber; total: z.ZodOptional; message: z.ZodOptional; _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, 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 */ 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>; }, z.core.$strip>; declare const PaginatedRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>; declare const PaginatedRequestSchema: z.ZodObject<{ method: z.ZodString; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; declare const PaginatedResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; nextCursor: z.ZodOptional; }, z.core.$loose>; /** * The status of a task. * */ declare const TaskStatusSchema: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; /** * A pollable state object associated with a request. */ declare const TaskSchema: z.ZodObject<{ taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; /** * Result returned when a task is created, containing the task data wrapped in a `task` field. */ declare const CreateTaskResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; task: z.ZodObject<{ taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; }, z.core.$loose>; /** * Parameters for task status notification. */ declare const TaskStatusNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; /** * A notification sent when a task's status changes. */ declare const TaskStatusNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/tasks/status">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; /** * A request to get the state of a specific task. */ declare const GetTaskRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"tasks/get">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * The response to a {@linkcode GetTaskRequest | tasks/get} request. */ declare const GetTaskResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; /** * A request to get the result of a specific task. */ declare const GetTaskPayloadRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"tasks/result">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * The response to a `tasks/result` request. * The structure matches the result type of the original request. * For example, a {@linkcode CallToolRequest | tools/call} task would return the `CallToolResult` structure. * */ declare const GetTaskPayloadResultSchema: 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; /** * Indicates the type of the result, allowing the receiver to determine how to * parse the result object. Servers implementing protocol revision 2026-07-28 or * later always include this field; results from earlier revisions omit it, and * an absent value must be treated as `"complete"`. */ resultType: z.ZodOptional; }, z.core.$loose>; /** * A request to list tasks. */ declare const ListTasksRequestSchema: z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"tasks/list">; }, z.core.$strip>; /** * The response to a {@linkcode ListTasksRequest | tasks/list} request. */ declare const ListTasksResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; nextCursor: z.ZodOptional; tasks: z.ZodArray; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; /** * A request to cancel a specific task. */ declare const CancelTaskRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"tasks/cancel">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * The response to a {@linkcode CancelTaskRequest | tasks/cancel} request. */ declare const CancelTaskResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; /** * The contents of a specific resource or sub-resource. */ declare const ResourceContentsSchema: z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>; declare const TextResourceContentsSchema: z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; text: z.ZodString; }, z.core.$strip>; declare const BlobResourceContentsSchema: z.ZodObject<{ uri: z.ZodString; mimeType: z.ZodOptional; _meta: z.ZodOptional>; blob: z.ZodString; }, z.core.$strip>; /** * The sender or recipient of messages and data in a conversation. */ declare const RoleSchema: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; /** * Optional annotations providing clients additional context about a resource. */ declare const AnnotationsSchema: z.ZodObject<{ audience: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>; /** * A known resource that the server is capable of reading. */ declare const ResourceSchema: z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * A template description for resources available on the server. */ declare const ResourceTemplateSchema: z.ZodObject<{ uriTemplate: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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. */ declare const ListResourcesRequestSchema: z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"resources/list">; }, z.core.$strip>; /** * The server's response to a {@linkcode ListResourcesRequest | resources/list} request from the client. */ declare const ListResourcesResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; nextCursor: z.ZodOptional; resources: z.ZodArray; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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. */ declare const ListResourceTemplatesRequestSchema: z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"resources/templates/list">; }, z.core.$strip>; /** * The server's response to a {@linkcode ListResourceTemplatesRequest | resources/templates/list} request from the client. */ declare const ListResourceTemplatesResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; nextCursor: z.ZodOptional; resourceTemplates: z.ZodArray; mimeType: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; declare const ResourceRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; /** * Parameters for a {@linkcode ReadResourceRequest | resources/read} request. */ declare const ReadResourceRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; /** * Sent from the client to the server, to read a specific resource URI. */ declare const ReadResourceRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"resources/read">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * The server's response to a {@linkcode ReadResourceRequest | resources/read} request from the client. */ declare const ReadResourceResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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. */ declare const ResourceListChangedNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/resources/list_changed">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>; declare const SubscribeRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; /** * Sent from the client to request `resources/updated` notifications from the server whenever a particular resource changes. */ declare const SubscribeRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"resources/subscribe">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; declare const UnsubscribeRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; /** * Sent from the client to request cancellation of {@linkcode ResourceUpdatedNotification | resources/updated} notifications from the server. This should follow a previous {@linkcode SubscribeRequest | resources/subscribe} request. */ declare const UnsubscribeRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"resources/unsubscribe">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * Parameters for a {@linkcode ResourceUpdatedNotification | notifications/resources/updated} notification. */ declare const ResourceUpdatedNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; /** * 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 {@linkcode SubscribeRequest | resources/subscribe} request. */ declare const ResourceUpdatedNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/resources/updated">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * Describes an argument that a prompt can accept. */ 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. */ 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>; theme: 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. */ declare const ListPromptsRequestSchema: z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"prompts/list">; }, z.core.$strip>; /** * The server's response to a {@linkcode ListPromptsRequest | prompts/list} request from the client. */ declare const ListPromptsResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; /** * Parameters for a {@linkcode GetPromptRequest | prompts/get} request. */ declare const GetPromptRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$strip>; /** * Used by the client to get a prompt provided by the server. */ declare const GetPromptRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"prompts/get">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; /** * Text provided to or from an LLM. */ declare const TextContentSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>; /** * An image provided to or from an LLM. */ declare const ImageContentSchema: z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>; /** * Audio content provided to or from an LLM. */ declare const AudioContentSchema: z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>; /** * A tool call request from an assistant (LLM). * Represents the assistant's request to use a tool. */ declare const ToolUseContentSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>; /** * The contents of a resource, embedded into a prompt or tool call result. */ 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, 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 {@linkcode ListResourcesRequest | resources/list} requests. */ declare const ResourceLinkSchema: z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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. */ declare const ContentBlockSchema: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>; /** * Describes a message returned as part of a prompt. */ declare const PromptMessageSchema: z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>; }, z.core.$strip>; /** * The server's response to a {@linkcode GetPromptRequest | prompts/get} request from the client. */ declare const GetPromptResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; description: z.ZodOptional; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, 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. */ declare const PromptListChangedNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/prompts/list_changed">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>; /** * Additional properties describing a `Tool` to clients. * * NOTE: all properties in {@linkcode 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. */ declare const ToolAnnotationsSchema: z.ZodObject<{ title: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strip>; /** * Execution-related properties for a tool. */ declare const ToolExecutionSchema: z.ZodObject<{ taskSupport: z.ZodOptional>; }, z.core.$strip>; /** * Definition for a tool the client can call. */ 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>>; execution: z.ZodOptional>; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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. */ declare const ListToolsRequestSchema: z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"tools/list">; }, z.core.$strip>; /** * The server's response to a {@linkcode ListToolsRequest | tools/list} request from the client. */ declare const ListToolsResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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>>; execution: z.ZodOptional>; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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. */ declare const CallToolResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$loose>; /** * {@linkcode CallToolResultSchema} extended with backwards compatibility to protocol version 2024-10-07. */ declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; toolResult: z.ZodUnknown; }, z.core.$loose>]>; /** * Parameters for a `tools/call` request. */ declare const CallToolRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$strip>; /** * Used by the client to invoke a tool provided by the server. */ declare const CallToolRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"tools/call">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$strip>; }, 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. */ declare const ToolListChangedNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/tools/list_changed">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>; /** * Base schema for list changed subscription options (without callback). * Used internally for Zod validation of `autoRefresh` and `debounceMs`. */ declare const ListChangedOptionsBaseSchema: z.ZodObject<{ autoRefresh: z.ZodDefault; debounceMs: z.ZodDefault; }, z.core.$strip>; /** * The severity of a log message. */ 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. */ declare const SetLevelRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.$strip>; /** * A request from the client to the server, to enable or adjust logging. */ declare const SetLevelRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"logging/setLevel">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.$strip>; }, z.core.$strip>; /** * Parameters for a `notifications/message` notification. */ declare const LoggingMessageNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; 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.$strip>; /** * 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. */ declare const LoggingMessageNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/message">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; 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.$strip>; }, z.core.$strip>; /** * The per-request `_meta` envelope carried by every request under protocol revision * 2026-07-28: the protocol version governing the request, the client implementation * info, and the client's capabilities — declared per request rather than once at * initialization — plus the optional log-level opt-in. * * This schema models the complete envelope on its own. The base request schemas * ({@linkcode RequestMetaSchema}) deliberately stay lenient so the same wire schemas * parse requests from earlier protocol revisions (no envelope) as well; envelope * requiredness is enforced per request at dispatch time, not here. */ declare const RequestMetaEnvelopeSchema: 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>; /** * The MCP protocol version being used for this request. For the HTTP transport, * the value must match the `MCP-Protocol-Version` header. */ "io.modelcontextprotocol/protocolVersion": z.ZodString; /** * Identifies the client software making the request. */ "io.modelcontextprotocol/clientInfo": z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; description: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; /** * The client's capabilities for this specific request. An empty object means the * client supports no optional capabilities. Servers must not infer capabilities * from prior requests. */ "io.modelcontextprotocol/clientCapabilities": z.ZodObject<{ experimental: z.ZodOptional>>>; sampling: z.ZodOptional>>; tools: z.ZodOptional>>; }, z.core.$strip>>; elicitation: z.ZodOptional, z.ZodIntersection; }, z.core.$strip>, z.ZodType>>>; url: z.ZodOptional>>; }, z.core.$strip>, z.ZodOptional>>>>>; roots: z.ZodOptional; }, z.core.$strip>>; tasks: z.ZodOptional>>; /** * Present if the client supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; /** * Task support for elicitation requests. */ elicitation: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; /** * The desired log level for this request. When absent, the server must not send * `notifications/message` notifications for the request. * * @deprecated Deprecated as of protocol version 2026-07-28 (SEP-2577); remains * in the specification for at least twelve months. */ "io.modelcontextprotocol/logLevel": z.ZodOptional>; }, z.core.$loose>; /** * Hints to use for model selection. */ declare const ModelHintSchema: z.ZodObject<{ name: z.ZodOptional; }, z.core.$strip>; /** * The server's preferences for model selection, requested of the client during sampling. */ 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. */ 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`. */ declare const ToolResultContentSchema: z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>; /** * Basic content types for sampling responses (without tool use). * Used for backwards-compatible {@linkcode CreateMessageResult} when tools are not used. */ declare const SamplingContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>], "type">; /** * Content block types allowed in sampling messages. * This includes text, image, audio, tool use requests, and tool results. */ declare const SamplingMessageContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">; /** * Describes a message issued to or received from an LLM API. */ declare const SamplingMessageSchema: z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">>]>; _meta: z.ZodOptional>; }, z.core.$strip>; /** * Parameters for a `sampling/createMessage` request. */ declare const CreateMessageRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">>]>; _meta: z.ZodOptional>; }, z.core.$strip>>; 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>>; execution: z.ZodOptional>; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>>; toolChoice: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; /** * 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. */ declare const CreateMessageRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"sampling/createMessage">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">>]>; _meta: z.ZodOptional>; }, z.core.$strip>>; 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>>; execution: z.ZodOptional>; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>>; toolChoice: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; /** * The client's response to a `sampling/create_message` request from the server. * This is the backwards-compatible version that returns single content (no arrays). * Used when the request does not include tools. */ declare const CreateMessageResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; model: z.ZodString; stopReason: z.ZodOptional, z.ZodString]>>; role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>], "type">; }, z.core.$loose>; /** * The client's response to a `sampling/create_message` request when tools were provided. * This version supports array content for tool use flows. */ declare const CreateMessageResultWithToolsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; model: z.ZodString; stopReason: z.ZodOptional, z.ZodString]>>; role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">>]>; }, z.core.$loose>; /** * Primitive schema definition for boolean fields. */ 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. */ 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. */ 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. */ 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. */ 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 {@linkcode TitledSingleSelectEnumSchema} instead. * This interface will be removed in a future version. */ 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>; 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. */ 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. */ 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 */ 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. */ 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. */ 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. */ declare const ElicitRequestFormParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; 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.$catchall>; }, z.core.$strip>; /** * Parameters for an {@linkcode ElicitRequest | elicitation/create} request for URL-based elicitation. */ declare const ElicitRequestURLParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; mode: z.ZodLiteral<"url">; message: z.ZodString; elicitationId: z.ZodString; url: z.ZodString; }, z.core.$strip>; /** * The parameters for a request to elicit additional information from the user via the client. */ declare const ElicitRequestParamsSchema: z.ZodUnion>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; 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.$catchall>; }, z.core.$strip>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; mode: z.ZodLiteral<"url">; message: z.ZodString; elicitationId: z.ZodString; url: z.ZodString; }, z.core.$strip>]>; /** * 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). */ declare const ElicitRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"elicitation/create">; params: z.ZodUnion>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; 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.$catchall>; }, z.core.$strip>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; mode: z.ZodLiteral<"url">; message: z.ZodString; elicitationId: z.ZodString; url: z.ZodString; }, z.core.$strip>]>; }, z.core.$strip>; /** * Parameters for a {@linkcode ElicitationCompleteNotification | notifications/elicitation/complete} notification. * * @category notifications/elicitation/complete */ declare const ElicitationCompleteNotificationParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; elicitationId: z.ZodString; }, z.core.$strip>; /** * A notification from the server to the client, informing it of a completion of an out-of-band elicitation request. * * @category notifications/elicitation/complete */ declare const ElicitationCompleteNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/elicitation/complete">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; elicitationId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** * The client's response to an {@linkcode ElicitRequest | elicitation/create} request from the server. */ declare const ElicitResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; action: z.ZodEnum<{ cancel: "cancel"; accept: "accept"; decline: "decline"; }>; content: z.ZodPipe, z.ZodOptional]>>>>; }, z.core.$loose>; /** * A reference to a resource or resource template definition. */ declare const ResourceTemplateReferenceSchema: z.ZodObject<{ type: z.ZodLiteral<"ref/resource">; uri: z.ZodString; }, z.core.$strip>; /** * Identifies a prompt. */ declare const PromptReferenceSchema: z.ZodObject<{ type: z.ZodLiteral<"ref/prompt">; name: z.ZodString; }, z.core.$strip>; /** * Parameters for a {@linkcode CompleteRequest | completion/complete} request. */ declare const CompleteRequestParamsSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.$strip>; /** * A request from the client to the server, to ask for completion options. */ declare const CompleteRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"completion/complete">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.$strip>; }, z.core.$strip>; /** * The server's response to a {@linkcode CompleteRequest | completion/complete} request */ declare const CompleteResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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. */ 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. */ declare const ListRootsRequestSchema: z.ZodObject<{ method: z.ZodLiteral<"roots/list">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>; /** * The client's response to a `roots/list` request from the server. */ declare const ListRootsResultSchema: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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. */ declare const RootsListChangedNotificationSchema: z.ZodObject<{ method: z.ZodLiteral<"notifications/roots/list_changed">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>; declare const ClientRequestSchema: z.ZodUnion; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"initialize">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.ZodType>>>; url: z.ZodOptional>>; }, z.core.$strip>, z.ZodOptional>>>>>; roots: z.ZodOptional; }, z.core.$strip>>; tasks: z.ZodOptional>>; /** * Present if the client supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; /** * Task support for elicitation requests. */ elicitation: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; clientInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; description: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"completion/complete">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"logging/setLevel">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": 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.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"prompts/get">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"prompts/list">; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"resources/list">; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"resources/templates/list">; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"resources/read">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"resources/subscribe">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"resources/unsubscribe">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"tools/call">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; name: z.ZodString; arguments: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"tools/list">; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"tasks/get">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"tasks/result">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"tasks/list">; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"tasks/cancel">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>; declare const ClientNotificationSchema: z.ZodUnion; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; requestId: z.ZodOptional>; reason: z.ZodOptional; }, z.core.$strip>; }, 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/initialized">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/roots/list_changed">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/tasks/status">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>; declare const ClientResultSchema: z.ZodUnion>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; /** * Indicates the type of the result, allowing the receiver to determine how to * parse the result object. Servers implementing protocol revision 2026-07-28 or * later always include this field; results from earlier revisions omit it, and * an absent value must be treated as `"complete"`. */ resultType: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; model: z.ZodString; stopReason: z.ZodOptional, z.ZodString]>>; role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>], "type">; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; model: z.ZodString; stopReason: z.ZodOptional, z.ZodString]>>; role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">>]>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; action: z.ZodEnum<{ cancel: "cancel"; accept: "accept"; decline: "decline"; }>; content: z.ZodPipe, z.ZodOptional]>>>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; roots: z.ZodArray; _meta: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; nextCursor: z.ZodOptional; tasks: z.ZodArray; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; task: z.ZodObject<{ taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; }, z.core.$loose>]>; declare const ServerRequestSchema: z.ZodUnion; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"sampling/createMessage">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; name: z.ZodString; id: z.ZodString; input: z.ZodRecord; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; _meta: z.ZodOptional>; }, z.core.$strip>], "type">>]>; _meta: z.ZodOptional>; }, z.core.$strip>>; 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>>; execution: z.ZodOptional>; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>>; toolChoice: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"elicitation/create">; params: z.ZodUnion>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; 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.$catchall>; }, z.core.$strip>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; task: z.ZodOptional; }, z.core.$strip>>; mode: z.ZodLiteral<"url">; message: z.ZodString; elicitationId: z.ZodString; url: z.ZodString; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"roots/list">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"tasks/get">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"tasks/result">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; cursor: z.ZodOptional; }, z.core.$strip>>; method: z.ZodLiteral<"tasks/list">; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"tasks/cancel">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>; declare const ServerNotificationSchema: z.ZodUnion; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; requestId: z.ZodOptional>; reason: z.ZodOptional; }, z.core.$strip>; }, 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/message">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; 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.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/resources/updated">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/resources/list_changed">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/tools/list_changed">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/prompts/list_changed">; params: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/tasks/status">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ method: z.ZodLiteral<"notifications/elicitation/complete">; params: z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; elicitationId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>; declare const ServerResultSchema: z.ZodUnion>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; /** * Indicates the type of the result, allowing the receiver to determine how to * parse the result object. Servers implementing protocol revision 2026-07-28 or * later always include this field; results from earlier revisions omit it, and * an absent value must be treated as `"complete"`. */ resultType: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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>>; tasks: z.ZodOptional>>; /** * Present if the server supports cancelling tasks. */ cancel: z.ZodOptional>>; /** * Capabilities for task creation on specific request types. */ requests: z.ZodOptional>>; }, z.core.$loose>>; }, z.core.$loose>>; }, z.core.$loose>>; extensions: z.ZodOptional>>>; }, z.core.$strip>; serverInfo: z.ZodObject<{ version: z.ZodString; websiteUrl: z.ZodOptional; description: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; description: z.ZodOptional; messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; nextCursor: z.ZodOptional; resources: z.ZodArray; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; nextCursor: z.ZodOptional; resourceTemplates: z.ZodArray; mimeType: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; content: z.ZodDefault; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"audio">; data: z.ZodString; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ uri: z.ZodString; description: z.ZodOptional; mimeType: z.ZodOptional; size: z.ZodOptional; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: 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>]>; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strip>>; _meta: z.ZodOptional>; }, z.core.$strip>]>>>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: 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>>; execution: z.ZodOptional>; }, z.core.$strip>>; _meta: z.ZodOptional>; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strip>>>; name: z.ZodString; title: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; nextCursor: z.ZodOptional; tasks: z.ZodArray; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>, z.ZodObject<{ _meta: z.ZodOptional>; /** * If specified, this request is related to the provided task. */ "io.modelcontextprotocol/related-task": z.ZodOptional>; }, z.core.$loose>>; resultType: z.ZodOptional; task: z.ZodObject<{ taskId: z.ZodString; status: z.ZodEnum<{ working: "working"; input_required: "input_required"; completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; ttl: z.ZodUnion; createdAt: z.ZodString; lastUpdatedAt: z.ZodString; pollInterval: z.ZodOptional; statusMessage: z.ZodOptional; }, z.core.$strip>; }, z.core.$loose>]>; /** * Gets the Zod schema for validating results of a given request method. * Returns `undefined` for non-spec methods. * @see getRequestSchema for explanation of the internal type assertion. */ declare function getResultSchema(method: M): z.ZodType; declare function getResultSchema(method: string): z.ZodType | undefined; /** * Gets the Zod schema for a given request method. * Returns `undefined` for non-spec methods. * The return type is a ZodType that parses to RequestTypeMap[M], allowing callers * to use schema.parse() without needing additional type assertions. * * Note: The internal cast is necessary because TypeScript can't correlate the * Record-based schema lookup with the MethodToTypeMap-based RequestTypeMap * when M is a generic type parameter. Both compute to the same type at * instantiation, but TypeScript can't prove this statically. */ declare function getRequestSchema(method: M): z.ZodType; declare function getRequestSchema(method: string): z.ZodType | undefined; /** * Gets the Zod schema for a given notification method. * Returns `undefined` for non-spec methods. * @see getRequestSchema for explanation of the internal type assertion. */ declare function getNotificationSchema(method: M): z.ZodType; declare function getNotificationSchema(method: string): z.ZodType | undefined; //#endregion //#region ../core-internal/src/types/types.d.ts type JSONValue = string | number | boolean | null | JSONObject | JSONArray; type JSONObject = { [key: string]: JSONValue; }; type JSONArray = JSONValue[]; /** * Utility types */ type ExpandRecursively = T$1 extends object ? (T$1 extends infer O ? { [K in keyof O]: ExpandRecursively } : never) : T$1; type Primitive = string | number | boolean | bigint | null | undefined; type Flatten = T$1 extends Primitive ? T$1 : T$1 extends Array ? Array> : T$1 extends Set ? Set> : T$1 extends Map ? Map, Flatten> : T$1 extends object ? { [K in keyof T$1]: Flatten } : T$1; type Infer = Flatten>; type ProgressToken = Infer; type Cursor = Infer; type Request = Infer; type TaskAugmentedRequestParams = Infer; type RequestMeta = Infer; type Notification = Infer; type Result = Infer; type RequestId = Infer; type JSONRPCRequest = Infer; type JSONRPCNotification = Infer; type JSONRPCResponse = Infer; type JSONRPCErrorResponse = Infer; type JSONRPCResultResponse = Infer; type JSONRPCMessage = Infer; type RequestParams = Infer; type NotificationParams = Infer; /** * The per-request `_meta` envelope carried by every request under protocol revision * 2026-07-28 (protocol version, client info, client capabilities, optional log level). */ type RequestMetaEnvelope = Infer; type EmptyResult = Infer; type CancelledNotificationParams = Infer; type CancelledNotification = Infer; type Icon = Infer; type Icons = Infer; type BaseMetadata = Infer; type Annotations = Infer; type Role = Infer; type Implementation = Infer; /** * Capabilities a client may support. * * Note: the `roots` and `sampling` capabilities are deprecated as of protocol * version 2026-07-28 (SEP-2577); they remain in the specification for at least * twelve months. See `ClientCapabilitiesSchema`. */ type ClientCapabilities = Infer; type InitializeRequestParams = Infer; type InitializeRequest = Infer; /** * Capabilities a server may support. * * Note: the `logging` capability is deprecated as of protocol version * 2026-07-28 (SEP-2577); it remains in the specification for at least twelve * months. See `ServerCapabilitiesSchema`. */ type ServerCapabilities = Infer; type InitializeResult = Infer; type InitializedNotification = Infer; type DiscoverRequest = Infer; type DiscoverResult = Infer; type PingRequest = Infer; type Progress = Infer; type ProgressNotificationParams = Infer; type ProgressNotification = Infer; type Task = Infer; type TaskStatus = Infer; type TaskCreationParams = Infer; type TaskMetadata = Infer; type RelatedTaskMetadata = Infer; type CreateTaskResult = Infer; type TaskStatusNotificationParams = Infer; type TaskStatusNotification = Infer; type GetTaskRequest = Infer; type GetTaskResult = Infer; type GetTaskPayloadRequest = Infer; type ListTasksRequest = Infer; type ListTasksResult = Infer; type CancelTaskRequest = Infer; type CancelTaskResult = Infer; type GetTaskPayloadResult = Infer; type PaginatedRequestParams = Infer; type PaginatedRequest = Infer; type PaginatedResult = Infer; type ResourceContents = Infer; type TextResourceContents = Infer; type BlobResourceContents = Infer; type Resource = Infer; type ResourceTemplateType = Infer; type ListResourcesRequest = Infer; type ListResourcesResult = Infer; type ListResourceTemplatesRequest = Infer; type ListResourceTemplatesResult = Infer; type ResourceRequestParams = Infer; type ReadResourceRequestParams = Infer; type ReadResourceRequest = Infer; type ReadResourceResult = Infer; type ResourceListChangedNotification = Infer; type SubscribeRequestParams = Infer; type SubscribeRequest = Infer; type UnsubscribeRequestParams = Infer; type UnsubscribeRequest = Infer; type ResourceUpdatedNotificationParams = Infer; type ResourceUpdatedNotification = Infer; type PromptArgument = Infer; type Prompt = Infer; type ListPromptsRequest = Infer; type ListPromptsResult = Infer; type GetPromptRequestParams = Infer; type GetPromptRequest = Infer; type TextContent = Infer; type ImageContent = Infer; type AudioContent = Infer; type ToolUseContent = Infer; type ToolResultContent = Infer; type EmbeddedResource = Infer; type ResourceLink = Infer; type ContentBlock = Infer; type PromptMessage = Infer; type GetPromptResult = Infer; type PromptListChangedNotification = Infer; type ToolAnnotations = Infer; type ToolExecution = Infer; type Tool = Infer; type ListToolsRequest = Infer; type ListToolsResult = Infer; type CallToolRequestParams = Infer; type CallToolResult = Infer; type CompatibilityCallToolResult = Infer; type CallToolRequest = Infer; type ToolListChangedNotification = Infer; type LoggingLevel = Infer; type SetLevelRequestParams = Infer; type SetLevelRequest = Infer; type LoggingMessageNotificationParams = Infer; type LoggingMessageNotification = Infer; type ToolChoice = Infer; type ModelHint = Infer; type ModelPreferences = Infer; type SamplingContent = Infer; type SamplingMessageContentBlock = Infer; type SamplingMessage = Infer; type CreateMessageRequestParams = Infer; type CreateMessageRequest = Infer; type CreateMessageResult = Infer; type CreateMessageResultWithTools = Infer; type BooleanSchema = Infer; type StringSchema = Infer; type NumberSchema = Infer; type EnumSchema = Infer; type UntitledSingleSelectEnumSchema = Infer; type TitledSingleSelectEnumSchema = Infer; type LegacyTitledEnumSchema = Infer; type UntitledMultiSelectEnumSchema = Infer; type TitledMultiSelectEnumSchema = Infer; type SingleSelectEnumSchema = Infer; type MultiSelectEnumSchema = Infer; type PrimitiveSchemaDefinition = Infer; type ElicitRequestParams = Infer; type ElicitRequestFormParams = Infer; type ElicitRequestURLParams = Infer; type ElicitRequest = Infer; type ElicitationCompleteNotificationParams = Infer; type ElicitationCompleteNotification = Infer; type ElicitResult = Infer; type ResourceTemplateReference = Infer; type PromptReference = Infer; type CompleteRequestParams = Infer; type CompleteRequest = Infer; type CompleteResult = Infer; type Root = Infer; type ListRootsRequest = Infer; type ListRootsResult = Infer; type RootsListChangedNotification = Infer; type ClientRequest = Infer; type ClientNotification = Infer; type ClientResult = Infer; type ServerRequest = Infer; type ServerNotification = Infer; type ServerResult = Infer; type MethodToTypeMap = { [T in U$1 as T extends { method: infer M extends string; } ? M : never]: T }; type RequestMethod = ClientRequest['method'] | ServerRequest['method']; type NotificationMethod = ClientNotification['method'] | ServerNotification['method']; type RequestTypeMap = MethodToTypeMap; type NotificationTypeMap = MethodToTypeMap; type ResultTypeMap = { ping: EmptyResult; initialize: InitializeResult; 'completion/complete': CompleteResult; 'logging/setLevel': EmptyResult; 'prompts/get': GetPromptResult; 'prompts/list': ListPromptsResult; 'resources/list': ListResourcesResult; 'resources/templates/list': ListResourceTemplatesResult; 'resources/read': ReadResourceResult; 'resources/subscribe': EmptyResult; 'resources/unsubscribe': EmptyResult; 'tools/call': CallToolResult | CreateTaskResult; 'tools/list': ListToolsResult; 'sampling/createMessage': CreateMessageResult | CreateMessageResultWithTools | CreateTaskResult; 'elicitation/create': ElicitResult | CreateTaskResult; 'roots/list': ListRootsResult; 'tasks/get': GetTaskResult; 'tasks/result': Result; 'tasks/list': ListTasksResult; 'tasks/cancel': CancelTaskResult; }; /** * Information about a validated access token, provided to request handlers. */ interface AuthInfo { /** * The access token. */ token: string; /** * The client ID associated with this token. */ clientId: string; /** * Scopes associated with this token. */ scopes: string[]; /** * When the token expires (in seconds since epoch). */ expiresAt?: number; /** * The RFC 8707 resource server identifier for which this token is valid. * If set, this MUST match the MCP server's resource identifier (minus hash fragment). */ resource?: URL; /** * Additional data associated with the token. * This field should be used for any additional data that needs to be attached to the auth info. */ extra?: Record; } type JSONRPCErrorObject = { code: number; message: string; data?: unknown; }; interface ParseError extends JSONRPCErrorObject { code: typeof PARSE_ERROR; } interface InvalidRequestError extends JSONRPCErrorObject { code: typeof INVALID_REQUEST; } interface MethodNotFoundError extends JSONRPCErrorObject { code: typeof METHOD_NOT_FOUND; } interface InvalidParamsError extends JSONRPCErrorObject { code: typeof INVALID_PARAMS; } interface InternalError extends JSONRPCErrorObject { code: typeof INTERNAL_ERROR; } /** * Data carried by a `-32004` UnsupportedProtocolVersion protocol error * (protocol revision 2026-07-28). */ interface UnsupportedProtocolVersionErrorData { /** * Protocol versions the receiver supports. The sender should choose a * mutually supported version from this list and retry. */ supported: string[]; /** * The protocol version that was requested. */ requested: string; } /** * Callback type for list changed notifications. */ type ListChangedCallback = (error: Error | null, items: T$1[] | null) => void; /** * Options for subscribing to list changed notifications. * * @typeParam T - The type of items in the list (`Tool`, `Prompt`, or `Resource`) */ type ListChangedOptions = { /** * If `true`, the list will be refreshed automatically when a list changed notification is received. * @default true */ autoRefresh?: boolean; /** * Debounce time in milliseconds. Set to `0` to disable. * @default 300 */ debounceMs?: number; /** * Callback invoked when the list changes. * * If `autoRefresh` is `true`, `items` contains the updated list. * If `autoRefresh` is `false`, `items` is `null` (caller should refresh manually). */ onChanged: ListChangedCallback; }; /** * Configuration for list changed notification handlers. * * Use this to configure handlers for tools, prompts, and resources list changes * when creating a client. * * Note: Handlers are only activated if the server advertises the corresponding * `listChanged` capability (e.g., `tools.listChanged: true`). If the server * doesn't advertise this capability, the handler will not be set up. */ type ListChangedHandlers = { /** * Handler for tool list changes. */ tools?: ListChangedOptions; /** * Handler for prompt list changes. */ prompts?: ListChangedOptions; /** * Handler for resource list changes. */ resources?: ListChangedOptions; }; /** * Extra information about a message. */ interface MessageExtraInfo { /** * The original HTTP request. */ request?: globalThis.Request; /** * The authentication information. */ authInfo?: AuthInfo; /** * Callback to close the SSE stream for this request, triggering client reconnection. * Only available when using {@linkcode @modelcontextprotocol/node!streamableHttp.NodeStreamableHTTPServerTransport | NodeStreamableHTTPServerTransport} with eventStore configured. */ closeSSEStream?: () => void; /** * Callback to close the standalone GET SSE stream, triggering client reconnection. * Only available when using {@linkcode @modelcontextprotocol/node!streamableHttp.NodeStreamableHTTPServerTransport | NodeStreamableHTTPServerTransport} with eventStore configured. */ closeStandaloneSSEStream?: () => void; } type MetaObject = Record; type RequestMetaObject = RequestMeta; /** * {@linkcode CreateMessageRequestParams} without tools - for backwards-compatible overload. * Excludes tools/toolChoice to indicate they should not be provided. */ type CreateMessageRequestParamsBase = Omit; /** * {@linkcode CreateMessageRequestParams} with required tools - for tool-enabled overload. */ interface CreateMessageRequestParamsWithTools extends CreateMessageRequestParams { tools: Tool[]; } type CompleteRequestResourceTemplate = ExpandRecursively; type CompleteRequestPrompt = ExpandRecursively; //#endregion //#region ../core-internal/src/shared/transport.d.ts type FetchLike = (url: string | URL, init?: RequestInit) => Promise; /** * Creates a fetch function that includes base `RequestInit` options. * This ensures requests inherit settings like credentials, mode, headers, etc. from the base init. * * @param baseFetch - The base fetch function to wrap (defaults to global `fetch`) * @param baseInit - The base `RequestInit` to merge with each request * @returns A wrapped fetch function that merges base options with call-specific options */ declare function createFetchWithInit(baseFetch?: FetchLike, baseInit?: RequestInit): FetchLike; /** * Options for sending a JSON-RPC message. */ type TransportSendOptions = { /** * If present, `relatedRequestId` is used to indicate to the transport which incoming request to associate this outgoing message with. */ relatedRequestId?: RequestId | undefined; /** * The resumption token used to continue long-running requests that were interrupted. * * This allows clients to reconnect and continue from where they left off, if supported by the transport. */ resumptionToken?: string | undefined; /** * A callback that is invoked when the resumption token changes, if supported by the transport. * * This allows clients to persist the latest token for potential reconnection. */ onresumptiontoken?: ((token: string) => void) | undefined; }; /** * Describes the minimal contract for an MCP transport that a client or server can communicate over. */ interface Transport { /** * Starts processing messages on the transport, including any connection steps that might need to be taken. * * This method should only be called after callbacks are installed, or else messages may be lost. * * NOTE: This method should not be called explicitly when using {@linkcode @modelcontextprotocol/client!client/client.Client | Client} or {@linkcode @modelcontextprotocol/server!server/server.Server | Server} classes, as they will implicitly call {@linkcode Transport.start | start()}. */ start(): Promise; /** * Sends a JSON-RPC message (request or response). * * If present, `relatedRequestId` is used to indicate to the transport which incoming request to associate this outgoing message with. */ send(message: JSONRPCMessage, options?: TransportSendOptions): Promise; /** * Closes the connection. */ close(): Promise; /** * Callback for when the connection is closed for any reason. * * This should be invoked when {@linkcode Transport.close | close()} is called as well. */ onclose?: (() => void) | undefined; /** * Callback for when an error occurs. * * Note that errors are not necessarily fatal; they are used for reporting any kind of exceptional condition out of band. */ onerror?: ((error: Error) => void) | undefined; /** * Callback for when a message (request or response) is received over the connection. * * Includes the {@linkcode MessageExtraInfo.request | request} and {@linkcode MessageExtraInfo.authInfo | authInfo} if the transport is authenticated. * * The {@linkcode MessageExtraInfo.request | request} can be used to get the original request information (headers, etc.) */ onmessage?: ((message: T$1, extra?: MessageExtraInfo) => void) | undefined; /** * The session ID generated for this connection. */ sessionId?: string | undefined; /** * Sets the protocol version used for the connection (called when the initialize response is received). */ setProtocolVersion?: ((version: string) => void) | undefined; /** * Sets the supported protocol versions for header validation (called during connect). * This allows the server to pass its supported versions to the transport. */ setSupportedProtocolVersions?: ((versions: string[]) => void) | undefined; } //#endregion export { GetTaskPayloadResult as $, TaskAugmentedRequestParams as $n, PaginatedRequestParams as $t, CreateMessageRequestParams as A, ResourceTemplateReference as An, LATEST_PROTOCOL_VERSION as Ar, ListResourcesRequest as At, ElicitRequestFormParams as B, SamplingMessage as Bn, LoggingMessageNotificationParams as Bt, CompleteRequest as C, RequestParams as Cn, CLIENT_CAPABILITIES_META_KEY as Cr, ListChangedCallback as Ct, CompleteResult as D, ResourceLink as Dn, INVALID_PARAMS as Dr, ListPromptsResult as Dt, CompleteRequestResourceTemplate as E, ResourceContents as En, INTERNAL_ERROR as Er, ListPromptsRequest as Et, CreateTaskResult as F, ResultTypeMap as Fn, RELATED_TASK_META_KEY as Fr, ListTasksResult as Ft, ElicitationCompleteNotificationParams as G, ServerResult as Gn, ModelPreferences as Gt, ElicitRequestURLParams as H, ServerCapabilities as Hn, MetaObject as Ht, Cursor as I, Role as In, SUPPORTED_PROTOCOL_VERSIONS as Ir, ListToolsRequest as It, EnumSchema as J, SingleSelectEnumSchema as Jn, NotificationMethod as Jt, EmbeddedResource as K, SetLevelRequest as Kn, MultiSelectEnumSchema as Kt, DiscoverRequest as L, Root as Ln, TRACEPARENT_META_KEY as Lr, ListToolsResult as Lt, CreateMessageRequestParamsWithTools as M, ResourceUpdatedNotification as Mn, METHOD_NOT_FOUND as Mr, ListRootsRequest as Mt, CreateMessageResult as N, ResourceUpdatedNotificationParams as Nn, PARSE_ERROR as Nr, ListRootsResult as Nt, ContentBlock as O, ResourceListChangedNotification as On, INVALID_REQUEST as Or, ListResourceTemplatesRequest as Ot, CreateMessageResultWithTools as P, Result as Pn, PROTOCOL_VERSION_META_KEY as Pr, ListTasksRequest as Pt, GetTaskPayloadRequest as Q, Task as Qn, PaginatedRequest as Qt, DiscoverResult as R, RootsListChangedNotification as Rn, TRACESTATE_META_KEY as Rr, LoggingLevel as Rt, CompatibilityCallToolResult as S, RequestMethod as Sn, BAGGAGE_META_KEY as Sr, LegacyTitledEnumSchema as St, CompleteRequestPrompt as T, Resource as Tn, DEFAULT_NEGOTIATED_PROTOCOL_VERSION as Tr, ListChangedOptions as Tt, ElicitResult as U, ServerNotification as Un, MethodNotFoundError as Ut, ElicitRequestParams as V, SamplingMessageContentBlock as Vn, MessageExtraInfo as Vt, ElicitationCompleteNotification as W, ServerRequest as Wn, ModelHint as Wt, GetPromptRequestParams as X, SubscribeRequest as Xn, NotificationTypeMap as Xt, GetPromptRequest as Y, StringSchema as Yn, NotificationParams as Yt, GetPromptResult as Z, SubscribeRequestParams as Zn, NumberSchema as Zt, CancelledNotificationParams as _, Request as _n, UnsubscribeRequestParams as _r, JSONRPCNotification as _t, Annotations as a, ProgressNotification as an, TextContent as ar, Implementation as at, ClientRequest as b, RequestMetaEnvelope as bn, UntitledSingleSelectEnumSchema as br, JSONRPCResultResponse as bt, BaseMetadata as c, Prompt as cn, TitledSingleSelectEnumSchema as cr, InitializeResult as ct, CallToolRequest as d, PromptMessage as dn, ToolChoice as dr, InvalidParamsError as dt, PaginatedResult as en, TaskCreationParams as er, GetTaskRequest as et, CallToolRequestParams as f, PromptReference as fn, ToolExecution as fr, InvalidRequestError as ft, CancelledNotification as g, RelatedTaskMetadata as gn, UnsubscribeRequest as gr, JSONRPCMessage as gt, CancelTaskResult as h, ReadResourceResult as hn, ToolUseContent as hr, JSONRPCErrorResponse as ht, createFetchWithInit as i, Progress as in, TaskStatusNotificationParams as ir, ImageContent as it, CreateMessageRequestParamsBase as j, ResourceTemplateType as jn, LOG_LEVEL_META_KEY as jr, ListResourcesResult as jt, CreateMessageRequest as k, ResourceRequestParams as kn, JSONRPC_VERSION as kr, ListResourceTemplatesResult as kt, BlobResourceContents as l, PromptArgument as ln, Tool as lr, InitializedNotification as lt, CancelTaskRequest as m, ReadResourceRequestParams as mn, ToolResultContent as mr, JSONObject as mt, Transport as n, PingRequest as nn, TaskStatus as nr, Icon as nt, AudioContent as o, ProgressNotificationParams as on, TextResourceContents as or, InitializeRequest as ot, CallToolResult as p, ReadResourceRequest as pn, ToolListChangedNotification as pr, JSONArray as pt, EmptyResult as q, SetLevelRequestParams as qn, Notification as qt, TransportSendOptions as r, PrimitiveSchemaDefinition as rn, TaskStatusNotification as rr, Icons as rt, AuthInfo as s, ProgressToken as sn, TitledMultiSelectEnumSchema as sr, InitializeRequestParams as st, FetchLike as t, ParseError as tn, TaskMetadata as tr, GetTaskResult as tt, BooleanSchema as u, PromptListChangedNotification as un, ToolAnnotations as ur, InternalError as ut, ClientCapabilities as v, RequestId as vn, UnsupportedProtocolVersionErrorData as vr, JSONRPCRequest as vt, CompleteRequestParams as w, RequestTypeMap as wn, CLIENT_INFO_META_KEY as wr, ListChangedHandlers as wt, ClientResult as x, RequestMetaObject as xn, schemas_d_exports as xr, JSONValue as xt, ClientNotification as y, RequestMeta as yn, UntitledMultiSelectEnumSchema as yr, JSONRPCResponse as yt, ElicitRequest as z, SamplingContent as zn, LoggingMessageNotification as zt }; //# sourceMappingURL=transport-DMKhEchd.d.mts.map