Skip to content

StreamableHttpClient Transport hangs on connection to other mcp servers #129

@wagnerjt

Description

@wagnerjt

Describe the bug

When trying to use this go-sdk http client transport to connect to other MCP servers outside of the ones created in this sdk. The transport never connects and eventually hits the default timeout provided by the internal httpclient.

To Reproduce

Simple client example with:

transport = mcp.NewStreamableClientTransport("127.0.0.1:8080/mcp", &mcp.StreamableClientTransportOptions{})

Using something like mcp-go's everything server with go run main.go -t http which serves on :8080.

I also tested this on a few other mcp servers written in the official python mcp sdk.

Additional context

It works using the SSE transport just fine against these other MCP servers. Additionally, it is successful using MCP servers created with this go-sdk like the hello example. Tested on v0.1.0-0.2.0 on windows/amd

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions