-
Notifications
You must be signed in to change notification settings - Fork 47
Pre-release fixes: reuse the MCP client across calls; error bodies on streaming calls #104
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
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c151eba
Pre-release fixes: reuse the MCP client across calls; error bodies on…
h3xxit 8d71421
Pre-release review fixes, second batch
h3xxit b83d77c
Pre-release review fixes, third batch
h3xxit 2533abd
sse: compare the response media type exactly
h3xxit b0849f3
Pre-release review fixes, fourth batch
h3xxit 7e00e6f
Pre-release review fixes, fifth batch
h3xxit b9ce156
Pre-release review fixes, sixth batch
h3xxit 5a3f9c6
mcp: track client ownership per calling UtcpClient, not per manual na…
h3xxit 319046a
mcp: keep clients whose shutdown failed in a separate retry list
h3xxit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
P3: This change's whole purpose is surfacing the server's error body on refused streaming calls, but there is no test exercising call_tool_streaming against a 4xx/5xx response. The discovery path has test_register_manual_surfaces_server_error_body, so add an equivalent that hits a 4xx stream endpoint and asserts the raised ClientResponseError message (or call_tool's raised error) contains the server's reason/detail.
Prompt for AI agents
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.
Valid, fixed: tests added for both SSE and Streamable HTTP streaming calls against a 5xx, asserting the body is in the message.