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 09c9c01Copy full SHA for 09c9c01
src/mcp/server/elicitation.py
@@ -102,6 +102,9 @@ 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" and result.content is not None:
106
+ validated_data = schema.model_validate(result.content)
107
+ return AcceptedElicitation(data=validated_data)
108
elif result.action == "decline":
109
return DeclinedElicitation()
110
elif result.action == "cancel":
0 commit comments