Skip to content

feat: add proxy stdio subcommand to enable Claude Desktop #1236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Aug 13, 2025
Merged

Conversation

yrobla
Copy link
Contributor

@yrobla yrobla commented Jul 30, 2025

It will allow to transform transport from a workload that is http/sse to stdio

Closes: #1166

@yrobla
Copy link
Contributor Author

yrobla commented Jul 30, 2025

image

@yrobla yrobla requested review from Copilot, JAORMX and dmjb July 30, 2025 15:02
Copilot

This comment was marked as outdated.

@yrobla yrobla requested a review from Copilot July 30, 2025 15:11
Copilot

This comment was marked as outdated.

@yrobla yrobla requested a review from Copilot July 31, 2025 13:34
Copilot

This comment was marked as outdated.

@yrobla yrobla requested a review from Copilot July 31, 2025 14:01
Copilot

This comment was marked as outdated.

dmjb
dmjb previously requested changes Aug 1, 2025
@yrobla yrobla force-pushed the issue-1166 branch 2 times, most recently from eac4b38 to 4537362 Compare August 4, 2025 08:19
@yrobla yrobla force-pushed the issue-1166 branch 2 times, most recently from 04f16ab to 440522c Compare August 11, 2025 09:44
taskbot and others added 6 commits August 11, 2025 14:00
It will allow to transform transport from a workload that is
http/sse to stdio

Closes: #1166
Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>

Update pkg/transport/bridge.go

Co-authored-by: Copilot <[email protected]>
@yrobla yrobla requested a review from dmjb August 11, 2025 12:04
@yrobla yrobla requested a review from Copilot August 11, 2025 12:04
Copilot

This comment was marked as outdated.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new "proxy stdio" subcommand to enable integration with Claude Desktop by bridging HTTP/SSE transport protocols to stdio for MCP servers.

  • Introduces a stdio bridge component that proxies MCP requests between stdin/stdout and upstream HTTP/SSE servers
  • Adds comprehensive end-to-end tests covering different transport protocol combinations
  • Updates CLI documentation to include the new proxy stdio subcommand

Reviewed Changes

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

Show a summary per file
File Description
test/e2e/proxy_stdio_test.go Complete test suite for proxy stdio functionality with multiple transport protocol scenarios
pkg/transport/bridge.go Core stdio bridge implementation handling upstream connections and request forwarding
pkg/container/images/registry.go Minor import alias change for consistency
docs/cli/thv_proxy_stdio.md Documentation for new proxy stdio command
docs/cli/thv_proxy.md Updated to reference new stdio subcommand
cmd/thv/app/proxy_stdio.go CLI command implementation for proxy stdio
cmd/thv/app/proxy.go Integration of stdio subcommand into proxy command

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@yrobla yrobla dismissed dmjb’s stale review August 13, 2025 10:33

fixed all issues

@yrobla yrobla merged commit e8e6f2e into main Aug 13, 2025
16 of 17 checks passed
@yrobla yrobla deleted the issue-1166 branch August 13, 2025 12:21
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.

Add the ability to transform between sse/streamable-http to stdio
4 participants