这是indexloc提供的服务,不要输入任何密码
Skip to content

Incorrect URL in mcpSse Client #52

@e5l

Description

@e5l

Summary:
Client requests .../sse//message?sessionId=... instead of .../message?sessionId=..., causing 404 errors.

Steps to Reproduce

// Server (works)
embeddedServer(CIO, host = "0.0.0.0", port = port) {
    MCP { configureServer() }
}.start(wait = true)

// Client (broken)
val client = HttpClient(CIO) {
    install(SSE)
}.mcpSse("http://localhost:$port/sse")

Issue

Trailing slash in the base URL causes double slashes in the request path.

Impact

Breaks client-server communication unless manually corrected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions