make mcp "prodution ready"
All checks were successful
Build and Push Agent Docker Image / build (push) Successful in 2m11s

This commit is contained in:
2025-12-13 16:55:00 +01:00
parent b517c6939f
commit 0e24515303
5 changed files with 53 additions and 14 deletions

View File

@@ -106,5 +106,14 @@ def get_user_info() -> dict:
"roles": roles,
}
from starlette.responses import JSONResponse
from starlette.routing import Route
async def health(request):
return JSONResponse({"status": "ok"})
app = mcp.http_app()
app.routes.append(Route("/health", health))
if __name__ == "__main__":
mcp.run(transport='http', host='::1', port=9031)