File size: 285 Bytes
644bdfe 142e01f 644bdfe 142e01f 22f28c2 142e01f 22f28c2 70a8675 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from fastapi import FastAPI
from mcp_server_mariadb_vector.server import mcp
app = FastAPI()
# Mount the FastMCP SSE app at /sse
vector_app = mcp.sse_app()
app.mount("/sse", vector_app)
# Health endpoint
@app.get("/", tags=["health"])
async def root():
return {"status": "ok"}
|