Title: In HttpClientSseClientTransport and WebFluxSseClientTransport add a constructor by HarryFQG · Pull Request #67 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: In HttpClientSseClientTransport and WebFluxSseClientTransport add a constructor by HarryFQG · Pull Request #67 · modelcontextprotocol/java-sdk
X Title: In HttpClientSseClientTransport and WebFluxSseClientTransport add a constructor by HarryFQG · Pull Request #67 · modelcontextprotocol/java-sdk
Description: A constructor in HttpClientSseClientTransport overloading Motivation and Context Repair WebMvcSseServerTransport specifies the sseEndpoint, while HttpClientSseClientTransport SSE_ENDPOINT or/sse, finally an error. Below is a screenshot. How Has This Been Tested? There are tests. The test steps are as follows: Step 1. Create WebMvcSseServerTransport and specify sseEndpoint. For example, "new WebMvcSseServerTransport(new ObjectMapper(), "/myMcp/message", "/mysse");" . Step 2. When creating "McpSyncClient" objects, we should specify "WebFluxSseClientTransport" or "HttpClientSseClientTransport" object and then you find there the lack of "sseEndpoint" parameter. Step 3. There is "Java. Lang. RuntimeException: Failed to connect to SSE stream. Unexpected status code: 404" error. If McpClient use WebFluxSseClientTransport will quote "under Caused by: org.springframework.web.reactive.function.client.WebClientResponseException$NotFound: 404 Not Found from the GET http://localhost:18080/sse " error. Breaking Changes It isn't necessary Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context
Open Graph Description: A constructor in HttpClientSseClientTransport overloading Motivation and Context Repair WebMvcSseServerTransport specifies the sseEndpoint, while HttpClientSseClientTransport SSE_ENDPOINT or/sse, ...
X Description: A constructor in HttpClientSseClientTransport overloading Motivation and Context Repair WebMvcSseServerTransport specifies the sseEndpoint, while HttpClientSseClientTransport SSE_ENDPOINT or/sse, ...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/pull/67
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6986c2b0-3115-873b-2717-c69235fc7783 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A544:994A4:B5DFAF:F162CB:6A5FE074 |
| html-safe-nonce | e1846fecd4c641bac43481d8d1f1eab1166ebccbbd31334d5b7181b78374bf33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTQ0Ojk5NEE0OkI1REZBRjpGMTYyQ0I6NkE1RkUwNzQiLCJ2aXNpdG9yX2lkIjoiMzUwMzgzODA0OTg5MzA4MTIwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1de313f7d0eb0c6110460eccc9fb8abcdf9dd63c2ecaef769e1aec255b55d6f4 |
| hovercard-subject-tag | pull_request:2411393876 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/modelcontextprotocol/java-sdk/pull/67/files |
| twitter:image | https://avatars.githubusercontent.com/u/34418180?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/34418180?s=400&v=4 |
| og:image:alt | A constructor in HttpClientSseClientTransport overloading Motivation and Context Repair WebMvcSseServerTransport specifies the sseEndpoint, while HttpClientSseClientTransport SSE_ENDPOINT or/sse, ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 969ff9e74dfdb8c6005b9549cd5d4b367ffe20ba69031e1a0cfddaa5106944a2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fa4da66e0ab40d3a24db059b9ddcf8a2f49202c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width