@modelcontextprotocol/sdk
    Preparing search index...

    Variable ServerRequestSchemaConst

    ServerRequestSchema: ZodUnion<
        [
            ZodObject<
                extendShape<
                    {
                        method: ZodString;
                        params: ZodOptional<
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            { progressToken: ... },
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                        >;
                    },
                    { method: ZodLiteral<"ping"> },
                >,
                "strip",
                ZodTypeAny,
                {
                    method: "ping";
                    params?: objectOutputType<
                        {
                            _meta: ZodOptional<
                                ZodObject<
                                    { progressToken: ZodOptional<(...)> },
                                    "passthrough",
                                    ZodTypeAny,
                                    objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
                                    objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
                                >,
                            >;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >;
                },
                {
                    method: "ping";
                    params?: objectInputType<
                        {
                            _meta: ZodOptional<
                                ZodObject<
                                    { progressToken: ZodOptional<(...)> },
                                    "passthrough",
                                    ZodTypeAny,
                                    objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
                                    objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
                                >,
                            >;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >;
                },
            >,
            ZodObject<
                extendShape<
                    {
                        method: ZodString;
                        params: ZodOptional<
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            { progressToken: ... },
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                        >;
                    },
                    {
                        method: ZodLiteral<"sampling/createMessage">;
                        params: ZodObject<
                            extendShape<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            { progressToken: ... },
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                {
                                    includeContext: ZodOptional<ZodEnum<[(...), (...), (...)]>>;
                                    maxTokens: ZodNumber;
                                    messages: ZodArray<
                                        ZodObject<
                                            { content: ...; role: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { content: ...; role: ... },
                                            { content: ...; role: ... },
                                        >,
                                        "many",
                                    >;
                                    metadata: ZodOptional<ZodType<object, ZodTypeDef, object>>;
                                    modelPreferences: ZodOptional<
                                        ZodObject<
                                            {
                                                costPriority: ...;
                                                hints: ...;
                                                intelligencePriority: ...;
                                                speedPriority: ...;
                                            },
                                            "strip",
                                            ZodTypeAny,
                                            {
                                                costPriority?: ...;
                                                hints?: ...;
                                                intelligencePriority?: ...;
                                                speedPriority?: ...;
                                            },
                                            {
                                                costPriority?: ...;
                                                hints?: ...;
                                                intelligencePriority?: ...;
                                                speedPriority?: ...;
                                            },
                                        >,
                                    >;
                                    stopSequences: ZodOptional<ZodArray<ZodString, "many">>;
                                    systemPrompt: ZodOptional<ZodString>;
                                    temperature: ZodOptional<ZodNumber>;
                                },
                            >,
                            "strip",
                            ZodTypeAny,
                            {
                                _meta?: objectOutputType<
                                    { progressToken: ZodOptional<(...)> },
                                    ZodTypeAny,
                                    "passthrough",
                                >;
                                includeContext?: "none" | "thisServer" | "allServers";
                                maxTokens: number;
                                messages: {
                                    content:
                                        | { _meta?: ...; text: ...; type: ... }
                                        | { _meta?: ...; data: ...; mimeType: ...; type: ... }
                                        | { _meta?: ...; data: ...; mimeType: ...; type: ... };
                                    role: "user" | "assistant";
                                }[];
                                metadata?: object;
                                modelPreferences?: {
                                    costPriority?: number;
                                    hints?: (...)[];
                                    intelligencePriority?: number;
                                    speedPriority?: number;
                                };
                                stopSequences?: string[];
                                systemPrompt?: string;
                                temperature?: number;
                            },
                            {
                                _meta?: objectInputType<
                                    { progressToken: ZodOptional<(...)> },
                                    ZodTypeAny,
                                    "passthrough",
                                >;
                                includeContext?: "none" | "thisServer" | "allServers";
                                maxTokens: number;
                                messages: {
                                    content:
                                        | { _meta?: ...; text: ...; type: ... }
                                        | { _meta?: ...; data: ...; mimeType: ...; type: ... }
                                        | { _meta?: ...; data: ...; mimeType: ...; type: ... };
                                    role: "user" | "assistant";
                                }[];
                                metadata?: object;
                                modelPreferences?: {
                                    costPriority?: number;
                                    hints?: (...)[];
                                    intelligencePriority?: number;
                                    speedPriority?: number;
                                };
                                stopSequences?: string[];
                                systemPrompt?: string;
                                temperature?: number;
                            },
                        >;
                    },
                >,
                "strip",
                ZodTypeAny,
                {
                    method: "sampling/createMessage";
                    params: {
                        _meta?: objectOutputType<
                            { progressToken: ZodOptional<ZodUnion<[(...), (...)]>> },
                            ZodTypeAny,
                            "passthrough",
                        >;
                        includeContext?: "none" | "thisServer" | "allServers";
                        maxTokens: number;
                        messages: {
                            content:
                                | { _meta?: Record<(...), (...)>; text: string; type: "text" }
                                | {
                                    _meta?: Record<(...), (...)>;
                                    data: string;
                                    mimeType: string;
                                    type: "image";
                                }
                                | {
                                    _meta?: Record<(...), (...)>;
                                    data: string;
                                    mimeType: string;
                                    type: "audio";
                                };
                            role: "user"
                            | "assistant";
                        }[];
                        metadata?: object;
                        modelPreferences?: {
                            costPriority?: number;
                            hints?: { name?: (...)
                            | (...) }[];
                            intelligencePriority?: number;
                            speedPriority?: number;
                        };
                        stopSequences?: string[];
                        systemPrompt?: string;
                        temperature?: number;
                    };
                },
                {
                    method: "sampling/createMessage";
                    params: {
                        _meta?: objectInputType<
                            { progressToken: ZodOptional<ZodUnion<[(...), (...)]>> },
                            ZodTypeAny,
                            "passthrough",
                        >;
                        includeContext?: "none" | "thisServer" | "allServers";
                        maxTokens: number;
                        messages: {
                            content:
                                | { _meta?: Record<(...), (...)>; text: string; type: "text" }
                                | {
                                    _meta?: Record<(...), (...)>;
                                    data: string;
                                    mimeType: string;
                                    type: "image";
                                }
                                | {
                                    _meta?: Record<(...), (...)>;
                                    data: string;
                                    mimeType: string;
                                    type: "audio";
                                };
                            role: "user"
                            | "assistant";
                        }[];
                        metadata?: object;
                        modelPreferences?: {
                            costPriority?: number;
                            hints?: { name?: (...)
                            | (...) }[];
                            intelligencePriority?: number;
                            speedPriority?: number;
                        };
                        stopSequences?: string[];
                        systemPrompt?: string;
                        temperature?: number;
                    };
                },
            >,
            ZodObject<
                extendShape<
                    {
                        method: ZodString;
                        params: ZodOptional<
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            { progressToken: ... },
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                        >;
                    },
                    {
                        method: ZodLiteral<"elicitation/create">;
                        params: ZodObject<
                            extendShape<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            { progressToken: ... },
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                {
                                    message: ZodString;
                                    requestedSchema: ZodObject<
                                        {
                                            properties: ZodRecord<(...), (...)>;
                                            required: ZodOptional<(...)>;
                                            type: ZodLiteral<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            properties: Record<(...), (...)>;
                                            required?: (...) | (...);
                                            type: "object";
                                        },
                                        {
                                            properties: Record<(...), (...)>;
                                            required?: (...) | (...);
                                            type: "object";
                                        },
                                    >;
                                },
                            >,
                            "strip",
                            ZodTypeAny,
                            {
                                _meta?: objectOutputType<
                                    { progressToken: ZodOptional<(...)> },
                                    ZodTypeAny,
                                    "passthrough",
                                >;
                                message: string;
                                requestedSchema: {
                                    properties: Record<
                                        string,
                                        | { default?: ...; description?: ...; title?: ...; type: ... }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            format?: ...;
                                            maxLength?: ...;
                                            minLength?: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            maximum?: ...;
                                            minimum?: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            enum: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            oneOf: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            enum: ...;
                                            enumNames?: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            items: ...;
                                            maxItems?: ...;
                                            minItems?: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            items: ...;
                                            maxItems?: ...;
                                            minItems?: ...;
                                            title?: ...;
                                            type: ...;
                                        },
                                    >;
                                    required?: string[];
                                    type: "object";
                                };
                            },
                            {
                                _meta?: objectInputType<
                                    { progressToken: ZodOptional<(...)> },
                                    ZodTypeAny,
                                    "passthrough",
                                >;
                                message: string;
                                requestedSchema: {
                                    properties: Record<
                                        string,
                                        | { default?: ...; description?: ...; title?: ...; type: ... }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            format?: ...;
                                            maxLength?: ...;
                                            minLength?: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            maximum?: ...;
                                            minimum?: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            enum: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            oneOf: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            enum: ...;
                                            enumNames?: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            items: ...;
                                            maxItems?: ...;
                                            minItems?: ...;
                                            title?: ...;
                                            type: ...;
                                        }
                                        | {
                                            default?: ...;
                                            description?: ...;
                                            items: ...;
                                            maxItems?: ...;
                                            minItems?: ...;
                                            title?: ...;
                                            type: ...;
                                        },
                                    >;
                                    required?: string[];
                                    type: "object";
                                };
                            },
                        >;
                    },
                >,
                "strip",
                ZodTypeAny,
                {
                    method: "elicitation/create";
                    params: {
                        _meta?: objectOutputType<
                            { progressToken: ZodOptional<ZodUnion<[(...), (...)]>> },
                            ZodTypeAny,
                            "passthrough",
                        >;
                        message: string;
                        requestedSchema: {
                            properties: Record<
                                string,
                                | {
                                    default?: boolean;
                                    description?: string;
                                    title?: string;
                                    type: "boolean";
                                }
                                | {
                                    default?: string;
                                    description?: string;
                                    format?: "date"
                                    | "uri"
                                    | "email"
                                    | "date-time";
                                    maxLength?: number;
                                    minLength?: number;
                                    title?: string;
                                    type: "string";
                                }
                                | {
                                    default?: number;
                                    description?: string;
                                    maximum?: number;
                                    minimum?: number;
                                    title?: string;
                                    type: "number"
                                    | "integer";
                                }
                                | {
                                    default?: string;
                                    description?: string;
                                    enum: string[];
                                    title?: string;
                                    type: "string";
                                }
                                | {
                                    default?: string;
                                    description?: string;
                                    oneOf: { const: ...; title: ... }[];
                                    title?: string;
                                    type: "string";
                                }
                                | {
                                    default?: string;
                                    description?: string;
                                    enum: string[];
                                    enumNames?: (...)[];
                                    title?: string;
                                    type: "string";
                                }
                                | {
                                    default?: (...)[];
                                    description?: string;
                                    items: { enum: (...)[]; type: "string" };
                                    maxItems?: number;
                                    minItems?: number;
                                    title?: string;
                                    type: "array";
                                }
                                | {
                                    default?: (...)[];
                                    description?: string;
                                    items: { anyOf: (...)[] };
                                    maxItems?: number;
                                    minItems?: number;
                                    title?: string;
                                    type: "array";
                                },
                            >;
                            required?: string[];
                            type: "object";
                        };
                    };
                },
                {
                    method: "elicitation/create";
                    params: {
                        _meta?: objectInputType<
                            { progressToken: ZodOptional<ZodUnion<[(...), (...)]>> },
                            ZodTypeAny,
                            "passthrough",
                        >;
                        message: string;
                        requestedSchema: {
                            properties: Record<
                                string,
                                | {
                                    default?: boolean;
                                    description?: string;
                                    title?: string;
                                    type: "boolean";
                                }
                                | {
                                    default?: string;
                                    description?: string;
                                    format?: "date"
                                    | "uri"
                                    | "email"
                                    | "date-time";
                                    maxLength?: number;
                                    minLength?: number;
                                    title?: string;
                                    type: "string";
                                }
                                | {
                                    default?: number;
                                    description?: string;
                                    maximum?: number;
                                    minimum?: number;
                                    title?: string;
                                    type: "number"
                                    | "integer";
                                }
                                | {
                                    default?: string;
                                    description?: string;
                                    enum: string[];
                                    title?: string;
                                    type: "string";
                                }
                                | {
                                    default?: string;
                                    description?: string;
                                    oneOf: { const: ...; title: ... }[];
                                    title?: string;
                                    type: "string";
                                }
                                | {
                                    default?: string;
                                    description?: string;
                                    enum: string[];
                                    enumNames?: (...)[];
                                    title?: string;
                                    type: "string";
                                }
                                | {
                                    default?: (...)[];
                                    description?: string;
                                    items: { enum: (...)[]; type: "string" };
                                    maxItems?: number;
                                    minItems?: number;
                                    title?: string;
                                    type: "array";
                                }
                                | {
                                    default?: (...)[];
                                    description?: string;
                                    items: { anyOf: (...)[] };
                                    maxItems?: number;
                                    minItems?: number;
                                    title?: string;
                                    type: "array";
                                },
                            >;
                            required?: string[];
                            type: "object";
                        };
                    };
                },
            >,
            ZodObject<
                extendShape<
                    {
                        method: ZodString;
                        params: ZodOptional<
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            { progressToken: ... },
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                        >;
                    },
                    { method: ZodLiteral<"roots/list"> },
                >,
                "strip",
                ZodTypeAny,
                {
                    method: "roots/list";
                    params?: objectOutputType<
                        {
                            _meta: ZodOptional<
                                ZodObject<
                                    { progressToken: ZodOptional<(...)> },
                                    "passthrough",
                                    ZodTypeAny,
                                    objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
                                    objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
                                >,
                            >;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >;
                },
                {
                    method: "roots/list";
                    params?: objectInputType<
                        {
                            _meta: ZodOptional<
                                ZodObject<
                                    { progressToken: ZodOptional<(...)> },
                                    "passthrough",
                                    ZodTypeAny,
                                    objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
                                    objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
                                >,
                            >;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >;
                },
            >,
        ],
    > = ...