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 | |
async def root(): | |
return {"status": "ok"} | |
print("Registered routes:") | |
for route in app.routes: | |
print(route.path, route.methods) | |