mcp-gitlab

by whitediver

Helm chartv0.3.4App 2.0.7Verified publisher

A Helm chart for deploying GitLab MCP server

About this chart

GitLab MCP Helm Chart

This Helm chart deploys the GitLab MCP (Model Context Protocol) server based on the iwakitakuma/gitlab-mcp Docker image to a Kubernetes cluster.

Prerequisites

  • Kubernetes 1.16+
  • Helm 3.2.0+

Installing the Chart

To install the chart with the release name gitlab-mcp:

helm install gitlab-mcp ./charts/gitlab

The command deploys the GitLab MCP server on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the gitlab-mcp deployment:

helm delete gitlab-mcp

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
replicaCountNumber of GitLab MCP replicas to deploy1
nameOverrideString to partially override gitlab-mcp.fullname""
fullnameOverrideString to fully override gitlab-mcp.fullname""

Image parameters

NameDescriptionValue
image.repositoryGitLab MCP image repositoryiwakitakuma/gitlab-mcp
image.tagGitLab MCP image tag (immutable tags are recommended)2.0.7
image.pullPolicyGitLab MCP image pull policyIfNotPresent
imagePullSecretsGitLab MCP image pull secrets[]

Service Account parameters

NameDescriptionValue
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe name of the service account to use""

Service parameters

NameDescriptionValue
service.typeGitLab MCP service typeClusterIP
service.portGitLab MCP service HTTP port3002

Health probe parameters

NameDescriptionValue
livenessProbe.enabledEnable liveness probetrue
livenessProbe.portPort used by the liveness probenil
livenessProbe.initialDelaySecondsDelay before the liveness probe starts60
livenessProbe.periodSecondsFrequency of the liveness probe30
livenessProbe.timeoutSecondsTimeout for the liveness probe10
livenessProbe.failureThresholdNumber of consecutive failures before marking the pod as unhealthy3
readinessProbe.enabledEnable readiness probetrue
readinessProbe.portPort used by the readiness probenil
readinessProbe.initialDelaySecondsDelay before the readiness probe starts15
readinessProbe.periodSecondsFrequency of the readiness probe10
readinessProbe.timeoutSecondsTimeout for the readiness probe10
readinessProbe.failureThresholdNumber of consecutive failures before marking the pod as unready3

Both probes use the /health endpoint by default and inherit service.port.

Ingress parameters

NameDescriptionValue
ingress.enabledEnable ingress record generation for GitLab MCPfalse
ingress.classNameIngressClass that will be be used to implement the Ingress""
ingress.annotationsAdditional annotations for the Ingress resource{}
ingress.pathBase path for the service/
ingress.pathTypePath matching behaviorPrefix
ingress.hostsList of hostnames["gitlab-mcp.local"]
ingress.tlsTLS configuration for ingress[]

When ingress.path is not /, the annotation nginx.ingress.kubernetes.io/use-regex: "true" is automatically added.

Environment variables

NameDescriptionValue
envEnvironment variables to be set on the container{}
envSecretsEnvironment variables from external secrets{}
secretEnvEnvironment variables to be set from created secret{}

Autoscaling parameters

NameDescriptionValue
autoscaling.enabledEnable Horizontal Pod Autoscaler (HPA)false
autoscaling.minReplicasMinimum number of GitLab MCP replicas1
autoscaling.maxReplicasMaximum number of GitLab MCP replicas100
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization percentage80
autoscaling.targetMemoryUtilizationPercentageTarget Memory utilization percentage""

Configuration and installation details

Setting up GitLab access

The GitLab MCP server requires access to GitLab. You can configure this using environment variables:

  1. Using plain environment variables (not recommended for production):

    env:
      GITLAB_URL: "https://gitlab.com"
      GITLAB_TOKEN: "your-gitlab-token"
    
  2. Using secrets (recommended for production):

    secretEnv:
      data:
        GITLAB_TOKEN: "your-gitlab-token"
    env:
      GITLAB_URL: "https://gitlab.com"
    

Exposing the application

To access the GitLab MCP server from outside the cluster, you can:

  1. Use port forwarding (for development):

    kubectl port-forward svc/gitlab-mcp 8080:8080
    
  2. Enable ingress (for production):

    ingress:
      enabled: true
      className: "nginx"
      path: /
      hosts:
        - gitlab-mcp.your-domain.com
    
  3. Use LoadBalancer service type:

    service:
      type: LoadBalancer
    

Troubleshooting

Check pod status

kubectl get pods -l app.kubernetes.io/name=mcp-gitlab-helm

Check logs

kubectl logs -l app.kubernetes.io/name=mcp-gitlab-helm

Test connection

helm test gitlab-mcp

Deploy mcp-gitlab with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mcp-gitlab 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 chartmcp-gitlab is pinned at v0.3.4 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