mcpx-hive

by Lunar

Helm chartv0.5.1App v0.5.1

A comprehensive Helm chart for the MCPx Hive system including hive-controller and ingress

About this chart

mcpx-hive

Helm chart for deploying the MCPx Hive services (controller, UI, router) into a Kubernetes cluster.

  • UI: The MCPx management interface
  • Router: The MCPx agent access
  • Controller: The MCPx-Hive management that allows to allocate MCPx deployments

Prerequisites

  • Helm 3 installed locally and available in your PATH.
  • kubectl configured for the target provider/cluster (kubectl config current-context should point to the desired cluster).
  • Permissions to create namespaces, secrets, ingresses, and any cloud-specific load balancer resources in the target cluster.
  • Network access from the cluster to backing services such as Redis and the MCPx Hub.

Preparation

All chart configuration lives in values.yaml (view the latest copy in the repository). Before installing:

  1. Copy charts/lunar-hive/values.yaml to an environment-specific file (for example, values-override.yaml).
  2. Populate all required settings (domains, hub URL, controller token, OIDC configuration, Redis connection, etc.) with environment-specific values.
  3. Store any sensitive values (controller token, OIDC secrets, etc.) securely and reference Kubernetes secrets when appropriate.

Required configuration fields

  • Domains: controller_domain, ui_domain, and router_domain must be set to routable hostnames (for example, mcpx-controller-<env>.<domain>), aligning with the ingress entries you plan to expose.
  • Hub service: global.hubUrl must point to the Hub WebSocket URL exposed by the MCPx Hub service installed via the lunar-mcpx-webapp chart. Use the service endpoint returned during that installation in the form ws://<hubServiceEndpoint>.
  • Controller shared secret: global.controllerToken should be a long, random secret; it is required to authenticate to the controller admin portal (https://mcpx-controller-<env>.<domain>/admin) when allocating MCPx instances.
  • Image pull secrets: Configure global.imagePullSecrets with Kubernetes secrets that hold Lunar's private registry credentials so the pods can pull their images.
  • OIDC: Populate global.oidc.* fields with the issuer URL, client credentials, and session secret provided by your identity provider.
  • Redis: If you are using an external Redis cluster set global.redis.deploy: false, global.redis.isCluster: true, and provide global.redis.url in the form redis://<redisEndpoint>:<redisPort>. Alternatively, enable the bundled Redis by setting deploy: true and adjust the other fields as needed.
  • Ingress: Confirm ingress.enabled and update ingress.annotations and provider-specific settings (AWS/GCP/Azure blocks) so certificates, load balancers, and IP addresses are managed correctly.

Installation

Run Helm:

helm upgrade --install mcpx-hive charts/lunar-hive \
  --namespace mcpx-hive \
  --create-namespace \
  -f values-override.yaml

Configuration reference

KeyTypeDefaultDescription
domainstring""Optional base domain propagated to the router service.
controller_domainstring(required)Public domain for the hive controller.
ui_domainstring(required)Public domain for the MCPx UI.
router_domainstring(required)Public domain for the router/gateway.
global.hubUrlstring(required)WebSocket URL for the hub service.
global.controllerTokenstring(required)Shared secret required for controller admin portal access.
global.logLevelstring"warn"Default log level applied to controller and router pods.
global.imagePullSecretslist[]Image pull secrets that grant access to Lunar's private registries.
global.oidc.issuerUrlstring(required)OIDC issuer URL.
global.oidc.clientIdstring(required)OIDC client ID.
global.oidc.clientSecretstring(required)OIDC client secret.
global.oidc.sessionSecretstring(required)Secret used to sign OIDC sessions.
global.redis.deployboolfalseDeploy the bundled Redis instance.
global.redis.isClusterbooltrueIndicates whether the Redis target is a cluster.
global.redis.prefixstring"mcpx-hive"Prefix for keys created in Redis.
global.redis.urlstring""External Redis URL when deploy is false (e.g., redis://redis-endpoint:redis-port).
ingress.enabledbooltrueEnable ingress resources.
ingress.annotationsobject{}Extra annotations added to ingress resources.
ingress.domains.controller[].hoststring(derived from controller_domain)Hostname routed to the controller service.
ingress.domains.router[].hoststring(derived from router_domain)Hostname routed to the router service.
ingress.domains.ui[].hoststring(derived from ui_domain)Hostname routed to the UI service.

Deploy mcpx-hive with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mcpx-hive on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmcpx-hive is pinned at v0.5.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply