Repository navigation
feat(gateway): tune MCP health polling with spec.mcp.healthCheck - #328
Merged
Merged
Conversation
Closed
3 tasks
The gateway polls every MCP server with tools/list and reconnects one that stops answering, configured gateway-wide by MCP_POLLING_ENABLED, MCP_POLLING_INTERVAL and MCP_POLLING_TIMEOUT. The operator set none of them. Its per-server spec.mcp.servers[].healthCheck (enabled, path, interval) was accepted but never read, and the gateway has no per-server check or path to drive. spec.mcp.healthCheck (enabled, interval, timeout) now renders those variables. Left unset, the gateway keeps its defaults. The per-server field is gone, so a Gateway that still sets it is refused as an unknown field.
edenreich
force-pushed
the
fix/drop-mcp-server-healthcheck
branch
from
November 8, 2026 22:15
e33aea3 to
3ae6aab
Compare
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Nov 8, 2026
## [0.33.0](v0.32.0...v0.33.0) (2026-11-08) ### ✨ Features * **gateway:** tune MCP health polling with spec.mcp.healthCheck ([#328](#328)) ([ff0867c](ff0867c)) * **orchestrator:** give spec.mcp.servers names and headers in the pod's mcp.yaml ([#324](#324)) ([56f4ff8](56f4ff8)), closes [#321](#321) * **orchestrator:** pass through binding Service annotations and labels ([#320](#320)) ([d543db8](d543db8)) ### ♻️ Improvements * **orchestrator:** export the status contract from api/v1alpha1 ([#330](#330)) ([4b5d854](4b5d854)) ### 🐛 Bug Fixes * **examples:** serve the example MCP servers over stateless MCP 2026-07-28 ([#325](#325)) ([6d34978](6d34978)), closes [#323](#323) * **samples:** make the Gateway and MCP samples pass CRD validation ([#329](#329)) ([e2e5d2a](e2e5d2a)) ### 👷 CI * **deps:** bump the gomod group with 4 updates ([#319](#319)) ([67f1bde](67f1bde))
Contributor
|
🎉 This PR is included in version 0.33.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
The gateway health-checks its MCP servers: it polls each one with
tools/listand reconnects one that stops answering. That polling is configured gateway-wide byMCP_POLLING_ENABLED,MCP_POLLING_INTERVALandMCP_POLLING_TIMEOUT, and the operator set none of them. Instead it accepted a per-serverspec.mcp.servers[].healthCheck(enabled,path,interval) that no controller read, and that the gateway could not honor, since it has no per-server check and polls over MCP rather than an HTTP path.This moves the health check to where the gateway applies it:
spec.mcp.healthCheck(enabled,interval,timeout) rendersMCP_POLLING_ENABLED,MCP_POLLING_INTERVALandMCP_POLLING_TIMEOUTon the gateway pod.enableddefaults totrue, and an unsetintervalortimeoutkeeps the gateway's default (30s and 5s).healthCheckout sets none of the variables, so the gateway keeps polling with its defaults as before.spec.mcp.servers[]is nownameandurl, which is everything the controller renders intoMCP_SERVERS.examples/gateway-complete/gateway.yamland step 5 ofexamples/mcp-server/README.mdsethealthCheckat thespec.mcplevel.manifests/crds.yamlandmanifests/install.yamlare regenerated.Closes #326
Behavior change
A Gateway that still sets
spec.mcp.servers[].healthCheckis refused as an unknown field. Move the block up tospec.mcp.healthCheck, droppingpath.Verification
task testpasses, with tests for the renderedMCP_POLLING_*variables and for leaving them out whenhealthCheckis unset.healthCheck: {interval: 10s, timeout: 2s}was defaulted toenabled: true, and its pod gotMCP_POLLING_ENABLED=true,MCP_POLLING_INTERVAL=10sandMCP_POLLING_TIMEOUT=2s. The gateway loggedstarted mcp server status pollingwith"interval":10.examples/passes a server dry run, and a Gateway with the per-server field is refused withstrict decoding error: unknown field "spec.mcp.servers[0].healthCheck".Cross-repo impact
operator.mddocuments the per-serverhealthCheck. [DOCS] Operator Gateway MCP health checks move to spec.mcp.healthCheck docs#1149 tracks moving it tospec.mcp.healthCheck.