🧪 Auto-PR: Merge develop → test - #1014
Merged
Merged
Conversation
TOON encodes `{}` as the empty string, so shortest-wins picked it over `{}` and
the tool result went out with content[{type:'text',text:''}]. Clients reject that
outright — the beta MCP endpoint answers such a call with
Anthropic Proxy: Invalid content from server
which reads as a transport fault rather than "this endpoint returned no data",
and there is nothing in the error naming the tool or the payload.
chooseToolText now only takes the shorter encoding while something is left to
read, and successResult renders a bodyless success (204, empty handler return)
as "(no content)" instead of an empty block. structuredContent is untouched: it
is still derived from the original JSON.
Found while reading beta through the MCP to confirm the dicom-viewer client's
webOrigins. Any admin GET that legitimately returns {} hits this.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Automated Pull Request 🤖
Commits ahead of test: 2
Commits behind test: 0
TODOs remaining in codebase: 3