Skip to content

Timeout on client if MCP server doesnt support event-stream #1403

@ShadyRoll

Description

@ShadyRoll

Initial Checks

Description

According to documentation of Streamable-HTTP transport server may response with "application/json" content type.

I tested server with my self-made client which answers with 405 on any GET request(SSE doesn't supported) and properly handles POST requests answering with "application/json"(not event-stream).

Client do /initialize request and even after receiving success answer(with "application/json" body) remains standby probably waiting for the end of a stream.

Example Code

Python & MCP Python SDK

mcp client sdk: 1.15.0
python: 3.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds reproneeds additional information to be able to reproduce bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions