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: ... },
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
"many",
>;
metadata: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
modelPreferences: ZodOptional<
ZodObject<
{
costPriority: ...;
hints: ...;
intelligencePriority: ...;
speedPriority: ...;
},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
stopSequences: ZodOptional<ZodArray<ZodString, "many">>;
systemPrompt: ZodOptional<ZodString>;
temperature: ZodOptional<ZodNumber>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
includeContext: ZodOptional<ZodEnum<(...)>>;
maxTokens: ZodNumber;
messages: ZodArray<
ZodObject<(...), (...), (...), (...), (...)>,
"many",
>;
metadata: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
modelPreferences: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
stopSequences: ZodOptional<ZodArray<(...), (...)>>;
systemPrompt: ZodOptional<ZodString>;
temperature: ZodOptional<ZodNumber>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
includeContext: ZodOptional<ZodEnum<(...)>>;
maxTokens: ZodNumber;
messages: ZodArray<
ZodObject<(...), (...), (...), (...), (...)>,
"many",
>;
metadata: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
modelPreferences: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
stopSequences: ZodOptional<ZodArray<(...), (...)>>;
systemPrompt: ZodOptional<ZodString>;
temperature: ZodOptional<ZodNumber>;
},
>,
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"strip",
ZodTypeAny,
{
method: "sampling/createMessage";
params: {
_meta?: objectOutputType<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
ZodTypeAny,
"passthrough",
>;
includeContext?: "none" | "thisServer" | "allServers";
maxTokens: number;
messages: objectOutputType<
{
content: ZodUnion<[(...), (...), (...)]>;
role: ZodEnum<[(...), (...)]>;
},
ZodTypeAny,
"passthrough",
>[];
metadata?: objectOutputType<{}, ZodTypeAny, "passthrough">;
modelPreferences?: objectOutputType<
{
costPriority: ZodOptional<ZodNumber>;
hints: ZodOptional<ZodArray<(...), (...)>>;
intelligencePriority: ZodOptional<ZodNumber>;
speedPriority: ZodOptional<ZodNumber>;
},
ZodTypeAny,
"passthrough",
>;
stopSequences?: string[];
systemPrompt?: string;
temperature?: number;
} & { [k: string]: unknown };
},
{
method: "sampling/createMessage";
params: {
_meta?: objectInputType<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
ZodTypeAny,
"passthrough",
>;
includeContext?: "none" | "thisServer" | "allServers";
maxTokens: number;
messages: objectInputType<
{
content: ZodUnion<[(...), (...), (...)]>;
role: ZodEnum<[(...), (...)]>;
},
ZodTypeAny,
"passthrough",
>[];
metadata?: objectInputType<{}, ZodTypeAny, "passthrough">;
modelPreferences?: objectInputType<
{
costPriority: ZodOptional<ZodNumber>;
hints: ZodOptional<ZodArray<(...), (...)>>;
intelligencePriority: ZodOptional<ZodNumber>;
speedPriority: ZodOptional<ZodNumber>;
},
ZodTypeAny,
"passthrough",
>;
stopSequences?: string[];
systemPrompt?: string;
temperature?: number;
} & { [k: string]: unknown };
},
>,
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<(...)>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{ properties: ...; required: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ properties: ...; required: ...; type: ... },
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
message: ZodString;
requestedSchema: ZodObject<
{ properties: ...; required: ...; type: ... },
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
message: ZodString;
requestedSchema: ZodObject<
{ properties: ...; required: ...; type: ... },
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>;
},
>,
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"strip",
ZodTypeAny,
{
method: "elicitation/create";
params: {
_meta?: objectOutputType<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
ZodTypeAny,
"passthrough",
>;
message: string;
requestedSchema: {
properties: Record<
string,
| objectOutputType<(...), (...), (...)>
| objectOutputType<(...), (...), (...)>
| objectOutputType<(...), (...), (...)>
| objectOutputType<(...), (...), (...)>,
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
} & { [k: string]: unknown };
},
{
method: "elicitation/create";
params: {
_meta?: objectInputType<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
ZodTypeAny,
"passthrough",
>;
message: string;
requestedSchema: {
properties: Record<
string,
| objectInputType<(...), (...), (...)>
| objectInputType<(...), (...), (...)>
| objectInputType<(...), (...), (...)>
| objectInputType<(...), (...), (...)>,
>;
required?: string[];
type: "object";
} & { [k: string]: unknown };
} & { [k: string]: unknown };
},
>,
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",
>;
},
>,
],
> = ...