Skip to content

Conversation

@JAORMX
Copy link
Collaborator

@JAORMX JAORMX commented Nov 27, 2025

Summary

  • When transport is "auto" (the default), the thv mcp subcommands now try streamable HTTP transport first
  • If streamable HTTP fails to connect, automatically falls back to SSE transport
  • Provides better compatibility with servers that only support one transport type

Test plan

  • Run thv mcp list --server <streamable-http-server> and verify it connects successfully
  • Run thv mcp list --server <sse-only-server> and verify it falls back to SSE
  • Run thv mcp list --server <server> --transport sse and verify explicit transport still works
  • Run thv mcp list --server <server> --transport streamable-http and verify explicit transport still works

🤖 Generated with Claude Code

When transport is set to "auto" (the default), the MCP client now tries streamable HTTP first and automatically falls back to SSE if the connection fails. This provides better compatibility with servers that only support one transport type. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Nov 27, 2025
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.45%. Comparing base (b97646b) to head (73dd945).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@ ## main #2790 +/- ## ========================================== - Coverage 56.45% 56.45% -0.01%  ========================================== Files 319 319 Lines 30878 30878 ========================================== - Hits 17433 17431 -2  - Misses 11946 11948 +2  Partials 1499 1499 

☔ 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.
@jhrozek jhrozek merged commit 55ee37d into main Nov 28, 2025
29 checks passed
@jhrozek jhrozek deleted the mcp-auto-transport-fallback branch November 28, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

3 participants