@maxhealth.tech/prefab / mcp / McpStringSchema
Type Alias: McpStringSchema
ts
type McpStringSchema = object;Defined in: mcp/types.ts:178
The restricted JSON Schema an elicitation may request.
Protocol revision 2026-07-28 replaced server-initiated elicitation/create pushes with Multi Round-Trip Requests: a handler returns an McpInputRequiredResult, the client answers the embedded requests and retries the original call. The schema is deliberately flat — top-level primitive properties only, no nesting — because it has to render as a form in hosts that have no UI surface of their own.
Properties
type
ts
type: "string";Defined in: mcp/types.ts:179
title?
ts
optional title?: string;Defined in: mcp/types.ts:180
description?
ts
optional description?: string;Defined in: mcp/types.ts:181
minLength?
ts
optional minLength?: number;Defined in: mcp/types.ts:182
maxLength?
ts
optional maxLength?: number;Defined in: mcp/types.ts:183
format?
ts
optional format?: "email" | "uri" | "date" | "date-time";Defined in: mcp/types.ts:184
default?
ts
optional default?: string;Defined in: mcp/types.ts:185