Skip to main content

Manage the OpenLM MCP Connector on a self-hosted OpenLM Platform

To keep the OpenLM MCP Connector running in your cluster, make every change with helm upgrade and your values files, or in your settings ConfigMaps. Don't edit the Deployments by hand, because the next upgrade undoes the change.

The commands on this page use the namespace openlm and the files from Add the OpenLM MCP Connector.

Upgrade to a new version​

To upgrade, install the new chart versions over the current ones. Each chart's version is also the version of the image it installs.

  1. Update the repository and list the latest versions:

    helm repo update
    helm search repo openlm/reportingmcp
  2. Upgrade the GraphQL API first, then the MCP server, with the new versions:

    helm upgrade --install reportingmcpapi openlm/reportingmcpapi --version <api-version> -n openlm -f reportingmcpapi-values.yaml
    helm upgrade --install reportingmcpserver openlm/reportingmcpserver --version <server-version> -n openlm -f reportingmcpserver-values.yaml
  3. Wait until both pods show Running and 1/1:

    kubectl -n openlm get pods | grep reportingmcp

Change a setting​

To change a setting, edit the ConfigMap and restart both services. A ConfigMap change doesn't restart the pods by itself.

  1. Edit reportingmcp-onprem.yaml, then apply it:

    kubectl apply -n openlm -f reportingmcp-onprem.yaml
  2. Restart both Deployments:

    kubectl -n openlm rollout restart deploy/openlm-reportingmcpserver deploy/openlm-reportingmcpapi

For which settings you can change, see Settings in the ConfigMaps.

Roll back an upgrade​

To return to an earlier version, find its revision in the Helm history, then roll back to it:

helm history reportingmcpserver -n openlm
helm rollback reportingmcpserver <revision> -n openlm

Roll back reportingmcpapi the same way.

Read the logs​

When a user reports that the connector doesn't answer, read the logs of both services first. Both write JSON lines.

kubectl -n openlm logs deploy/openlm-reportingmcpserver
kubectl -n openlm logs deploy/openlm-reportingmcpapi

Each question shows in the MCP server log as POST /mcp, and in the GraphQL API log as POST /graphql at the INFO level.

To see more or less in the logs, set LOG_LEVEL in both settings ConfigMaps, then restart the services as in Change a setting. The following values are available:

  • INFO: the default.
  • DEBUG: more detail. Use it only for a short investigation.
  • ERROR: errors only. It hides successful requests.

Keep users signed in across restarts​

The MCP server keeps sign-in sessions in your installation's Redis, under the key prefix reporting-mcp, so users stay signed in when the MCP server restarts. Without Redis, the sessions stay in the pod's memory, and users sign in again after every restart.

The MCP server finds Redis through REDIS__CONNECTIONSTRING. The ConfigMap openlm-config-generic sets it to openlm-redis:6379, and the Redis secret of your installation overrides it when it has the same key.

To check that Redis works, restart the MCP server, then ask a question from a client that is already signed in. The client answers without a new sign-in.

Turn off the connector quickly​

To stop all data access through the connector at once, scale the MCP server to zero:

kubectl -n openlm scale deploy/openlm-reportingmcpserver --replicas=0

Clients then get errors. To turn the connector back on, run the same command with --replicas=1.

Uninstall the connector​

To remove the connector, uninstall both charts and delete the settings ConfigMaps:

helm uninstall reportingmcpserver reportingmcpapi -n openlm
kubectl -n openlm delete configmap openlm-reportingmcpserver-env openlm-reportingmcpapi-env

The reporting database and OpenLM Identity stay as they are.

Settings reference​

The connector takes its configuration from two places: the Helm values of each chart, and the two settings ConfigMaps from Create the settings ConfigMaps.

Chart values​

The following table lists the chart values that an installation usually sets. Keep the chart defaults for every other value.

ChartValueDefaultSet it to
Bothconfigmap.nameNoneopenlm-reportingmcpserver-env or openlm-reportingmcpapi-env. Required.
Bothdeployment.imageThe image on public.ecr.aws for the chart's versionThe image in your registry, when the cluster has no internet access
BothimagePullSecrets.nameEmptyA pull secret for your registry, if it needs one
Bothaffinity, taintsEmptyThe node role that your platform uses, if your installation assigns services to nodes
BothresourcesMCP server: 350Mi request, 450Mi limit. GraphQL API: 400Mi request, 800Mi limit.Higher values for heavy use
reportingmcpserveringress.hostnameA host name that isn't yoursYour installation's host name. Required.
reportingmcpserveringress.ingressClassNamenginxYour installation's ingress class
reportingmcpserveringress.secretNameopenlm-lb-certYour installation's TLS secret
reportingmcpapisecretsThe MongoDB and Redis secrets, and openlm-generic-reporting-mssql-credentialsThe same list with openlm-generic-reporting-pgdb-credentials, for PostgreSQL

Settings in the ConfigMaps​

For your installation, change only the following settings:

  • DB_TYPE: mssql or postgresql, the same value in both ConfigMaps.
  • DB_NAME: the name of your reporting database.
  • The host name in IDENTITY_AUTHORITY, in both ConfigMaps, and in MCP_SERVER_URL.
  • IDENTITY_VERIFY_SSL: false only for a short test with a self-signed certificate, never in production.
  • LOG_LEVEL: see Read the logs.

Keep these settings exactly as shown in Create the settings ConfigMaps:

  • DEPLOYMENT_MODE: onprem.
  • IDENTITY_CLIENT_ID: openlm.mcp.server.bff.
  • IDENTITY_CALLBACK_PATH: /api/mcp-server/signin-oidc.
  • Both IDENTITY_AUDIENCE values, IDENTITY_SCOPES, and IDENTITY_REQUIRED_SCOPE.
  • MCP_EXPOSE_ADMIN_TOOLS: false.

The MCP server refuses to start when MCP_EXPOSE_ADMIN_TOOLS is true, and its log names the setting in a [STARTUP-CHECK] line.

The documentation team might draft this page using a large language model. A technical writer reviews every page and verifies it against the product before publishing it. A human makes the final decision.