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

Properties

issues

readonly issues: readonly Issue[]

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


Issue

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

Properties

message

readonly message: string

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

path?

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

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


Options

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

Properties

libraryOptions?

readonly optional libraryOptions?: Record<string, unknown>

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


PathSegment

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

Properties

key

readonly key: PropertyKey

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


Props

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

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

Inherited from

StandardTypedV1.Props.types

validate

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

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

Parameters
value

unknown

options?

Options

Returns

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

vendor

readonly vendor: string

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

Inherited from

StandardTypedV1.Props.vendor

version

readonly version: 1

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

Inherited from

StandardTypedV1.Props.version


SuccessResult

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

Type Parameters

Output

Output

Properties

issues?

readonly optional issues?: undefined

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

value

readonly value: Output

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

Type Aliases

InferInput

InferInput<Schema> = StandardTypedV1.InferInput<Schema>

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

Type Parameters

Schema

Schema extends StandardTypedV1


InferOutput

InferOutput<Schema> = StandardTypedV1.InferOutput<Schema>

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

Type Parameters

Schema

Schema extends StandardTypedV1


Result

Result<Output> = SuccessResult<Output> | FailureResult

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

Type Parameters

Output

Output