Skip to content

Commit 876a457

Browse files
committed
Enable MCP configuration on self-hosted deployments
1 parent d618c4d commit 876a457

3 files changed

Lines changed: 3 additions & 65 deletions

File tree

charts/retool/templates/deployment_mcp.yaml

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ spec:
8989
args:
9090
- bash
9191
- -c
92-
- chmod -R +x ./docker_scripts; sync; ./docker_scripts/wait-for-it.sh -t 0 {{ template "retool.postgresql.host" . }}:{{ template "retool.postgresql.port" . }}; ./docker_scripts/start_api.sh
92+
- chmod -R +x ./docker_scripts; sync; ./docker_scripts/start_api.sh
9393
{{- if .Values.commandline.args }}
9494
{{ toYaml .Values.commandline.args | indent 10 }}
9595
{{- end }}
@@ -134,70 +134,6 @@ spec:
134134
- name: MCP_SESSION_GAUGE_EMIT_INTERVAL_MS
135135
value: {{ $mcpConfig.sessionGaugeEmitIntervalMs | quote }}
136136
{{- end }}
137-
- name: COOKIE_INSECURE
138-
value: {{ .Values.config.useInsecureCookies | quote }}
139-
- name: POSTGRES_HOST
140-
value: {{ template "retool.postgresql.host" . }}
141-
- name: POSTGRES_PORT
142-
value: {{ template "retool.postgresql.port" . }}
143-
- name: POSTGRES_DB
144-
value: {{ template "retool.postgresql.database" . }}
145-
- name: POSTGRES_USER
146-
value: {{ template "retool.postgresql.user" . }}
147-
- name: POSTGRES_SSL_ENABLED
148-
value: {{ template "retool.postgresql.ssl_enabled" . }}
149-
- name: POSTGRES_PASSWORD
150-
valueFrom:
151-
secretKeyRef:
152-
{{- if .Values.postgresql.enabled }}
153-
name: {{ template "retool.postgresql.fullname" . }}
154-
key: postgres-password
155-
{{- else }}
156-
{{- if .Values.config.postgresql.passwordSecretName }}
157-
name: {{ .Values.config.postgresql.passwordSecretName }}
158-
key: {{ .Values.config.postgresql.passwordSecretKey | default "postgresql-password" }}
159-
{{- else }}
160-
name: {{ template "retool.fullname" . }}
161-
key: postgresql-password
162-
{{- end }}
163-
{{- end }}
164-
- name: LICENSE_KEY
165-
valueFrom:
166-
secretKeyRef:
167-
{{- if .Values.config.licenseKeySecretName }}
168-
name: {{ .Values.config.licenseKeySecretName }}
169-
key: {{ .Values.config.licenseKeySecretKey | default "license-key" }}
170-
{{- else }}
171-
name: {{ template "retool.fullname" . }}
172-
key: license-key
173-
{{- end }}
174-
- name: ENCRYPTION_KEY
175-
valueFrom:
176-
secretKeyRef:
177-
{{- if .Values.config.encryptionKeySecretName }}
178-
name: {{ .Values.config.encryptionKeySecretName }}
179-
key: {{ .Values.config.encryptionKeySecretKey | default "encryption-key" }}
180-
{{- else }}
181-
name: {{ template "retool.fullname" . }}
182-
key: encryption-key
183-
{{- end }}
184-
- name: JWT_SECRET
185-
valueFrom:
186-
secretKeyRef:
187-
{{- if .Values.config.jwtSecretSecretName }}
188-
name: {{ .Values.config.jwtSecretSecretName }}
189-
key: {{ .Values.config.jwtSecretSecretKey | default "jwt-secret" }}
190-
{{- else }}
191-
name: {{ template "retool.fullname" . }}
192-
key: jwt-secret
193-
{{- end }}
194-
{{- range .Values.environmentSecrets }}
195-
- name: {{ .name }}
196-
valueFrom:
197-
secretKeyRef:
198-
name: {{ .secretKeyRef.name }}
199-
key: {{ .secretKeyRef.key }}
200-
{{- end }}
201137
{{- with .Values.mcp.environmentVariables }}
202138
{{ toYaml . | indent 10 }}
203139
{{- end }}

charts/retool/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ mcp:
576576
labels: {}
577577

578578
# MCP-specific environment variables. Can include valueFrom entries.
579+
# Use this for MCP-only secrets such as OAUTH_INTROSPECTION_AUTH_TOKEN.
579580
environmentVariables: []
580581

581582
# MCP server configuration.

values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ mcp:
576576
labels: {}
577577

578578
# MCP-specific environment variables. Can include valueFrom entries.
579+
# Use this for MCP-only secrets such as OAUTH_INTROSPECTION_AUTH_TOKEN.
579580
environmentVariables: []
580581

581582
# MCP server configuration.

0 commit comments

Comments
 (0)