toolhive
toolhive copied to clipboard
Add optional installation flag for Virtual MCP CRDs in operator-crds Helm chart
Summary
The toolhive-operator-crds Helm chart currently installs all CRDs including Virtual MCP CRDs by default. Users who only need core MCP server management (without Virtual MCP aggregation features) should be able to skip installing these CRDs.
Background
Virtual MCP CRDs (54KB total):
VirtualMCPServer- Aggregates multiple backend MCP servers into unified endpointVirtualMCPCompositeToolDefinition- Defines reusable composite workflows
Core CRDs (96KB total):
MCPServer,MCPRegistry,MCPGroup,MCPRemoteProxy,MCPExternalAuthConfig,MCPToolConfig
Currently all 8 CRDs are always installed from deploy/charts/operator-crds/crds/ with no configuration options.
Proposed Solution
Add a Helm value to make Virtual MCP CRDs optional:
# values.yaml
crds:
install:
virtualMCP: true # default false
Related Files
deploy/charts/operator-crds/crds/toolhive.stacklok.dev_virtualmcpservers.yamldeploy/charts/operator-crds/crds/toolhive.stacklok.dev_virtualmcpcompositetooldefinitions.yamldeploy/charts/operator-crds/values.yaml(currently empty)cmd/thv-operator/main.go(controller registration at lines 184-199)
See also: https://github.com/stacklok/toolhive/issues/2564