Skip to content

Conversation

@alexsku
Copy link
Contributor

@alexsku alexsku commented Oct 9, 2025

This PR fixes a critical compatibility issue where mcp-server-datahub versions 0.3.0+ fail to import with Pydantic 2.12+, raising TypeError: cannot specify both default and default_factory. The root cause is a bug in fastmcp 2.10.5 (fixed in 2.11.2+) where the Settings class incorrectly specifies both default and default_factory for a field. As a temporary workaround, this PR pins Pydantic to <2.12 to avoid triggering the bug while maintaining compatibility with existing code. A follow-up issue should be created to properly upgrade fastmcp to 2.11.2+ and remove this constraint, which will require testing the middleware API changes and updating affected code (see fastmcp issue #1377 and PR #1380).

Copy link
Contributor

@mayurinehate mayurinehate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks for taking care of this
Let us plan on item to allow higher pydantic version as well.

@mayurinehate mayurinehate merged commit 8622b3d into main Oct 10, 2025
2 checks passed
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.

3 participants