From 3da2a9f63c9888c8422be77c8909e7a90bb0e958 Mon Sep 17 00:00:00 2001 From: Piers Dawson-Damer Date: Sat, 14 Feb 2026 13:33:08 +1100 Subject: [PATCH] fix: lifespan handler must accept app argument from FastMCP --- syncthing_mcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthing_mcp.py b/syncthing_mcp.py index d6373f9..88f0d5f 100644 --- a/syncthing_mcp.py +++ b/syncthing_mcp.py @@ -100,7 +100,7 @@ def _format_bytes(n: int) -> str: @asynccontextmanager -async def app_lifespan(): +async def app_lifespan(app): if not SYNCTHING_API_KEY: print("WARNING: SYNCTHING_API_KEY is not set. API calls will fail.") yield {}