fix(mcp): démarrer session_manager dans le lifespan FastAPI
This commit is contained in:
@@ -23,6 +23,7 @@ async def lifespan(app: FastAPI):
|
||||
Path(settings.data_dir, subdir).mkdir(parents=True, exist_ok=True)
|
||||
await run_seed()
|
||||
await init_redis()
|
||||
async with mcp.session_manager.run():
|
||||
yield
|
||||
await close_redis()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user