Fix for Url Elicitation issue 1768 by gopitk · Pull Request #1780 · modelcontextprotocol/python-sdk

Fix for #1768

Motivation and Context

Change is needed because UrlElicitationRequiredError was not being propagated as an exception

How Has This Been Tested?

Tested with the examples/snippets indicated in the original issue. Also added a unit test for this case.

Breaking Changes

N/A

Types of changes

  • [X ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • [ x] I have read the MCP Documentation
  • [x ] My code follows the repository's style guidelines
  • [x ] New and existing tests pass locally
  • [ x] I have added appropriate error handling
  • I have added or updated documentation as needed