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

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

StandardSchemaV1 ​

Interfaces ​

FailureResult ​

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

Properties ​

issues ​

readonly issues: readonly Issue[]

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


Issue ​

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

Properties ​

message ​

readonly message: string

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

path? ​

readonly optional path?: readonly (PropertyKey | PathSegment)[]

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


Options ​

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

Properties ​

libraryOptions? ​

readonly optional libraryOptions?: Record<string, unknown>

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


PathSegment ​

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

Properties ​

key ​

readonly key: PropertyKey

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


Props ​

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

Extends ​

  • Props<Input, Output>

Extended by ​

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 ​

StandardTypedV1.Props.types

validate ​

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

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

Parameters ​
value ​

unknown

options? ​

Options

Returns ​

Result<Output> | Promise<Result<Output>>

vendor ​

readonly vendor: string

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

Inherited from ​

StandardTypedV1.Props.vendor

version ​

readonly version: 1

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

Inherited from ​

StandardTypedV1.Props.version


SuccessResult ​

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

Type Parameters ​

Output ​

Output

Properties ​

issues? ​

readonly optional issues?: undefined

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

value ​

readonly value: Output

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

Type Aliases ​

InferInput ​

InferInput<Schema> = StandardTypedV1.InferInput<Schema>

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

Type Parameters ​

Schema ​

Schema extends StandardTypedV1


InferOutput ​

InferOutput<Schema> = StandardTypedV1.InferOutput<Schema>

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

Type Parameters ​

Schema ​

Schema extends StandardTypedV1


Result ​

Result<Output> = SuccessResult<Output> | FailureResult

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

Type Parameters ​

Output ​

Output