Skip to content

Commit 25802e2

Browse files
authored
Move /health endpoint to /mcp/health (#153)
1 parent c689412 commit 25802e2

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
# Poll the server to see if it's healthy, with a 15-second timeout
128128
echo "Waiting for server to become healthy..."
129129
for i in {1..15}; do
130-
if curl -s --fail http://localhost:8088/health > /dev/null; then
130+
if curl -s --fail http://localhost:8088/mcp/health > /dev/null; then
131131
echo "Server started successfully!"
132132
kill $SERVER_PID
133133
exit 0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ USER mcp
4646
ENV PORT=8080
4747

4848
# Health check with Accept header and explicit PORT
49-
HEALTHCHECK CMD curl --fail -H "Accept: application/json" http://localhost:${PORT}/health || exit 1
49+
HEALTHCHECK CMD curl --fail -H "Accept: application/json" http://localhost:${PORT}/mcp/health || exit 1
5050

5151
# Use sh -c for variable expansion
5252
CMD ["sh", "-c", "datacommons-mcp serve http --host 0.0.0.0 --port ${PORT}"]

deploy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ python3 scripts/create_staging_tag.py
3333
```
3434
Or manually:
3535
```bash
36-
git tag v1.1.3rc1
37-
git push origin v1.1.3rc1
36+
git tag vX.Y.Z.rcN
37+
git push upstream vX.Y.Z.rcN
3838
```
3939

4040
## 3. Production Release

packages/datacommons-mcp/datacommons_mcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
mcp = FastMCP("DC MCP Server", version=__version__)
6666

6767

68-
@mcp.custom_route("/health", methods=["GET"])
68+
@mcp.custom_route("/mcp/health", methods=["GET"])
6969
async def health_check(request: Request) -> JSONResponse: # noqa: ARG001 request param required for decorator
7070
return JSONResponse({"status": "OK", "version": __version__})
7171

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)