Repository navigation
Description
Summary
A systematic comparison of the Kubernetes Operator guides (docs/toolhive/guides-k8s/) against the auto-generated CRD reference (docs/toolhive/reference/crd-spec.md) and the ToolHive operator source code reveals a number of documentation gaps and inaccuracies. This analysis is scoped to the MCPServer CRD and the operator itself - VirtualMCPServer and ToolHiveRegistryServer CRDs are excluded since they have their own guide sections.
Update 2026-04-18: Re-evaluated against current docs. Items addressed are struck through and annotated. Note that v0.21.0 removed inline
spec.oidcConfigandspec.telemetryon MCPServer/MCPRemoteProxy in favor of MCPOIDCConfig / MCPTelemetryConfig resources, so several OIDC/telemetry gaps now apply to those referenced resources rather than the MCPServer spec.
Related issues and PRs
- Docs update needed: Document caBundleRef for custom CA certificates in OIDC config #466 - Document
caBundleReffor custom CA certificates in OIDC config (still open;caBundleRefnow documented inmcp-server-entry.mdx,remote-mcp-proxy.mdx,telemetry-and-metrics.mdx, and the migration guide, but not yet inauth-k8s.mdxin the context of MCPOIDCConfig) - [Bug]: Logging guide: wrong namespace, missing container guidance, outdated shipper examples #625 - Logging guide: wrong namespace, missing container guidance, outdated shipper examples (still open)
Update docs for ToolHive v0.12.3–v0.13.0 #641 - Open PR adding horizontal scaling, session storage for scaling, cross-references to redis guideMerged- [Gap]: CLI guides gap analysis #654 - Companion CLI guides gap analysis (still open)
Inaccuracies in existing docs
| # | Issue | Location | Details | Status |
|---|---|---|---|---|
| 1 | permissionProfile in YAML examples |
guides-mcp/notion-remote.mdx. |
Fixed in #945 | |
| 2 | port field in examples |
port instead of proxyPort. |
Fixed - all 5 examples now use proxyPort |
High-priority gaps
| # | Gap | Details | Status |
|---|---|---|---|
| 1 | MCPGroup / groupRef for MCPServer | groupRef on MCPServer is not documented. Only shown for MCPRemoteProxy (remote-mcp-proxy.mdx) and in a generic logging example. No guide for creating an MCPGroup and associating MCPServer resources for vMCP aggregation. |
Partially addressed - mcp-server-entry.mdx added with extensive groupRef coverage for MCPServerEntry; groupRef now also shown in logging.mdx and redis-session-storage.mdx. Still missing: dedicated MCPGroup creation guide and groupRef on MCPServer itself |
| 2 | Pod restart mechanism | Operator supports mcpserver.toolhive.stacklok.dev/restarted-at annotation with rolling (default) and immediate strategies. Completely undocumented. |
Open |
| 3 | ResourceOverrides | Override annotations, labels, env vars, and image pull secrets on the proxy Deployment and Service. Not documented. | Open (one incidental use in integrations/vault.mdx) |
| 4 | ServiceAccount customization | serviceAccount field to use an existing SA instead of auto-created. run-mcp-k8s.mdx documents auto-created RBAC but not this option. |
Open |
| 5 | OpenShift support | Operator auto-detects OpenShift and applies appropriate security contexts. Not documented. | Open |
| 6 | Inline authorization for MCPServer | auth-k8s.mdx only shows ConfigMap-based Cedar policies for MCPServer. CRD also supports type: inline with policies directly in the spec (shown for MCPRemoteProxy in remote-mcp-proxy.mdx but not for MCPServer). |
Open |
| 7 | Helm feature flags | features.server, features.registry, features.virtualMCP, features.experimental control which controllers are enabled. deploy-operator.mdx covers CRD group selection but not these operator-level flags. |
Open |
Medium-priority gaps
CRD fields missing from guides
Note: items 5-7 below originally referenced spec.oidcConfig.*. As of v0.21.0, inline oidcConfig is removed on MCPServer/MCPRemoteProxy - these fields now live on the MCPOIDCConfig resource and should be documented there.
| # | Field | Description | Status |
|---|---|---|---|
| 1 | proxyMode |
Proxy mode for stdio transport (sse vs streamable-http) |
Open |
| 2 | endpointPrefix |
Path prefix for SSE endpoint URLs - relevant for path-based ingress but absent from connect-clients.mdx | Open |
| 3 | trustProxyHeaders |
Trust X-Forwarded-* headers - relevant when behind ingress | Open |
| 4 | sessionAffinity |
Service session affinity (ClientIP vs None) - only in vMCP scaling guide, not MCPServer guides |
Open |
| 5 | oidcConfig.resourceUrlMCPOIDCConfig.inline.resourceUrl |
RFC 9728 OAuth resource URL for discovery | Addressed - documented in auth-k8s.mdx, connect-clients.mdx, token-exchange-k8s.mdx |
| 6 | MCPOIDCConfig.kubernetesServiceAccount.useClusterAuth |
Use cluster auth paths for JWKS validation | Open |
| 7 | Advanced MCPOIDCConfig.inline fields |
jwksAuthTokenPath, jwksAllowPrivateIP, insecureAllowHTTP, scopes, etc. (partial overlap with #466) |
Partially addressed - jwksAllowPrivateIP and insecureAllowHTTP referenced in migration guide and remote-mcp-proxy; others still undocumented |
| 8 | MCPTelemetryConfig.openTelemetry.headers |
Auth headers for OTEL endpoint | Open |
| 9 | MCPTelemetryConfig.openTelemetry.useLegacyAttributes |
Legacy OTEL attribute names | Open |
Operator features missing from guides
| # | Feature | Description | Status |
|---|---|---|---|
| 1 | Image validation | Operator validates images against enforced registries; sets ImageValidated condition |
Open |
| 2 | Status conditions reference | 7 condition types (ImageValidated, GroupRefValidated, PodTemplateValid, CABundleRefValidated, ExternalAuthConfigValidated, StdioReplicaCapped, SessionStorageWarning) - not documented as a troubleshooting/operational reference |
Open |
| 3 | HPA configuration | Helm chart HPA settings (disabled by default); only briefly mentioned in deploy-operator.mdx | Open |
| 4 | Operator resource tuning | Go memory tuning (gomemlimit, gogc) in Helm values |
Open |
Lower-priority gaps
| # | Gap | Status |
|---|---|---|
| 1 | resourceOverrides sub-fields (proxy env vars, image pull secrets) |
Open |
| 2 | RunConfig ConfigMap internals and checksum-based rollout | Open |
| 3 | Finalizer behavior during cleanup | Open |
| 4 | Operator leader election config | Open |
Deprecated fields in guides
| Deprecated | Replacement | Action needed | Status |
|---|---|---|---|
port |
proxyPort |
Fixed | |
targetPort |
mcpPort |
Fixed - MCPServer examples use mcpPort; remaining targetPort references are K8s Service specs (not MCPServer) |
|
thvCABundlePath |
caBundleRef |
Tracked in #466 | Fixed in #946 |
Methodology
This analysis compared three sources:
- K8s guides in
docs/toolhive/guides-k8s/(16 files as of 2026-04-18; was 13 at issue creation) - Auto-generated CRD reference in
docs/toolhive/reference/crd-spec.md(MCPServer section) - ToolHive operator source code (CRD type definitions, controller logic, Helm values)
Out of scope: VirtualMCPServer and ToolHiveRegistryServer CRDs (covered by their own guide sections).
Activity
danbarr commentedon Jun 16, 2026
Triage update (2026-06-16): re-validated the open gaps and opened PRs for the actionable ones.
Re-checked every open item against the current docs and CRD schemas. PRs (all against
main):spec.serviceAccount),resourceOverrides, therestarted-atrestart annotation,groupRefon MCPServer, and a status conditions reference table. Covers high-priority gaps 2, 3, 4, part of 1, and medium gap 10.proxyMode,endpointPrefix, andtrustProxyHeadersfor running behind an ingress (medium gaps 1, 2, and 3).sessionAffinityfor scaled MCPServers (medium gap 4).Two items should be closed as won't-document, because the features don't exist:
ENABLE_SERVER/ENABLE_REGISTRY/ENABLE_AGGREGATIONandcrds.install.virtualMCPare not in the current chart or source.ImageValidated(operator features gap 1, and the condition in medium gap 10): removed upstream in Remove enforceServers and image validation from MCPRegistry toolhive#4720 and Remove enforceServers and image validation from MCPRegistry toolhive#4776 (merged 2026-04-13). The status conditions table in Document MCPServer operations and overrides #947 reflects this and lists the conditions the operator actually sets today (Readyplus the active*Validated/*Validconditions).Housekeeping: the methodology references
docs/toolhive/reference/crd-spec.md, which no longer exists. The CRD reference is now split into per-CRD files underdocs/toolhive/reference/crds/(generated fromstatic/api-specs/crds/*.schema.json).Remaining lower-priority items left open intentionally (esoteric, or better suited to reference or explanation than how-to guides):
MCPOIDCConfig.kubernetesServiceAccount.useClusterAuth,jwksAuthTokenPath,MCPTelemetryConfig.openTelemetry.useLegacyAttributes, RunConfig ConfigMap internals, finalizer behavior, and leader election config.danbarr commentedon Jun 22, 2026
All gaps have now been addressed. Closing.