File size: 364 Bytes
644bdfe
22f28c2
644bdfe
 
 
22f28c2
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"}