Skip to content

Fix SSE proxy mode transport label mapping for stdio servers - #2506

Merged
amirejaz merged 1 commit into
mainfrom
fix/proxy-mode-sse-label
Nov 7, 2025
Merged

amirejaz merged 1 commit into
mainfrom
fix/proxy-mode-sse-label

Conversation

@danbarr

@danbarr danbarr commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

Summary

Fixes a bug where --proxy-mode sse was incorrectly setting client configuration type to streamable-http instead of sse.

Changes

  • pkg/runner/config.go: Added handling for stdio transport with SSE proxy mode in WithStandardLabels()
  • pkg/runner/config_test.go: Added test coverage for both SSE and streamable-http proxy mode scenarios

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 the streamable-http proxy mode case but was missing the sse case.

Testing

  • ✅ Added test cases to verify correct transport label for both SSE and streamable-http proxy modes
  • ✅ All existing tests pass
  • ✅ No linting issues

Related

Fixes #2475

🤖 Generated with Claude Code

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]>
@danbarr
danbarr requested a review from amirejaz November 7, 2025 16:42
@codecov

codecov Bot commented Nov 7, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.68%. Comparing base (c17d6c5) to head (5b1c6d8).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@amirejaz
amirejaz merged commit 5135ba1 into main Nov 7, 2025
@amirejaz
amirejaz deleted the fix/proxy-mode-sse-label branch November 7, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants