Lifespan
Also written: lifespan
FastAPI code that runs when an app starts and stops. A mounted MCP app needs it to start the MCP request handler (`mcp.session_manager.run()`).
Also written: lifespan
FastAPI code that runs when an app starts and stops. A mounted MCP app needs it to start the MCP request handler (`mcp.session_manager.run()`).