Skip to content

Fix MCP HTTP transport detection for streamable-http and SSE#389

Merged
MatLBS merged 2 commits intomainfrom
fix/mcp_bug
Mar 3, 2026
Merged

Fix MCP HTTP transport detection for streamable-http and SSE#389
MatLBS merged 2 commits intomainfrom
fix/mcp_bug

Conversation

@MatLBS
Copy link
Contributor

@MatLBS MatLBS commented Mar 2, 2026

Fix #388

Summary

  • Added transport field to McpServerConfig interface and mcpJsonSchema validation, supporting values: streamable-http, sse, http, stdio
  • Updated _convertToServerDefinition to detect HTTP-based transports not just by type === 'http' but also by checking the transport field against all HTTP transport variants (streamable-http, sse, http)

Test plan

  • Configure an MCP server with transport: "streamable-http" and verify it connects correctly
  • Configure an MCP server with transport: "sse" and verify it connects correctly
  • Verify existing type: "http" configs still work as before
  • Verify stdio servers are unaffected

🤖 Generated with Claude Code

…ransports

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@Bl3f
Copy link
Contributor

Bl3f commented Mar 2, 2026

Did you test it?

@MatLBS
Copy link
Contributor Author

MatLBS commented Mar 3, 2026

Yes I tested it and it works.

But overall, mcporter does not seem to handle http connections very well...

Maybe we will need to reimplement our own mcp client

@MatLBS MatLBS merged commit f698168 into main Mar 3, 2026
3 checks passed
@MatLBS MatLBS deleted the fix/mcp_bug branch March 3, 2026 16:32
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.

support streamable-http transport for mcps

2 participants