🐛 Add /healthz route to penpot-mcp server - #35
Merged
Conversation
Signed-off-by: Usama Sadiq <usama7274@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
foss-server-bundle/docker-compose.ymlhealth-checks thepenpot-mcpservice viacurl -f http://localhost:4401/healthz, but the Express app inmcp/packages/server/src/PenpotMcpServer.tsnever registered a/healthzroute (only/mcp,/sse, and/messages).unhealthy(curl gets a connection/404 failure on/healthz), even though the MCP server itself is running fine.Fix
GET /healthzroute insetupHttpEndpoints()that returns200 { "status": "ok" }. It performs no auth checks and pings no downstream dependencies (Penpot API, plugin bridge, Cognito, etc.) — matching the simplicity of other MCP servers' healthz endpoints in this monorepo (e.g.plane-mcp-server's bare-200/healthz).Test plan
make dev.build.penpot.mcpinfoss-server-bundledevstack, then confirmdocker psshows thepenpot-mcpcontainer ashealthyandcurl http://localhost:4401/healthzreturns200 {"status":"ok"}.mcp/packages/server(no jest config, no test scripts), so no new tests were added, per repo convention of not inventing new test infra for a file that has none.Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com