diff --git a/charts/gateway/Chart.yaml b/charts/gateway/Chart.yaml index 75dfd10..d92eed5 100644 --- a/charts/gateway/Chart.yaml +++ b/charts/gateway/Chart.yaml @@ -16,7 +16,7 @@ type: application # Versions are expected to follow Semantic Versioning (https://semver.org/) # major.minor mirrors the API7 EE release line (3.10.x), patch is this chart's # own counter on that line and is decoupled from the app patch (see appVersion). -version: 3.10.16 +version: 3.10.17 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/gateway/README.md b/charts/gateway/README.md index a2d26bf..45ce459 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -336,9 +336,10 @@ apisix: | nginx.workerRlimitNofile | string | `"20480"` | The number of files a worker process can open, should be larger than nginx.workerConnections | | nginx.workerShutdownTimeout | string | `"240s"` | Timeout for a graceful shutdown of worker processes | | openapiToMcp.enabled | bool | `false` | Enable or disable the OpenAPI-to-MCP sidecar. Required when using the `openapi-to-mcp` or `mcp-tools-acl` plugins. The container runs alongside the gateway in the same pod and is reached on 127.0.0.1. | +| openapiToMcp.extraEnvVars | list | `[]` | extraEnvVars An array of extra env vars for the OpenAPI-to-MCP sidecar container. The service is configured through environment variables, for example `TIMEOUT` (inactivity timeout in milliseconds for the requests the generated tools send to the backend API, default 30000), `CACHE_ENABLED` or `CACHE_TTL`. Do not set `SSE_PORT` here; it is managed by `openapiToMcp.port`. e.g: extraEnvVars: - name: TIMEOUT value: "60000" | | openapiToMcp.image.pullPolicy | string | `"IfNotPresent"` | OpenAPI-to-MCP image pull policy | | openapiToMcp.image.repository | string | `"api7/openapi-to-mcp"` | OpenAPI-to-MCP image repository | -| openapiToMcp.image.tag | string | `"1.0.6"` | OpenAPI-to-MCP image tag | +| openapiToMcp.image.tag | string | `"1.0.9"` | OpenAPI-to-MCP image tag | | openapiToMcp.port | int | `3000` | Port that the sidecar listens on. Must match the `port` configured under `plugin_attr.openapi-to-mcp` in the gateway config (defaults to 3000). | | openapiToMcp.resources | object | `{}` | Resources for the OpenAPI-to-MCP sidecar container. | | pluginAttrs | object | `{}` | Set APISIX plugin attributes, see [config-default.yaml](https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L376) for more details | diff --git a/charts/gateway/templates/_pod.tpl b/charts/gateway/templates/_pod.tpl index 8aa4d40..a2fdeb0 100644 --- a/charts/gateway/templates/_pod.tpl +++ b/charts/gateway/templates/_pod.tpl @@ -247,6 +247,9 @@ spec: env: - name: SSE_PORT value: {{ .Values.openapiToMcp.port | quote }} + {{- if .Values.openapiToMcp.extraEnvVars }} + {{- include "apisix.tplvalues.render" (dict "value" .Values.openapiToMcp.extraEnvVars "context" $) | nindent 6 }} + {{- end }} ports: - containerPort: {{ .Values.openapiToMcp.port }} name: http diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 59bc6e3..cb70e4a 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -892,7 +892,7 @@ openapiToMcp: # -- OpenAPI-to-MCP image repository repository: api7/openapi-to-mcp # -- OpenAPI-to-MCP image tag - tag: 1.0.6 + tag: 1.0.9 # -- OpenAPI-to-MCP image pull policy pullPolicy: IfNotPresent # -- Port that the sidecar listens on. Must match the `port` configured under @@ -900,6 +900,17 @@ openapiToMcp: port: 3000 # -- Resources for the OpenAPI-to-MCP sidecar container. resources: {} + # -- extraEnvVars An array of extra env vars for the OpenAPI-to-MCP sidecar + # container. The service is configured through environment variables, for + # example `TIMEOUT` (inactivity timeout in milliseconds for the requests the + # generated tools send to the backend API, default 30000), `CACHE_ENABLED` + # or `CACHE_TTL`. Do not set `SSE_PORT` here; it is managed by + # `openapiToMcp.port`. + # e.g: + # extraEnvVars: + # - name: TIMEOUT + # value: "60000" + extraEnvVars: [] control: # -- Enable Control API