Kaballas's picture
xxx
7914788
raw
history blame
504 Bytes
from fastapi import FastAPI
from fastapi.routing import APIRoute
from mcp_server_mariadb_vector.server import mcp
app = FastAPI()
@app.get("/", tags=["health"])
async def root():
return {"status": "ok"}
# Mount the MCP app at /sse (to match README and default behavior)
app.mount("/sse", mcp.http_app())
print("Registered routes in main app:")
for route in app.routes:
if isinstance(route, APIRoute):
print(route.path, route.methods)
else:
print(route.path, type(route))