Title: feat: add partial results as part of progress notifications by cyccolin · Pull Request #669 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: feat: add partial results as part of progress notifications by cyccolin · Pull Request #669 · modelcontextprotocol/python-sdk
X Title: feat: add partial results as part of progress notifications by cyccolin · Pull Request #669 · modelcontextprotocol/python-sdk
Description: This PR implements the specifications defined in modelcontextprotocol/modelcontextprotocol#383, introducing partial result streaming capabilities within progress notifications from Server to Client. Motivation and Context This enhancement addresses two key improvements to the protocol: Enables servers to stream intermediate results during execution of long-running operations, as specified in modelcontextprotocol/modelcontextprotocol#117 Adds support for clients to send metadata during call_tool operations in the FastMCP implementation, as referenced in PR #631 Changes Add optional "meta" parameter to the ClientSession call_tool api to enable feature access from spec Add "partialResults" flag that allows clients to explicitly request streaming results. Add "partial_result" parameters in Server SendProgressNotification to enable notification with partial_result details. How Has This Been Tested? Add unit tests for FastMCP reportProgress API. Manually test with custom client to receive partial results from long task server Breaking Changes No breaking changes as the new attributes and parameters are all optional. 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: This PR implements the specifications defined in modelcontextprotocol/modelcontextprotocol#383, introducing partial result streaming capabilities within progress notifications from Server to Client...
X Description: This PR implements the specifications defined in modelcontextprotocol/modelcontextprotocol#383, introducing partial result streaming capabilities within progress notifications from Server to Client...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/669
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c5fa71a4-239f-3572-3328-935a74b39fb4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E7C4:DF569:7EE54A:8286FA:6A59EEB8 |
| html-safe-nonce | 98218742a54b506a6b174ffe715b4f7ad3ee61273845642ea45417c024bde77d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0M0OkRGNTY5OjdFRTU0QTo4Mjg2RkE6NkE1OUVFQjgiLCJ2aXNpdG9yX2lkIjoiMzE1NzUxNTMyOTA3NDc1MzIwOCIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 3b9f308e66371072c1c3ddda5e97b883767de163ff40f33d31679a755437ea18 |
| hovercard-subject-tag | pull_request:2508199734 |
| 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/python-sdk/pull/669/files |
| twitter:image | https://avatars.githubusercontent.com/u/210586977?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/210586977?s=400&v=4 |
| og:image:alt | This PR implements the specifications defined in modelcontextprotocol/modelcontextprotocol#383, introducing partial result streaming capabilities within progress notifications from Server to Client... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-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 | 32bf0b7849e1b6561059cca2cb03568251960859 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width