typescript-sdk/.changeset/zod-json-schema-compat.md
Felix Weinberger 866c08d364
fix(core): allow additional JSON Schema properties in elicitInput requestedSchema (#1768)
Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
2026-04-02 12:49:58 +01:00

345 B

@modelcontextprotocol/core
patch

Allow additional JSON Schema properties in elicitInput's requestedSchema type by adding .catchall(z.unknown()), matching the pattern used by inputSchema. This fixes type incompatibility when using Zod v4's .toJSONSchema() output which includes extra properties like $schema and additionalProperties.