Skip to content

Custom Docker Build Fails: FastMCP + Pydantic Conflict (“cannot specify both default and default_factory”) #803

@baxteross

Description

@baxteross

Hi,
I’m trying to build a custom Agent Zero Docker image from my Github fork using:
FROM agent0ai/agent-zero-base:latest

The build succeeds, but the container fails to start due to a runtime error inside FastMCP:

File "/a0/python/helpers/mcp_server.py", line 6, in
from fastmcp import FastMCP
...
File "/opt/venv-a0/lib/python3.12/site-packages/pydantic/fields.py", line 252, in init
raise TypeError('cannot specify both default and default_factory')

TypeError: cannot specify both default and default_factory

Has anyone else experienced this problem?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions