This is the documentation for v2 — looking for the v1 documentation?
Skip to content

MCP TypeScript SDK (V2) / @modelcontextprotocol/server / index / StandardSchemaV1Sync

StandardSchemaV1Sync ​

Interfaces ​

Props ​

Defined in: packages/core-internal/src/util/standardSchema.ts:133

Extends ​

Type Parameters ​

Input ​

Input = unknown

Output ​

Output = Input

Properties ​

types? ​

readonly optional types?: Types<Input, Output>

Defined in: packages/core-internal/src/util/standardSchema.ts:23

Inherited from ​

Props.types

validate ​

readonly validate: (value, options?) => Result<Output>

Defined in: packages/core-internal/src/util/standardSchema.ts:134

Parameters ​
value ​

unknown

options? ​

Options

Returns ​

Result<Output>

Overrides ​

Props.validate

vendor ​

readonly vendor: string

Defined in: packages/core-internal/src/util/standardSchema.ts:22

Inherited from ​

Props.vendor

version ​

readonly version: 1

Defined in: packages/core-internal/src/util/standardSchema.ts:21

Inherited from ​

Props.version

Type Aliases ​

InferInput ​

InferInput<Schema> = StandardTypedV1.InferInput<Schema>

Defined in: packages/core-internal/src/util/standardSchema.ts:137

Type Parameters ​

Schema ​

Schema extends StandardTypedV1


InferOutput ​

InferOutput<Schema> = StandardTypedV1.InferOutput<Schema>

Defined in: packages/core-internal/src/util/standardSchema.ts:138

Type Parameters ​

Schema ​

Schema extends StandardTypedV1