Skip to content

Clients fail and crash If initial GET request returns a redirect (e.g. 302) #283

Open
@eastlondoner

Description

@eastlondoner

Describe the bug
If a remote (see transport) server responds to the initial GET request of the client with a redirect an error is thrown

To Reproduce
Connect a client to https://yo-mcp.com/mcp/7NIUz0cvfStY6-wSsVyY3
It will get a redirect. The typescript client handles it just fine.

Expected behavior
The get request should just follow the redirect.

Screenshots

Image

Desktop (please complete the following information):

  • OS: MacOS
  • Version mcp python sdk version 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions