fix: use correct internal lifespan attribute for FastMCP
All checks were successful
Build and Push Monarch MCP Docker Image / build (push) Successful in 8s

This commit is contained in:
Ben
2025-12-24 02:09:53 +00:00
parent 14db8e67b3
commit f5a5bb3fc4

View File

@@ -200,7 +200,7 @@ def create_app():
Route("/mcp/messages", endpoint=sse.handle_post_message, methods=["POST"]), Route("/mcp/messages", endpoint=sse.handle_post_message, methods=["POST"]),
] ]
return Starlette(routes=routes, lifespan=mcp.lifespan) return Starlette(routes=routes, lifespan=mcp._lifespan)
app = create_app() app = create_app()