fix(core): allow additional JSON Schema properties in elicitInput requestedSchema (#1768)
Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
This commit is contained in:
parent
0021561942
commit
866c08d364
1 changed files with 40 additions and 5 deletions
5
.changeset/zod-json-schema-compat.md
Normal file
5
.changeset/zod-json-schema-compat.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@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.
|
||||
Loading…
Reference in a new issue