Repository navigation
Fix SSE proxy mode transport label mapping for stdio servers - #2506
Merged
Merged
Conversation
When using `--proxy-mode sse` with stdio MCP servers, client configurations were incorrectly getting their `type` field set to `streamable-http` instead of `sse`. The issue was in `WithStandardLabels()` which computes the transport label stored in container labels. This label is later used to determine the transport type for client configurations. The function handled the `streamable-http` proxy mode case but was missing the `sse` case. Changes: - Add handling for stdio transport with SSE proxy mode in config.go:473-474 - Add test coverage for both SSE and streamable-http proxy modes Fixes #2475 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
amirejaz
approved these changes
Nov 7, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2506 +/- ##
==========================================
+ Coverage 55.67% 55.68% +0.01%
==========================================
Files 295 295
Lines 28023 28025 +2
==========================================
+ Hits 15601 15607 +6
+ Misses 10998 10996 -2
+ Partials 1424 1422 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
Fixes a bug where
--proxy-mode ssewas incorrectly setting client configurationtypetostreamable-httpinstead ofsse.Changes
WithStandardLabels()Root Cause
The
WithStandardLabels()function computes the transport label stored in container labels, which is later used to determine the transport type for client configurations. The function handled thestreamable-httpproxy mode case but was missing thessecase.Testing
Related
Fixes #2475
🤖 Generated with Claude Code