Skip to content

feat(js/plugins/mcp): support for multipart tools#5205

Open
ifielker wants to merge 1 commit intomainfrom
if-mcpv2Tools
Open

feat(js/plugins/mcp): support for multipart tools#5205
ifielker wants to merge 1 commit intomainfrom
if-mcpv2Tools

Conversation

@ifielker
Copy link
Copy Markdown
Collaborator

Checklist (if applicable):

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for multipart tool actions within the MCP (Model Context Protocol) plugin and enhances the Google GenAI plugin's handling of tool responses. Key changes include the addition of a multipart configuration flag for MCP clients and hosts, allowing tools to return structured content such as text and media parts. The toGeminiToolResponse converter in the Google GenAI plugin was updated to process these multipart responses, merging text content and handling media parts for compatibility with Gemini models. Additionally, the MCP SDK was upgraded, and new tests and a test application were added to verify the multipart functionality. I have no feedback to provide as no review comments were submitted.

@ifielker ifielker requested a review from pavelgj April 29, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant