Skip to content

Incorrect URL in mcpSse Client #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
e5l opened this issue Mar 13, 2025 · 0 comments
Closed

Incorrect URL in mcpSse Client #52

e5l opened this issue Mar 13, 2025 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@e5l
Copy link
Contributor

e5l commented Mar 13, 2025

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.

@e5l e5l added bug Something isn't working good first issue Good for newcomers labels Mar 13, 2025
AbdullatifGhajar pushed a commit to AbdullatifGhajar/mcp-kotlin-sdk that referenced this issue Mar 13, 2025
AbdullatifGhajar pushed a commit to AbdullatifGhajar/mcp-kotlin-sdk that referenced this issue Mar 13, 2025
@AbdullatifGhajar AbdullatifGhajar mentioned this issue Mar 13, 2025
9 tasks
e5l added a commit to AbdullatifGhajar/mcp-kotlin-sdk that referenced this issue Mar 26, 2025
@e5l e5l closed this as completed in be4f9c3 Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant