Skip to content

refactor: remove unused mcp.shared.progress module#2080

Merged
maxisbey merged 1 commit intomainfrom
delete-progress-module
Feb 18, 2026
Merged

refactor: remove unused mcp.shared.progress module#2080
maxisbey merged 1 commit intomainfrom
delete-progress-module

Conversation

@maxisbey
Copy link
Contributor

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:

Every project that implements MCP progress notifications uses either:

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

Remove the ProgressContext, Progress, and progress() context manager
from mcp.shared.progress. This module had zero real-world adoption -
every project that implements progress notifications uses either
Context.report_progress() or session.send_progress_notification()
directly.

The module also had an unfixed related_request_id bug (notifications
silently dropped on Streamable HTTP transport), which further confirms
it was never used in production.

- Delete src/mcp/shared/progress.py
- Remove test_progress_context_manager test
- Update migration guide to document removal and alternatives

Github-Issue: #2021
@maxisbey maxisbey merged commit e82203b into main Feb 18, 2026
30 checks passed
@maxisbey maxisbey deleted the delete-progress-module branch February 18, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments