Repository navigation
Change default proxy mode from SSE to streamable-http - #2475
Conversation
SSE transport is deprecated in favor of streamable-http as per the MCP specification. This changes the default proxy mode to streamable-http in the CLI, API, and client configurations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> Signed-off-by: Dan Barr <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2475 +/- ##
==========================================
- Coverage 55.46% 55.43% -0.03%
==========================================
Files 284 284
Lines 26720 26720
==========================================
- Hits 14820 14812 -8
- Misses 10537 10549 +12
+ Partials 1363 1359 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@claude please review this |
|
Claude finished @JAORMX's task —— View job Code Review CompleteReviewing PR #2475: Change default proxy mode from SSE to streamable-http Tasks
Review FeedbackThis PR successfully changes the default proxy mode from the deprecated SSE transport to ✅ Strengths
🔍 Observations & Suggestions1. Client Config Mapping Consistency (
|
JAORMX
left a comment
There was a problem hiding this comment.
We'll increase the minor release number when releasing this
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]>
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: Dan Barr <[email protected]> Co-authored-by: Claude <[email protected]>
Fixes #2210
Summary
Changes the default proxy mode from the deprecated SSE transport to
streamable-httpto align with the MCP specification recommendations.Changes Made
Core Application
cmd/thv/app/run_flags.go): Changed--proxy-modeflag default tostreamable-httpand updated validation functionpkg/api/v1/workload_service.go): Changed default proxy mode tostreamable-httpcmd/thv/app/mcp.go): Updated transport auto-detection to default tostreamable-httppkg/client/config.go): Updated all 17 client integration mappings to mapstdiotransport tostreamable-httpvariantsE2E Tests
Updated 4 middleware/proxy e2e tests to use the new default transport:
audit_middleware_e2e_test.go: Changed transport, client type, and labelstelemetry_middleware_e2e_test.go: Changed transport and URL extractionproxy_oauth_test.go: Changed transport, URLs (/mcpinstead of/sse), and client typeproxy_tunnel_e2e_test.go: Changed transportTests that explicitly validate SSE behavior remain unchanged (
osv_mcp_server_test.go,proxy_stdio_test.goSSE contexts).Breaking Change
This is a breaking change for users relying on the default SSE behavior. They will need to explicitly specify:
--proxy-mode sse"proxyMode": "sse"Testing