Title: test: add regression test for issue #2001 (progress related_request_id) by kaushik701 · Pull Request #2747 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: test: add regression test for issue #2001 (progress related_request_id) by kaushik701 · Pull Request #2747 · modelcontextprotocol/python-sdk
X Title: test: add regression test for issue #2001 (progress related_request_id) by kaushik701 · Pull Request #2747 · modelcontextprotocol/python-sdk
Description: Adds a dedicated regression test file for issue #2001. Context.report_progress() was silently dropping progress notifications in stateless HTTP / SSE transports because send_progress_notification() was called without related_request_id. The fix (already in main via mcpserver/context.py) passes related_request_id=self.request_id, consistent with send_log_message(). This test file covers: The primary regression: related_request_id is forwarded on every call Edge case: no progress_token -> notification is skipped (no-op) Edge case: integer progress_token (e.g. 0) works correctly Closes #2001 Motivation and Context How Has This Been Tested? Breaking Changes 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: Adds a dedicated regression test file for issue #2001. Context.report_progress() was silently dropping progress notifications in stateless HTTP / SSE transports because send_progress_notification()...
X Description: Adds a dedicated regression test file for issue #2001. Context.report_progress() was silently dropping progress notifications in stateless HTTP / SSE transports because send_progress_notification()...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2747
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:96d0c647-d0f5-993d-c8ec-236b7ae17809 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E34A:3F31CC:2160D23:2E90C56:6A5F486C |
| html-safe-nonce | 14795ac83f5271ca4eabd895ffa217551a49633f7792e9738475f7040153cbeb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzRBOjNGMzFDQzoyMTYwRDIzOjJFOTBDNTY6NkE1RjQ4NkMiLCJ2aXNpdG9yX2lkIjoiNTUzNzA2NzQ2MzIxNjE1NDczMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | de85b22c1e18e5ff9d5d841c87ffe14df46694fdcb36621e1e94960538c91de3 |
| hovercard-subject-tag | pull_request:3777986924 |
| 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/2747/files |
| twitter:image | https://avatars.githubusercontent.com/u/54633514?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/54633514?s=400&v=4 |
| og:image:alt | Adds a dedicated regression test file for issue #2001. Context.report_progress() was silently dropping progress notifications in stateless HTTP / SSE transports because send_progress_notification()... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ab2497d9345a59709926b385d88458fa5932c82ec066288448eb68b34cbcbbda |
| 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 |
| disable-turbo | true |
| 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