Skip to content

Conversation

@sfc-gh-jsummer
Copy link
Collaborator

This commit adds a endpoint to the MCP server that returns a 200 OK response with a JSON payload {"status": "ok"}. This endpoint enables compatibility with AWS ALB, Kubernetes, and other orchestration systems that require standard HTTP health checks.

Fixes issue 138 and resolves bug in PR 139 by replacing server.app with FastMCP custom-routes.

Health endpoint is only served for http, streamable-http, and sse transports.

laggeduout and others added 2 commits October 26, 2025 13:11
This commit adds a  endpoint to the MCP server that returns a 200 OK response
with a JSON payload {"status": "ok"}. This endpoint enables compatibility with
AWS ALB, Kubernetes, and other orchestration systems that require standard HTTP health checks.

Fixes #138
@sfc-gh-jsummer
Copy link
Collaborator Author

@laggeduout - Could take another look at your test for the test_health_endpoint.py? You may need to mock the Snowflake connection and/or increase wait time. Currently throws the below error:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /health (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x118fc6e40>: Failed to establish a new connection: [Errno 61] Connection refused'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a simple /health endpoint for ALB / K8

3 participants