Skip to content

FASTMCP_ env var prefixes no longer respected since 1.12.3 #1273

@cbcoutinho

Description

@cbcoutinho

EDIT: There appears to be an open PR that addresses this issue already: #1244

Initial Checks

Description

PR #1198 modified how the MCP SSE Server is instantiated, namely by unpacking all the server settings explicitly and providing a number of defaults. The previous solution used **kwargs and provided defaults after the Settings object had been . This has resulted in various downstream effects, one of which is it's no longer possible to override the binding host:

$ FASTMCP_HOST=0.0.0.0 uv run mcp run -t sse app.py
INFO:     Started server process [87207]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) <<<<<< NOTE: host=127.0.0.1

Related issues:

Open PRs

Example Code

Python & MCP Python SDK

<1.12.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions