Repository navigation
feat(gateway): extra env vars for the OpenAPI-to-MCP sidecar and bump it to 1.0.9 - #406
Merged
Merged
Conversation
… it to 1.0.9 The OpenAPI-to-MCP service is configured through environment variables (`TIMEOUT`, `CACHE_ENABLED`, `CACHE_TTL`, ...), but the chart only ever set `SSE_PORT` on the sidecar container and gave no way to add more, so Helm deployments could not change the backend request timeout at all. Add `openapiToMcp.extraEnvVars`, rendered after `SSE_PORT` the same way `apisix.extraEnvVars` is, and bump the sidecar image to 1.0.9, the first release in which `TIMEOUT` is actually honored (api7/OpenAPI2MCP#60). Chart version 3.10.16 -> 3.10.17.
nic-6443
approved these changes
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The OpenAPI-to-MCP service is configured through environment variables (
TIMEOUT,CACHE_ENABLED,CACHE_TTL, ...), but the gateway chart only setsSSE_PORTon the sidecar container and offers no way to add others, so Helm deployments cannot change the backend request timeout at all (the docs already note that the cache variables are not exposed for Helm). With api7/OpenAPI2MCP#60 theTIMEOUTvariable is now honored by the service, so the chart needs an entry for it.Changes
charts/gateway/values.yaml: newopenapiToMcp.extraEnvVars(default[], same shape asapisix.extraEnvVars);openapiToMcp.image.tag1.0.6 → 1.0.9.charts/gateway/templates/_pod.tpl: renderopenapiToMcp.extraEnvVarsafterSSE_PORTthroughapisix.tplvalues.render. The key may be absent (--reuse-valuesfrom an older release) and then renders nothing.charts/gateway/Chart.yaml: chart version 3.10.16 → 3.10.17.charts/gateway/README.md: regenerated with helm-docs.Verification
helm lint charts/gatewaypasses.helm templatewith the sidecar disabled renders no sidecar container, as before.extraEnvVars(a literal and aconfigMapKeyRef), both appear afterSSE_PORTin the sidecar'senv; with the key unset the sidecar env is unchanged.References
Summary by CodeRabbit
SSE_PORTremains managed by the sidecar’s port setting.1.0.9and the gateway chart version to3.10.17.