MCP TypeScript SDK (V2)
    Preparing search index...

    Interface StandardSchemaWithJSON<Input, Output>

    Combined interface for schemas with both validation and JSON Schema conversion — the intersection of StandardSchemaV1 and StandardJSONSchemaV1.

    This is the type accepted by registerTool / registerPrompt. The SDK needs ~standard.jsonSchema to advertise the tool's argument shape in tools/list, and ~standard.validate to check incoming arguments when a tools/call arrives.

    Zod v4, ArkType, and Valibot (via @valibot/to-json-schema's toStandardJsonSchema) all implement both interfaces.

    https://standardschema.dev/ for the Standard Schema specification

    interface StandardSchemaWithJSON<Input = unknown, Output = Input> {
        "~standard": Props<Input, Output> & Props<Input, Output>;
    }

    Type Parameters

    • Input = unknown
    • Output = Input
    Index

    Properties

    Properties

    "~standard": Props<Input, Output> & Props<Input, Output>