Variable InitializeRequestSchemaConst
InitializeRequestSchema: ZodObject<
extendShape<
{
method: ZodString;
params: ZodOptional<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
method: ZodLiteral<"initialize">;
params: ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
capabilities: ZodObject<
{
elicitation: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
experimental: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
roots: ZodOptional<
ZodObject<
{ listChanged: ... },
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
sampling: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
elicitation: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
experimental: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
roots: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
sampling: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
elicitation: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
experimental: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
roots: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
sampling: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
>;
clientInfo: ZodObject<
extendShape<
{ name: ZodString; title: ZodOptional<ZodString> },
{ version: ZodString },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{ version: ZodString },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{ version: ZodString },
>,
ZodTypeAny,
"passthrough",
>,
>;
protocolVersion: ZodString;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
{
capabilities: ZodObject<
{
elicitation: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
experimental: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
roots: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
sampling: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
elicitation: ZodOptional<(...)>;
experimental: ZodOptional<(...)>;
roots: ZodOptional<(...)>;
sampling: ZodOptional<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
elicitation: ZodOptional<(...)>;
experimental: ZodOptional<(...)>;
roots: ZodOptional<(...)>;
sampling: ZodOptional<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>;
clientInfo: ZodObject<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{ version: ZodString },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<{ name: ...; title: ... }, { version: ... }>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<{ name: ...; title: ... }, { version: ... }>,
ZodTypeAny,
"passthrough",
>,
>;
protocolVersion: ZodString;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
{
capabilities: ZodObject<
{
elicitation: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
experimental: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
roots: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
sampling: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
elicitation: ZodOptional<(...)>;
experimental: ZodOptional<(...)>;
roots: ZodOptional<(...)>;
sampling: ZodOptional<(...)>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
elicitation: ZodOptional<(...)>;
experimental: ZodOptional<(...)>;
roots: ZodOptional<(...)>;
sampling: ZodOptional<(...)>;
},
ZodTypeAny,
"passthrough",
>,
>;
clientInfo: ZodObject<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{ version: ZodString },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<{ name: ...; title: ... }, { version: ... }>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<{ name: ...; title: ... }, { version: ... }>,
ZodTypeAny,
"passthrough",
>,
>;
protocolVersion: ZodString;
},
>,
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"strip",
ZodTypeAny,
{
method: "initialize";
params: {
_meta?: objectOutputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>;
capabilities: {
elicitation?: objectOutputType<{}, ZodTypeAny, "passthrough">;
experimental?: objectOutputType<{}, ZodTypeAny, "passthrough">;
roots?: objectOutputType<
{ listChanged: ZodOptional<ZodBoolean> },
ZodTypeAny,
"passthrough",
>;
sampling?: objectOutputType<{}, ZodTypeAny, "passthrough">;
} & { [k: string]: unknown };
clientInfo: { name: string; title?: string; version: string } & {
[k: string]: unknown;
};
protocolVersion: string;
} & { [k: string]: unknown };
},
{
method: "initialize";
params: {
_meta?: objectInputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>;
capabilities: {
elicitation?: objectInputType<{}, ZodTypeAny, "passthrough">;
experimental?: objectInputType<{}, ZodTypeAny, "passthrough">;
roots?: objectInputType<
{ listChanged: ZodOptional<ZodBoolean> },
ZodTypeAny,
"passthrough",
>;
sampling?: objectInputType<{}, ZodTypeAny, "passthrough">;
} & { [k: string]: unknown };
clientInfo: { name: string; title?: string; version: string } & {
[k: string]: unknown;
};
protocolVersion: string;
} & { [k: string]: unknown };
},
> = ...
This request is sent from the client to the server when it first connects, asking it to begin initialization.