Skip to content

UrlElicitationRequiredError not thrown as an McpError exception #1768

@gopitk

Description

@gopitk

Initial Checks

Description

I was testing the snippets in the repo corresponding to the URL mode elicitation. When I run connect-service tool the server seems to be raising UrlElicitationRequiredError. However on the client I dont see this being translated into the McpError exception and instead just seeing as a result error.

Example Code

Using the standard snippets. 

cd examples/snippets
# Server
uv run server elicitation sse
# Client
uv run elicitation-client

Python & MCP Python SDK

Python: 3.11.13
MCP Python SDK: 1.23.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Moderate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workinghelp wantedContributions especially welcomeready for workEnough information for someone to start working on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions