[Proposal] Transport - Http with Webhooks #182
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
This formalized transport proposal aims to optimize Server to Server communication (hosted clients), focused on long-running sessions and operations.
To make MCP work for long running tasks like deep analysis, this proposal defines a transport that leverages http webhooks and callbacks for bidirectionality.
So whilst the SSE transport enables remote servers, a webhook based approach enables remoteness without the need of long-lived open socket connections.
As an extension of this transport, we could introduce an (optional) SSE endpoint to enable message streaming for reduced latency. However, it is critical to not bind the lifetime of the session to this request lifetime.
This transport ensures that the full feature set of MCP remains functional, whilst allowing servers to leverage short lived http connections.
How Has This Been Tested?
The proposed transport has been implemented and validated as a custom transport.
We aim to bring this proposal to see whether there is enough value and consensus to uplift the transport from a custom transport to a standard, given the integration patterns it unlocks.
Breaking Changes
Additive change - new transport
Types of changes
Checklist
Additional context