Skip to content

SSE client transport doesn't handle complex server URLs #84

Open
@hiranya911

Description

@hiranya911

Describe the bug
Some MCP servers have complex URLs with query parameters. But the transport always appends an /sse path segment to the URL by default:

client.sseSession(
urlString = "$it/sse",
reconnectionTime = reconnectionTime,
block = requestBuilder,
)

Currently you can workaround this behavior by initializing the transport with an HttpRequestBuilder instead of the URL string. But it would be nice if the transport didn't make any assumptions about the server URL format.

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