Skip to content

Conversation

@kaminoguo
Copy link
Contributor

Summary

  • Add runtime placeholder for McpServer type to fix Pydantic 2.12+ compatibility
  • McpServer was only imported under TYPE_CHECKING, causing PydanticUserError at runtime

Fixes #384

Copy link
Collaborator

@ashwin-ant ashwin-ant left a comment

Choose a reason for hiding this comment

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

Thanks!

@ashwin-ant ashwin-ant merged commit 6791efe into anthropics:main Dec 4, 2025
13 checks passed
ashwin-ant added a commit that referenced this pull request Dec 5, 2025
Include the three bug fixes that were merged but not documented:
- #388: Faster CLI error propagation
- #385: Pydantic 2.12+ compatibility
- #391: Concurrent subagent write lock

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
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.

McpServer forward reference fails at runtime with Pydantic 2.12+

2 participants