Title: Add support context propagation · Issue #225 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: Add support context propagation · Issue #225 · modelcontextprotocol/java-sdk
X Title: Add support context propagation · Issue #225 · modelcontextprotocol/java-sdk
Description: Motivation: When using the transport, we always need to pass some context from the context to the sessionFactory or handler, but with the current implementation, the original ServerRequest is completely been ignored, it would be nice tha...
Open Graph Description: Motivation: When using the transport, we always need to pass some context from the context to the sessionFactory or handler, but with the current implementation, the original ServerRequest is compl...
X Description: Motivation: When using the transport, we always need to pass some context from the context to the sessionFactory or handler, but with the current implementation, the original ServerRequest is compl...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/225
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support context propagation","articleBody":"Motivation:\nWhen using the transport, we always need to pass some context from the context to the sessionFactory or handler, but with the current implementation, the original ServerRequest is completely been ignored, it would be nice that we pass this information down.\n\nwe have some kind of options:\n\n1. with ThreadLocal\n2. With reactor's contextWrite and deferContext\n3. with an additional parameter.\n\nI think the 3 is better, which will not bound to any implementation.","author":{"url":"https://github.com/He-Pin","@type":"Person","name":"He-Pin"},"datePublished":"2025-05-08T03:02:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/225/java-sdk/issues/225"}
| 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:9fe78e1d-0922-ebd9-ae02-4b799b5878b6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D442:2BBB15:D78773:11F2D9A:6A5B9FB7 |
| html-safe-nonce | 38645b7ef3d769b67d9384368894b17ef39f93db13f62c352edb2acbc418630d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDQyOjJCQkIxNTpENzg3NzM6MTFGMkQ5QTo2QTVCOUZCNyIsInZpc2l0b3JfaWQiOiI5MTY0MTc3NDUwNzQ1OTYyNDIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 940397207f1aacc4e53a5adc88716be2b8a58952fb8c3ac84cfe7d3424486c03 |
| hovercard-subject-tag | issue:3047666680 |
| 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/225/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae5e8c37bce8f244c5d59c056a3944ae5d8254d83c03563675ad6d03398b4777/modelcontextprotocol/java-sdk/issues/225 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae5e8c37bce8f244c5d59c056a3944ae5d8254d83c03563675ad6d03398b4777/modelcontextprotocol/java-sdk/issues/225 |
| og:image:alt | Motivation: When using the transport, we always need to pass some context from the context to the sessionFactory or handler, but with the current implementation, the original ServerRequest is compl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | He-Pin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width