fix(mcp): démarrer session_manager dans le lifespan FastAPI

This commit is contained in:
2026-05-28 10:31:34 +02:00
parent 39939b9621
commit 727ebc6484
+2 -1
View File
@@ -23,7 +23,8 @@ async def lifespan(app: FastAPI):
Path(settings.data_dir, subdir).mkdir(parents=True, exist_ok=True) Path(settings.data_dir, subdir).mkdir(parents=True, exist_ok=True)
await run_seed() await run_seed()
await init_redis() await init_redis()
yield async with mcp.session_manager.run():
yield
await close_redis() await close_redis()