Skip to content

feat: add support for streamable http clients - #804

Merged
yrobla merged 3 commits into
mainfrom
issue-54
Jun 23, 2025
Merged

yrobla merged 3 commits into
mainfrom
issue-54

Conversation

@yrobla

@yrobla yrobla commented Jun 23, 2025

Copy link
Copy Markdown
Contributor

Closes: #54

@yrobla
yrobla force-pushed the issue-54 branch 3 times, most recently from c1dc8f3 to 27c8e01 Compare June 23, 2025 07:02

This comment was marked as outdated.

@yrobla
yrobla force-pushed the issue-54 branch 2 times, most recently from 64301f8 to 5f02a8c Compare June 23, 2025 07:40
@yrobla
yrobla requested a review from dmjb June 23, 2025 08:05
@yrobla
yrobla force-pushed the issue-54 branch 3 times, most recently from f8abb73 to 2f260c6 Compare June 23, 2025 09:10
Comment thread pkg/transport/streamable_http.go Resolved
Comment thread pkg/transport/http.go Resolved
Comment thread pkg/transport/http.go Resolved
@yrobla
yrobla requested a review from Copilot June 23, 2025 09:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for streamable HTTP transport alongside SSE throughout the test suite, core transport implementation, client URL generation, CLI commands, and documentation.

  • Introduce HTTPTransport and NewMCPClientForStreamableHTTP, extending WaitForMCPServerReady to handle a “streamable-http” mode.
  • Update GenerateMCPServerURL and its tests to accept a transportType parameter.
  • Extend runner, CLI flags, CRDs, and OpenAPI docs to include the new transport option.

Reviewed Changes

Copilot reviewed 29 out of 30 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/e2e/mcp_client_helpers.go Added NewMCPClientForStreamableHTTP and extended WaitForMCPServerReady
pkg/transport/http.go Renamed SSETransport to HTTPTransport and added transportType field
pkg/client/config.go Changed GenerateMCPServerURL signature and logic
pkg/client/config_test.go Updated tests to pass transportType to GenerateMCPServerURL
cmd/thv/app/run.go & inspector.go Updated CLI flags and inspector logic for the new transport
cmd/thv-operator/api/v1alpha1 Bumped CRD enum and docs for streamable-http transport
docs/… Bumped versions, updated swagger schemas, and CLI/CRD docs for new transport
Comments suppressed due to low confidence (1)

pkg/client/config_test.go:283

  • Add a test case for streamable-http transport to TestGenerateMCPServerURL to ensure GenerateMCPServerURL correctly handles the new transport mode.
			url := GenerateMCPServerURL(types.TransportTypeSSE.String(), tt.host, tt.port, tt.containerName)

Comment thread cmd/thv/app/inspector.go Resolved
Comment thread cmd/thv/app/inspector.go Resolved
Comment thread pkg/client/config.go Resolved
@yrobla
yrobla merged commit 75491ec into main Jun 23, 2025
@yrobla
yrobla deleted the issue-54 branch June 23, 2025 10:59
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 new MCP Streaming HTTP transport

4 participants