Skip to content

[Fix] MCP: install curl for container healthcheck#1583

Merged
CREDO23 merged 1 commit into
MODSetter:mainfrom
CREDO23:fix-mcp-healthcheck-curl
Jul 7, 2026
Merged

[Fix] MCP: install curl for container healthcheck#1583
CREDO23 merged 1 commit into
MODSetter:mainfrom
CREDO23:fix-mcp-healthcheck-curl

Conversation

@CREDO23

@CREDO23 CREDO23 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

The MCP image is python:3.12-slim, which ships without curl/wget, so Coolify's default container healthcheck against /health fails with curl: not found. Install curl (matching the backend image) so the probe works out of the box.

Tested: image builds; inside the container curl http://localhost:8080/health200.

High-level PR Summary

This PR fixes a container healthcheck issue in the MCP service by installing curl in the Docker image. The base python:3.12-slim image doesn't include curl or wget, which causes Coolify's default healthcheck against the /health endpoint to fail. The fix adds curl to the image using apt-get, following best practices by cleaning up the apt cache to keep the image size minimal.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 surfsense_mcp/Dockerfile

Need help? Join our Discord

Summary by CodeRabbit

  • Bug Fixes
    • Improved container health checks so the service can be reliably probed for a healthy state.
    • Reduced image size slightly by cleaning up package lists after installation.

@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

@CREDO23 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d61038c8-a944-4f05-9486-be4494d66a0f

📥 Commits

Reviewing files that changed from the base of the PR and between 97f3631 and 839618e.

📒 Files selected for processing (1)
  • surfsense_mcp/Dockerfile

📝 Walkthrough

Walkthrough

The Dockerfile for surfsense_mcp adds a curl installation step in the deps stage via apt-get, followed by cleanup of apt package lists, to support a container healthcheck probe.

Changes

Dockerfile Healthcheck Dependency

Layer / File(s) Summary
Install curl for healthcheck
surfsense_mcp/Dockerfile
Adds a RUN step in the deps stage installing curl via apt-get and removing apt package lists to support the container healthcheck probe.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the change to install curl for the MCP container healthcheck.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@CREDO23 CREDO23 merged commit 70a56b9 into MODSetter:main Jul 7, 2026
3 of 7 checks passed
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.

1 participant