Update docs/deployment/running-server.mdx

Co-authored-by: nate nowack <nate@prefect.io>
This commit is contained in:
Jeremiah Lowin 2025-05-15 21:39:25 -04:00 committed by GitHub
commit 0519e8d9ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,7 +266,7 @@ mcp = FastMCP("MyServer")
@mcp.custom_route("/health", methods=["GET"])
async def health_check(request: Request) -> PlainTextResponse:
return PlainTextResponse("OK")return JSONResponse({"status": "healthy"})
return PlainTextResponse("OK")
if __name__ == "__main__":
mcp.run()