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()