We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1ac8d6 commit eb47b05Copy full SHA for eb47b05
src/mcp/server/elicitation.py
@@ -102,6 +102,10 @@ async def elicit_with_validation(
102
# Validate and parse the content using the schema
103
validated_data = schema.model_validate(result.content)
104
return AcceptedElicitation(data=validated_data)
105
+ elif result.action == "accept":
106
+ # Validate the empty result
107
+ validated_data = schema.model_validate({})
108
+ return AcceptedElicitation(data=validated_data)
109
elif result.action == "decline":
110
return DeclinedElicitation()
111
elif result.action == "cancel":
0 commit comments