Skip to content

Avoid trying SSE connection in StreamableHTTPClientTransport #926

@aabedraba

Description

@aabedraba

Describe the bug
When using the StreamableHTTPClientTransport, an optional SSE connection is attempted and when it fails, it does not error out.

I'm using OTEL to have telemetry on my code and I have a constant firing of failed request whenever this attempt is made and fails.

Image

To Reproduce

Using the StreamableHTTPClientTransport on an MCP server that doesn't have SSE.

Expected behavior
Either give an option to not attempt the SSE connection or just not attempt it at all.

Metadata

Metadata

Assignees

No one assigned

    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