Title: WebFluxSseClientTransport/HttpClientSseClientTransport is unable to connect sse endpoint with custom prefix · Issue #40 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: WebFluxSseClientTransport/HttpClientSseClientTransport is unable to connect sse endpoint with custom prefix · Issue #40 · modelcontextprotocol/java-sdk
X Title: WebFluxSseClientTransport/HttpClientSseClientTransport is unable to connect sse endpoint with custom prefix · Issue #40 · modelcontextprotocol/java-sdk
Description: Bug description java-sdk/mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebFluxSseClientTransport.java Lines 78 to 82 in 4eff00c /** * Default SSE endpoint path as specified by the MCP transport spec...
Open Graph Description: Bug description java-sdk/mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebFluxSseClientTransport.java Lines 78 to 82 in 4eff00c /** * Default SSE endpoint pat...
X Description: Bug description java-sdk/mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebFluxSseClientTransport.java Lines 78 to 82 in 4eff00c /** * Default SSE endpoint pat...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/40
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"WebFluxSseClientTransport/HttpClientSseClientTransport is unable to connect sse endpoint with custom prefix","articleBody":"**Bug description**\n\nhttps://github.com/modelcontextprotocol/java-sdk/blob/4eff00c8da01fffc830e166fa04d7b2a6463ff1c/mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebFluxSseClientTransport.java#L78-L82\n\nIn mcp-spring-webflux 0.7.0, `SSE_ENDPOINT` is `\"/sse\"` and cannot be changed. When my MCP Server use an SSE url with custom prefix. For example, `{host}/sessions/f3a390a/sse` for sseEndpoint and `{host}/sessions/f3a390a/message` for messageEndpoint. I have to set baseUri to `/sessions/f3a390a` and messageEndpoint to `/message` according to `WebFluxSseClientTransport#sendMessage`:\n\nhttps://github.com/modelcontextprotocol/java-sdk/blob/4eff00c8da01fffc830e166fa04d7b2a6463ff1c/mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebFluxSseClientTransport.java#L223-L225\n\nHowever, it is incompatible with `WebFluxSseServerTransport` (which allows custom prefixes)\n\n**Expected behavior**\n\nSupport scenarios like `sseEndpoint=/sessions/f3a390a/sse` and ~~`messageEndpoint=/sessions/f3a390a/sse`~~ `messageEndpoint=/sessions/f3a390a/message`\n\n","author":{"url":"https://github.com/feichao93","@type":"Person","name":"feichao93"},"datePublished":"2025-03-12T17:18:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/40/java-sdk/issues/40"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:12f8138c-f0b4-4507-d316-d0b080501494 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB2A:150990:1F57F85:2BD1DF9:6A5F46E3 |
| html-safe-nonce | 592d42261ae6ce7a47359cd2621d7a0e8071a3f8901024b963b3dccea786a871 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjJBOjE1MDk5MDoxRjU3Rjg1OjJCRDFERjk6NkE1RjQ2RTMiLCJ2aXNpdG9yX2lkIjoiNjI1MjEwMzg1MjQ0MzA5MjE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 81bbfcbb9d0d0a640d19123d13abd465c20d5e06555e6375e5d8ad56864ebb29 |
| hovercard-subject-tag | issue:2914652567 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/java-sdk/40/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a747f48613b93ef71fac344ea60896c9b76ee2f1d663e5c95bc369fb5e2346b9/modelcontextprotocol/java-sdk/issues/40 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a747f48613b93ef71fac344ea60896c9b76ee2f1d663e5c95bc369fb5e2346b9/modelcontextprotocol/java-sdk/issues/40 |
| og:image:alt | Bug description java-sdk/mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebFluxSseClientTransport.java Lines 78 to 82 in 4eff00c /** * Default SSE endpoint pat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | feichao93 |
| hostname | github.com |
| expected-hostname | github.com |
| None | ab2497d9345a59709926b385d88458fa5932c82ec066288448eb68b34cbcbbda |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ba0ac57287507693938b0a2de45402a22cda0785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width