Kaballas's picture
ccc
a02de1f
raw
history blame
464 Bytes
from fastapi import FastAPI
from fastapi.routing import APIRoute
from mcp_server_mariadb_vector.server import mcp
# Get the FastMCP HTTP app
app = mcp.http_app()
# Add health endpoint to the FastMCP app
@app.get("/", tags=["health"])
async def root():
return {"status": "ok"}
print("Registered routes:")
for route in app.routes:
if isinstance(route, APIRoute):
print(route.path, route.methods)
else:
print(route.path, type(route))