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<
extendShape<
{ name: ZodString; title: ZodOptional<(...)> },
{ version: ZodString; websiteUrl: ZodOptional<(...)> },
>,
{ icons: ZodOptional<ZodArray<(...), (...)>> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
extendShape<
{ name: ...; title: ... },
{ version: ...; websiteUrl: ... },
>,
{ icons: ZodOptional<(...)> },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
extendShape<
{ name: ...; title: ... },
{ version: ...; websiteUrl: ... },
>,
{ icons: ZodOptional<(...)> },
>,
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<
extendShape<
{ name: ...; title: ... },
{ version: ...; websiteUrl: ... },
>,
{ icons: ZodOptional<(...)> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<extendShape<(...), (...)>, { icons: ... }>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<extendShape<(...), (...)>, { icons: ... }>,
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<
extendShape<
{ name: ...; title: ... },
{ version: ...; websiteUrl: ... },
>,
{ icons: ZodOptional<(...)> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<extendShape<(...), (...)>, { icons: ... }>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<extendShape<(...), (...)>, { icons: ... }>,
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: {
icons?: objectOutputType<
{
mimeType: ZodOptional<(...)>;
sizes: ZodOptional<(...)>;
src: ZodString;
},
ZodTypeAny,
"passthrough",
>[];
name: string;
title?: string;
version: string;
websiteUrl?: 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: {
icons?: objectInputType<
{
mimeType: ZodOptional<(...)>;
sizes: ZodOptional<(...)>;
src: ZodString;
},
ZodTypeAny,
"passthrough",
>[];
name: string;
title?: string;
version: string;
websiteUrl?: 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.