Skip to content

Conversation

@the-ayyi
Copy link

@the-ayyi the-ayyi commented Dec 18, 2025

  • Add propagate_through_tool_handlers flag to McpError base class
  • Set UrlElicitationRequiredError to propagate through tool handlers
  • Update fastmcp and lowlevel servers to check flag instead of specific exception type
  • Add comprehensive tests for propagation behavior

git-issue: #1788

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • 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

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

Additional context

…l flow control

- Add propagate_through_tool_handlers flag to McpError base class
- Set UrlElicitationRequiredError to propagate through tool handlers
- Update fastmcp and lowlevel servers to check flag instead of specific exception type
- Add comprehensive tests for propagation behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant