Skip to content

fix: preserve complete MCP call tool results - #1446

Open
eyesofish wants to merge 1 commit into
google:mainfrom
eyesofish:eyesofish/fix-mcp-call-result-fields
Open

fix: preserve complete MCP call tool results#1446
eyesofish wants to merge 1 commit into
google:mainfrom
eyesofish:eyesofish/fix-mcp-call-result-fields

Conversation

@eyesofish

Copy link
Copy Markdown

Summary

  • preserve the complete successful MCP CallToolResult, including ordered content, structured content, metadata, and isError
  • retain the legacy text_output field for backward compatibility
  • cover mixed text/image and non-text-only results

Testing

  • ./mvnw fmt:format
  • ./mvnw -pl core -Dtest=AbstractMcpToolTest,ClaudeTest test
  • ./mvnw -pl core test (1,751 tests, 0 failures)

Closes #1443

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@google-cla

google-cla Bot commented Aug 21, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@hemasekhar-p hemasekhar-p self-assigned this Aug 21, 2026
@hemasekhar-p

Copy link
Copy Markdown
Contributor

Hi @eyesofish, thank you for your contribution! We appreciate you taking the time to submit this pull request. Since this is your first contribution, could you please complete the Google CLA so that we can proceed with the review?

@hemasekhar-p hemasekhar-p added the waiting on reporter Waiting for reaction by reporter. Failing that, maintainers will eventually closed it as stale. label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting on reporter Waiting for reaction by reporter. Failing that, maintainers will eventually closed it as stale.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

McpTool drops structuredContent and non-text content from CallToolResult

2 participants