This is the documentation for the v2 beta — 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:131

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:21

Inherited from

Props.types

validate

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

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

Parameters
value

unknown

options?

Options

Returns

Result<Output>

Overrides

Props.validate

vendor

readonly vendor: string

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

Inherited from

Props.vendor

version

readonly version: 1

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

Inherited from

Props.version

Type Aliases

InferInput

InferInput<Schema> = StandardTypedV1.InferInput<Schema>

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

Type Parameters

Schema

Schema extends StandardTypedV1


InferOutput

InferOutput<Schema> = StandardTypedV1.InferOutput<Schema>

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

Type Parameters

Schema

Schema extends StandardTypedV1