from fastapi import FastAPI from fastmcp import create_server app = FastAPI() # Mount the existing FastMCP server so `/sse/` streams as before vector_app = create_server(transport="sse") app.mount("/sse", vector_app) # Simple root route – used by generic health-checkers and humans @app.get("/", tags=["health"]) async def root(): return {"status": "ok"}