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

MCP TypeScript SDK (V2) / @modelcontextprotocol/server / fromJsonSchema

fromJsonSchema

Functions

fromJsonSchema()

fromJsonSchema<T>(schema, validator?): StandardSchemaWithJSON<T, T>

Defined in: packages/server/src/fromJsonSchema.ts:7

Type Parameters

T

T = unknown

Parameters

schema

JsonSchemaType

validator?

jsonSchemaValidator

Returns

StandardSchemaWithJSON<T, T>