Skip to content

Commit c0647e6

Browse files
author
PR-Contributor
committed
fix: Align ElicitResult action naming with specification
Change action value from "decline" to "reject" to match the MCP specification. The specification defines three actions for Elicitation: - accept - reject - cancel But the Python SDK was using "decline" instead of "reject". This fixes the inconsistency between the SDK and the specification. Fixes #1056
1 parent 5fa31c3 commit c0647e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/types/_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,11 +1688,11 @@ class ElicitRequest(Request[ElicitRequestParams, Literal["elicitation/create"]])
16881688
class ElicitResult(Result):
16891689
"""The client's response to an elicitation request."""
16901690

1691-
action: Literal["accept", "decline", "cancel"]
1691+
action: Literal["accept", "reject", "cancel"]
16921692
"""
16931693
The user action in response to the elicitation.
16941694
- "accept": User submitted the form/confirmed the action (or consented to URL navigation)
1695-
- "decline": User explicitly declined the action
1695+
- "reject": User explicitly rejected the action
16961696
- "cancel": User dismissed without making an explicit choice
16971697
"""
16981698

0 commit comments

Comments
 (0)