feat(server): accept Standard Schemas in inputRequired.elicit (#2369)
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
This commit is contained in:
parent
cc70c5e6a9
commit
24be4040d4
1 changed files with 236 additions and 17 deletions
6
.changeset/standard-schema-elicitation.md
Normal file
6
.changeset/standard-schema-elicitation.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@modelcontextprotocol/core-internal': minor
|
||||
'@modelcontextprotocol/server': minor
|
||||
---
|
||||
|
||||
Allow `inputRequired.elicit()` to accept a Standard Schema such as a Zod object for `requestedSchema`. The builder converts it to MCP's restricted form-elicitation JSON Schema, while the same schema can validate and type the response through `acceptedContent()` on handler re-entry.
|
||||
Loading…
Reference in a new issue