Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

[RFC] Long Running Task/Job/Async handling #30

@cploujoux

Description

@cploujoux

Open discussion on how to address long running task/jobs with MCP

When dealing with long-running tasks in MCP, several challenges emerge:

  • Connection persistence: When using SSE, connections need to be kept open for long periods. If this connection closes prematurely, clients will miss responses or updates sent from the MCP server during long-running operations
  • Client Disconnection: If your client isn't running, how do you ensure the task continues to execute and that results are properly captured ?
  • Tracking the progress and state of long-running operations
  • Ideally an event system when the status of the task changes
  • Webhook implementation can be an idea also

References:

Also relevant:

Metadata

Metadata

Type

No type

Projects

Status

PR Open

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions