fix(go/plugins/mcp): Retrieve MCP server output schema #3751
+153
−9
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.
Currently, tool definitions retrieved from an MCP server using
GentkitMCPClientmethodGetActiveToolscontain only an empty map attool.Definition().OutputSchema, even if the server explicitly declares an output schema for the given tool.e.g. For the following MCP response:
The following data is included in the tool definition:

This is in part because the current version for
github.com/mark3labs/mcp-godoesn't include theOutputSchemaattribute in the struct used to deserialize the message:This PR introduces the following changes:
github.com/mark3labs/mcp-goto the latest version, which does includeOutputSchemain theToolstruct.Checklist (if applicable):