Skip to content

Python 3.14 compatibility issue with aws-iac-mcp-server due to Pydantic V1 dependencies #2056

@vaughngit

Description

@vaughngit

Description

The aws-iac-mcp-server fails to run on Python 3.14 due to a RuntimeError related to deprecated Pydantic V1 API usage in its dependencies.

Error

RuntimeError: pydantic.v1.fields.UndefinedType

Root Cause

The issue stems from dependencies samtranslator and cfnlint that still use the deprecated Pydantic V1 API, which is no longer compatible with Python 3.14.

Impact

  • Prevents aws-iac-mcp-server from running on Python 3.14
  • Blocks users who have upgraded to the latest Python version
  • Affects compatibility with modern Python environments

Expected Behavior

The aws-iac-mcp-server should work seamlessly with Python 3.14.

Suggested Solution

Update dependencies to versions that support Pydantic V2 or implement compatibility shims for the transition period.

Labels Needed

Please add the following labels: bug, python-3.14, pydantic, compatibility

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions