Title: About MCP Sampling · Issue #47 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: About MCP Sampling · Issue #47 · modelcontextprotocol/java-sdk
X Title: About MCP Sampling · Issue #47 · modelcontextprotocol/java-sdk
Description: In the SDK, it only informs us about how to handle sampling requests on the client side. However, there's no guidance on how to send sampling requests from the MCP server. Could you please provide some information on this?
Open Graph Description: In the SDK, it only informs us about how to handle sampling requests on the client side. However, there's no guidance on how to send sampling requests from the MCP server. Could you please provide ...
X Description: In the SDK, it only informs us about how to handle sampling requests on the client side. However, there's no guidance on how to send sampling requests from the MCP server. Could you please prov...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/47
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"About MCP Sampling","articleBody":"In the SDK, it only informs us about how to handle sampling requests on the client side. However, there's no guidance on how to send sampling requests from the MCP server. Could you please provide some information on this?","author":{"url":"https://github.com/GARCHENG","@type":"Person","name":"GARCHENG"},"datePublished":"2025-03-18T03:33:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/47/java-sdk/issues/47"}
| 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:b3dc0f75-05d2-9200-72e2-acc26f038d8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F9A:186FB1:AF27ED:EC298F:6A5B9124 |
| html-safe-nonce | 2d0321b7b03b3281f4c72474c81394e3d52f454b2e70868830ae8ec05c6b21bc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjlBOjE4NkZCMTpBRjI3RUQ6RUMyOThGOjZBNUI5MTI0IiwidmlzaXRvcl9pZCI6Ijc4ODY0MDYxMDAxNTc0MzYxOTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a53975bae795d89168f89977d8c9a78dcfa0bb782d79286b69e5ea24a189cf74 |
| hovercard-subject-tag | issue:2926991414 |
| 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/47/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20b4e4327b40cef1962370a38d0bda00d956ef5887cb58c5bb175aa0911bc596/modelcontextprotocol/java-sdk/issues/47 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20b4e4327b40cef1962370a38d0bda00d956ef5887cb58c5bb175aa0911bc596/modelcontextprotocol/java-sdk/issues/47 |
| og:image:alt | In the SDK, it only informs us about how to handle sampling requests on the client side. However, there's no guidance on how to send sampling requests from the MCP server. Could you please provide ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GARCHENG |
| 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