NotRequired TypedDict return annotation raises PydanticForbiddenQualifier at tool registration on Python 3.10

该报错发生在 Python 3.10 环境下,当 MCP 工具的返回值注解为包含 NotRequired 键的 TypedDict 时,工具注册阶段会触发 PydanticForbiddenQualifier 异常。优先排查是否使用了 typing.get_type_hints 而非 typing_
![[Question]: Rewrite component in agent](https://www.chat-gpts.plus/wp-content/uploads/2026/08/9143-c33f455d-768x403.jpg)
![[Question]: Is there a way to configure how particular extension should be parsed?](https://www.chat-gpts.plus/wp-content/uploads/2026/08/7984-5b787e60-768x403.jpg)






