-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
EDIT: There appears to be an open PR that addresses this issue already: #1244
Initial Checks
- I confirm that I'm using the latest version of MCP Python SDK
- I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue
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