typescript-sdk/examples/schema-validators
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Felix Weinberger 1823aae891
Implement MCP 2026-07-28 (#2286)
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-26 14:01:10 +01:00
..
client.ts Implement MCP 2026-07-28 (#2286) 2026-06-26 14:01:10 +01:00
package.json Implement MCP 2026-07-28 (#2286) 2026-06-26 14:01:10 +01:00
README.md Implement MCP 2026-07-28 (#2286) 2026-06-26 14:01:10 +01:00
server.ts Implement MCP 2026-07-28 (#2286) 2026-06-26 14:01:10 +01:00

schema-validators

Tool input/output schemas via Zod, ArkType and Valibot — any Standard-Schema-with-JSON library works. Also shows outputSchema → structuredContent, including an array-root outputSchema (SEP-2106) with the auto-injected TextContent fallback and the client-side unknown runtime-narrowing pattern.

pnpm tsx examples/schema-validators/client.ts