Skip to content

feat: client should handle 307 redirects #105

Open
@phact

Description

@phact

Is your feature request related to a problem? Please describe.
Currently when I stand up an sse client against a server that redirects I get

[2024-12-17 16:40:04,008][ERROR] Error in post_writer: Redirect response '307 Temporary Redirect' for url 'http://localhost:7860/api/v1/mcp?session_id=430eaa669c7a484a892dbd82c805249d'
Redirect location: 'http://localhost:7860/api/v1/mcp/?session_id=430eaa669c7a484a892dbd82c805249d'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307

Describe the solution you'd like
I ended up implementing an OPTIONS check before I establish the sse client so that no redirect is necessary but it would be nice for this to be handled automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions