mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-20 20:44:17 +02:00
Update docs/deployment/running-server.mdx
Co-authored-by: nate nowack <nate@prefect.io>
This commit is contained in:
parent
7213a9c167
commit
0519e8d9ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue