Skip to content

Commit e1fa240

Browse files
committed
fix: allow elicitations accepted without content
1 parent d1ac8d6 commit e1fa240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/server/elicitation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async def elicit_with_validation(
9898
related_request_id=related_request_id,
9999
)
100100

101-
if result.action == "accept" and result.content:
101+
if result.action == "accept" and result.content is not None:
102102
# Validate and parse the content using the schema
103103
validated_data = schema.model_validate(result.content)
104104
return AcceptedElicitation(data=validated_data)

0 commit comments

Comments
 (0)