-
Notifications
You must be signed in to change notification settings - Fork 10.2k
RelatedRequestId routing for MCP streams #26562
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
base: production
Are you sure you want to change the base?
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
f27587e to
9740b08
Compare
|
Preview URL: https://9740b082.preview.developers.cloudflare.com Files with changes (up to 15) |
irvinebroque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generating docs like this from PRs seems to be working really well — this all reads really well
Add documentation explaining how the Agents SDK routes server-to-client requests through the correct HTTP stream using the relatedRequestId parameter. This is particularly important for elicitation requests that need to flow through the same bidirectional stream as the tool call that triggered them. Includes: - Explanation of the routing behavior and priority - Code example showing how to use relatedRequestId with elicitInput - Technical details about stream mapping 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
9740b08 to
57bf652
Compare
|
Updated documentation to reflect the latest changes from cloudflare/agents#654 The documentation now includes:
This ensures developers understand how to properly route server-to-client requests through the correct HTTP stream when using elicitation or other bidirectional communication patterns. |
Syncs documentation changes from cloudflare/agents#654
Changes
This PR documents the relatedRequestId routing feature for bidirectional MCP streams in the Streamable HTTP transport.
Added to transport.mdx:
This feature enables proper server-to-client request routing, ensuring that server-initiated requests (like elicitation) are delivered through the correct bidirectional stream while maintaining proper request-response pairing.
Related PR: cloudflare/agents#654