Repository navigation
refactor(gateway): render MCP_SERVERS as name=url aliases - #236
Merged
Merged
Conversation
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
September 24, 2026 21:18
This was referenced Sep 24, 2026
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Sep 24, 2026
## [0.25.1](v0.25.0...v0.25.1) (2026-09-24) ### ♻️ Improvements * **gateway:** render MCP_SERVERS as name=url aliases ([#236](#236)) ([3bfb7ac](3bfb7ac)) ### 👷 CI * **claude:** centralize claude.yml via reusable workflow ([#232](#232)) ([4d2a583](4d2a583)) * **deps:** bump github.com/onsi/ginkgo/v2 in the gomod group ([#218](#218)) ([5eb52ff](5eb52ff)) * **deps:** bump go.opentelemetry.io/otel/exporters/otlp/otlptrace ([#225](#225)) ([e681bae](e681bae)) * **deps:** bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc ([#227](#227)) ([5674492](5674492)) * **deps:** bump rancher/k3s from v1.36.4-k3s1 to v1.37.0-k3s1 in the docker group ([#228](#228)) ([343e738](343e738)) * **deps:** bump rancher/k3s in the docker group ([#219](#219)) ([50089f7](50089f7)) * **deps:** bump the gomod group with 3 updates ([#229](#229)) ([e016a01](e016a01)) ### 📚 Documentation * Document pre-commit hook and coverage command in AGENTS.md ([#224](#224)) ([aebbec0](aebbec0)) ### 🔧 Miscellaneous * **deps:** bump claude-code 2.1.245 -> 2.1.266 ([#220](#220)) ([09b15b8](09b15b8)) * **deps:** bump claude-code 2.1.266 -> 2.1.278 ([#230](#230)) ([114a61e](114a61e)) * **deps:** bump infer CLI v0.183.0 -> v0.192.0 ([#221](#221)) ([5186c52](5186c52)) * **deps:** bump infer CLI v0.192.0 -> v0.205.3 ([#231](#231)) ([099c939](099c939)) * **lint:** enforce Go import grouping and named imports ([#223](#223)) ([7ae0d6d](7ae0d6d))
Contributor
|
🎉 This PR is included in version 0.25.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
MCP_SERVERSis now rendered asname=urlentries so the gateway namespaces tools asmcp_<name>_<tool>with stable, explicit aliases instead of host-derived ones.assembleMCPServerURLs->assembleMCPServerEntries: staticspec.mcp.servers[]render as<name>=<url>, and MCPs found viaspec.mcp.serviceDiscoveryrender as<metadata.name>=<status.url>(the scope addition raised in the issue thread - this is what shortensmcp_filesystem-service_inference-gateway_svc_cluster_local_create_directorytomcp_filesystem_create_directory). Dedupe on URL and sorting for determinism are unchanged.^[a-z0-9_-]+$, be unique across static and discovered servers, and not be the reserved aliastools. A name failing any rule is logged and that entry falls back to a bare URL, so the server keeps working with a host-derived alias rather than disappearing from the gateway config.status.mcpServerskeeps mirroringMCP_SERVERS, so it now showsname=urlentries too.mcp.servers[].name,mcp.servers,mcp.serviceDiscovery,status.mcpServers), regenerated manifests, README and the two Gateway examples all state that the name becomes the tool namespace.No CRD
patternwas added tomcp.servers[].name: that would reject existing Gateways whose server names are valid today (uppercase, dots), so validation is runtime with a graceful fallback. Say the word if you would rather have it rejected at admission instead.Verification
task fmt,task vet,task lint(0 issues),task test(all green). A new unit case covers invalid, reserved and duplicate names.Downstream impact
inference-gateway/docspages describingMCP_SERVERS/status.mcpServersneed thename=urlshape -[DOCS]ticket filed.Closes #234