lunar-mcpx
by Lunar
Helm chart for Lunar MCPX
About this chart
Lunar MCPX Helm Chart
Installation
This Helm chart will install Lunar MCPX on your Kubernetes cluster.
helm install my-mcpx lunar/lunar-mcpx --version 0.1.7
Versioning
This Helm chart follows SemVer principles. Its version correlates directly with MCPX's container image versions.
Configuration & Working With Values
Lunar's MCPX Helm Chart accepts configuration input via Helm's values. Inspect values.yaml and values.schema.json for full description of what is available.
Supplying filesystem-driven configuration is done via the config value. it maps the nested mcpJson and appYaml keys into the respective configuration files, and the chart ensures that they will be available to MCPX on runtime. See more info about these files in the official docs (1, 2, 3).
As with any other Helm chart, you may create a separate values file to easily override chart's defaults. Consider a file named override-values.yaml looking like this:
config:
appYaml: |
auth:
enabled: false
permissions:
base: "block"
We can then install the chart with
helm install my-mcpx lunar/lunar-mcpx --version 0.1.7 -f ./charts/lunar-mcpx/override-values.yaml
Supplying Secrets
You may pass the optional value secretRef in order to refer to an existing K8s secret:
secretRef:
name: my-mcpx-secret
keys:
- API_KEY # Used when `auth.enabled` is set to true
- SOME_3RD_PARTY_API_KEY # Any secret required by a target MCP server as env var
MCPX will inject these environment variables from the referenced secret automatically and they will be available in its runtime.
Healthcheck
Lunar MCPX responds to GET /healthcheck endpoint. This chart configures a Kubernetes livenessProbe and readinessProbe to use this endpoint, ensuring that the MCPX pod is healthy and ready to serve requests. Note that the healthcheck endpoint is not protected by authentication, so it can be accessed without any credentials. Also, it is not logged as part of the MCPX access logs to avoid spamming the logs.
Usage in ArgoCD
Consider the following example as a recipe for using this Helm chart via ArgoCD:
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: lunar-mcpx
namespace: cd
spec:
destination:
namespace: lunar-mcpx
server: https://kubernetes.default.svc
project: default
source:
repoURL: https://thelunarcompany.github.io/proxy-helm-chart/
targetRevision: '0.1.7'
chart: lunar-mcpx
helm:
values: |
config:
appYaml: |
auth:
enabled: false
permissions:
base: "block"
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
Here, the spec.source.helm.values field effectively serves as a value overriding mechanism - similar to the ones we've used above.
Deploy lunar-mcpx with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lunar-mcpx 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlunar-mcpx is pinned at v0.1.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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