Skip to content

StreamableHttp transport - resume long running requests #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 15, 2025

Conversation

ihrpr
Copy link
Contributor

@ihrpr ihrpr commented Apr 13, 2025

Introducing functionality that allows users to resume long-running requests. This feature is useful for scenarios where:

  • Tools or processes require extended execution time
  • Users need to check progress periodically (e.g., every few hours)
  • Continuous client connection for notifications is unnecessary or impractical

Features:

  • Clients can pass a session ID to reconnect with an existing session
  • Resume and replay: Tools can accept the last event ID to resume from that point, replaying notifications and waiting for responses

@ihrpr ihrpr requested a review from jspahrsummers April 13, 2025 22:47
@ihrpr ihrpr marked this pull request as ready for review April 14, 2025 08:25
Copy link
Member

@jspahrsummers jspahrsummers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good, just some bikeshedding on the Protocol interface.

Base automatically changed from resumability to main April 15, 2025 17:45
@ihrpr ihrpr merged commit 09e5d5b into main Apr 15, 2025
4 checks passed
@ihrpr ihrpr deleted the ihrpr/resume-long-running-requests branch April 15, 2025 21:25
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.

None yet

2 participants