Files
plex-mcp/server.py
Ben 8fc4f00d27
All checks were successful
Build and Push Plex MCP Docker Image / build (push) Successful in 8s
fix: properly initialize FastMCP lifespan in Starlette app
FastMCP requires its lifespan context to be passed to the parent ASGI app
to initialize the StreamableHTTPSessionManager task group. This fix nests
mcp_app.lifespan() inside our custom lifespan to ensure proper initialization
while maintaining our custom startup/shutdown logic.

Resolves: RuntimeError: Task group is not initialized
2025-12-28 21:00:51 +00:00

15 KiB