You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MCP v1.29.0 leaves the generic FastMCP Settings model incomplete after import. With pydantic-settings 2.15.0, constructing a server now emits the intentional incomplete-field warning added by pydantic-settings PR #901:
IncompleteFieldDefinitionWarning: Field 'lifespan' has an incomplete definition: its annotation contains an unresolved forward reference, so settings sources may fail to correctly resolve its value. Call model_rebuild() on the model where the field is defined, once all the referenced types are defined.
Thanks for the report. This one is specific to the 1.x line: on v2, MCPServer's Settings is a plain pydantic.BaseModel rather than a pydantic-settingsBaseSettings, so IncompleteFieldDefinitionWarning can't fire there. Since it's a warning with a one-line workaround on 1.x (Settings.model_rebuild() after import, or pinning pydantic-settings<2.15) and the 1.x line is now critical-fixes-only, I'm going to close this. If it turns out to break something outright on 1.x rather than warn, feel free to reopen.
Activity
maxisbey commentedon Aug 14, 2026
Thanks for the report. This one is specific to the 1.x line: on v2,
MCPServer'sSettingsis a plainpydantic.BaseModelrather than apydantic-settingsBaseSettings, soIncompleteFieldDefinitionWarningcan't fire there. Since it's a warning with a one-line workaround on 1.x (Settings.model_rebuild()after import, or pinningpydantic-settings<2.15) and the 1.x line is now critical-fixes-only, I'm going to close this. If it turns out to break something outright on 1.x rather than warn, feel free to reopen.AI Disclaimer
fix(mcp): rebuild FastMCP settings before server creation
test(mcp): keep FastMCP settings annotations resolved
style(mcp): keep settings regression lint-clean
test(sqlite): use fixed CI runtime and isolate provider traffic (#884)
fix: make github MCP server portable across contributor machines