From 96fa05babd72938bbcfbfbf54ee87db480e70928 Mon Sep 17 00:00:00 2001 From: Anton Pidkuiko MacBook Date: Tue, 20 Jan 2026 12:48:40 +0000 Subject: [PATCH] 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. --- examples/qr-server/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/qr-server/server.py b/examples/qr-server/server.py index baac4d0b..745167aa 100755 --- a/examples/qr-server/server.py +++ b/examples/qr-server/server.py @@ -27,7 +27,7 @@ HOST = os.environ.get("HOST", "0.0.0.0") # 0.0.0.0 for Docker compatibility PORT = int(os.environ.get("PORT", "3108")) -mcp = FastMCP("QR Code Server", port=PORT, stateless_http=True) +mcp = FastMCP("QR Code Server") @mcp.tool(meta={