Skip to content

Commit 96fa05b

Browse files
committed
fix(qr-server): remove deprecated FastMCP constructor args
The Python SDK (modelcontextprotocol/python-sdk#1898) moved transport-specific parameters (port, stateless_http) from FastMCP constructor to run(). This broke the qr-server when run via stdio. The port is already passed directly to uvicorn.run() for HTTP mode, so these constructor args were redundant.
1 parent f6ee5d5 commit 96fa05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/qr-server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
HOST = os.environ.get("HOST", "0.0.0.0") # 0.0.0.0 for Docker compatibility
2828
PORT = int(os.environ.get("PORT", "3108"))
2929

30-
mcp = FastMCP("QR Code Server", port=PORT, stateless_http=True)
30+
mcp = FastMCP("QR Code Server")
3131

3232

3333
@mcp.tool(meta={

0 commit comments

Comments
 (0)