Skip to content

[DOCS] Operator Gateway MCP health checks move to spec.mcp.healthCheck #1149

Closed

Description

@edenreich

Summary

The operator moves a Gateway's MCP health check from each server to spec.mcp.healthCheck, where it tunes the gateway's own health polling. Source: inference-gateway/operator#326, implemented in inference-gateway/operator#328. Document it once that is merged and released.

What changed for users:

  • The gateway polls every MCP server with tools/list and reconnects one that stops answering. spec.mcp.healthCheck tunes that polling for all servers at once.
  • healthCheck.enabled (default true) renders MCP_POLLING_ENABLED, healthCheck.interval renders MCP_POLLING_INTERVAL, and healthCheck.timeout renders MCP_POLLING_TIMEOUT.
  • An unset interval or timeout keeps the gateway's default (30s and 5s). Leaving healthCheck out keeps all of the gateway's defaults.
  • spec.mcp.servers[] is name and url only. The per-server healthCheck block (enabled, path, interval) never had an effect and is gone, so a Gateway that still sets it is refused as an unknown field. Readers move it up to spec.mcp.healthCheck and drop path.

Example to show:

spec:
  mcp:
    enabled: true
    healthCheck:
      interval: 30s
      timeout: 5s
    servers:
      - name: search
        url: http://mcp-search-server:8082/mcp

Affected pages

  • operator.md, the Gateway spec overview table: the mcp.servers[] / mcp.serviceDiscovery row lists static MCP servers as name, url, healthCheck. Drop healthCheck there and mention mcp.healthCheck for the gateway's health polling.
  • operator.md, the spec.mcp field table: replace the servers[].healthCheck.{enabled,path,interval} row with healthCheck.{enabled,interval,timeout}, naming the MCP_POLLING_* variable each one sets and the defaults.
  • operator.md, the spec.mcp example: move the healthCheck block from the search server up to spec.mcp and drop path.

The MCP_DISABLE_HEALTHCHECK_LOGS mentions in troubleshooting.md and configuration.md stay as they are. The configuration page can point the MCP_POLLING_* rows at spec.mcp.healthCheck for operator users.

Acceptance Criteria

  • operator.md documents spec.mcp.healthCheck with enabled, interval and timeout, the variables they set and their defaults.
  • operator.md shows a static MCP server as name and url only.
  • The spec.mcp example sets healthCheck at the spec.mcp level.

Activity

  1. added
    documentation
    on Nov 8, 2026
  2. added theissue type on Nov 8, 2026
  3. moved this to Todo in 2026on Nov 8, 2026
  4. changed the title [-][DOCS] Operator Gateway MCP servers no longer take healthCheck[/-] [+][DOCS] Operator Gateway MCP health checks move to spec.mcp.healthCheck[/+] on Nov 8, 2026
  5. edenreich commented on Nov 8, 2026

    @edenreich
    ContributorAuthor

    @claude can you work on this? use /ponytail:ponytail check the actual code before applying changes.

  6. inference-gateway-maintainer commented on Nov 8, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 2m 54s —— View job • docs/issue-1149-20261108-2229 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1149-20261108-2229?quick_pull=1&title=Issue%20%231149%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231149%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done

    • Gather context (issue + operator.md)
    • Verify against actual operator code
    • Update operator.md spec overview row
    • Update spec.mcp field table
    • Update spec.mcp example
    • Point MCP_POLLING_* at spec.mcp.healthCheck in configuration.md
    • Run lint:md, format:check, build - all pass
    • Commit + open PR

    What the code says

    Checked the operator at main before editing:

    • api/v1alpha1/gateway_types.go: MCPServersSpec.HealthCheck *MCPHealthCheck with Enabled (kubebuilder default true), Interval, Timeout. MCPServer is Name + URL only - no per-server health check field exists any more.
    • internal/controller/gateway_controller.go mcpHealthCheckEnvVars: a nil healthCheck emits nothing, otherwise MCP_POLLING_ENABLED always, plus MCP_POLLING_INTERVAL / MCP_POLLING_TIMEOUT only when non-empty - so unset values keep the gateway's 30s / 5s.
    • Shipped in operator v0.33.0 (released today), so I added a >= v0.33.0 note in the style the page already uses for llamacpp.

    Changes

    operator.md: overview row now lists static servers as name, url and points at mcp.healthCheck; the spec.mcp table row became healthCheck.{enabled,interval,timeout} with each MCP_POLLING_* variable and default; a short new "Health polling (mcp.healthCheck)" section covers the behavior and the migration (move the block up, drop path, a per-server block is now refused as an unknown field); the example sets healthCheck at spec.mcp level.

    configuration.md: one sentence after the MCP table pointing Kubernetes users at spec.mcp.healthCheck. MCP_DISABLE_HEALTHCHECK_LOGS left untouched in both pages, as the issue asked.

    Opened: #1150

    Skipped: no change to mcp.md or troubleshooting.md (neither documents the operator CRD's per-server health check), and I did not touch the MCP_POLLING_* row descriptions themselves since they are gateway env docs that stay correct. Risk: the "rejected as an unknown field" wording assumes the CRD keeps x-kubernetes-preserve-unknown-fields off and the cluster prunes/validates strictly - true for the generated CRD, but a client using --validate=false would just see the field silently ignored.
    | Branch

  7. moved this from Todo to In progress in 2026on Nov 8, 2026
  8. moved this from In progress to QA in 2026on Nov 8, 2026
  9. moved this from QA to Done in 2026on Nov 8, 2026
  10. inference-gateway-releaser commented on Nov 10, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.25 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions