Title: refactor: remove unused `mcp.shared.progress` module by maxisbey · Pull Request #2080 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: refactor: remove unused `mcp.shared.progress` module by maxisbey · Pull Request #2080 · modelcontextprotocol/python-sdk
X Title: refactor: remove unused `mcp.shared.progress` module by maxisbey · Pull Request #2080 · modelcontextprotocol/python-sdk
Description: Summary Remove the ProgressContext, Progress, and progress() context manager from mcp.shared.progress. This module had zero real-world adoption and contained an unfixed related_request_id bug (#2021) that would silently drop notifications on Streamable HTTP transport. Why An exhaustive GitHub-wide search confirmed that no project actually calls ProgressContext.progress() or uses the progress() context manager: 0 callers of ProgressContext.progress() across all of GitHub 0 callers of the progress() context manager (1 dead import in an unrelated project) 0 user-reported issues about ProgressContext — every progress bug report (#953, #2001) was about Context.report_progress() The Progress Pydantic model was dead code even within the SDK itself The only external reference was OpenLIT's telemetry instrumentation, which monkey-patches the method name as a string but never calls it Every project that implements MCP progress notifications uses either: Context.report_progress() (the FastMCP high-level API, already fixed in #2038) session.send_progress_notification() (the direct low-level API) One project (dedalus-labs) that wanted a higher-level abstraction built their own from scratch rather than using ProgressContext. Changes Delete src/mcp/shared/progress.py Remove test_progress_context_manager test (keep the other two progress tests that test send_progress_notification directly) Update docs/migration.md to document the removal with migration guidance Related Closes the ProgressContext.progress() portion of #2021 Follow-up from #2038 which fixed related_request_id in Context.report_progress()
Open Graph Description: Summary Remove the ProgressContext, Progress, and progress() context manager from mcp.shared.progress. This module had zero real-world adoption and contained an unfixed related_request_id bug (#202...
X Description: Summary Remove the ProgressContext, Progress, and progress() context manager from mcp.shared.progress. This module had zero real-world adoption and contained an unfixed related_request_id bug (#202...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2080
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1c622cc6-2cea-2e93-c824-a314a5c52ac8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8208:22AFD6:341B331:43E7D09:6A5CE9DA |
| html-safe-nonce | 4e9ea98b05e447e822ef32136935da43510d56ca318950d48056d196f661a7e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjA4OjIyQUZENjozNDFCMzMxOjQzRTdEMDk6NkE1Q0U5REEiLCJ2aXNpdG9yX2lkIjoiMTQxNDIxNDY1MDgyMTQwNTE0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1de2c51d44848867c18037e7fabd02afc01004b3d1a10d7311cfa53e7c582f92 |
| hovercard-subject-tag | pull_request:3298675121 |
| 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/2080/files |
| twitter:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| og:image:alt | Summary Remove the ProgressContext, Progress, and progress() context manager from mcp.shared.progress. This module had zero real-world adoption and contained an unfixed related_request_id bug (#202... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width