From 727ebc648469c71948997e7e276f5482dab29156 Mon Sep 17 00:00:00 2001 From: Gilles Soulier Date: Thu, 28 May 2026 10:31:34 +0200 Subject: [PATCH] =?UTF-8?q?fix(mcp):=20d=C3=A9marrer=20session=5Fmanager?= =?UTF-8?q?=20dans=20le=20lifespan=20FastAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index ea11fbe..92d4481 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -23,7 +23,8 @@ async def lifespan(app: FastAPI): Path(settings.data_dir, subdir).mkdir(parents=True, exist_ok=True) await run_seed() await init_redis() - yield + async with mcp.session_manager.run(): + yield await close_redis()