-
Pre-submission Checklist
Question Category
Your QuestionI'm migrating a couple of MCP servers, which were previously implemented with the great work done before at https://github.com/mark3labs/mcp-go There's one MCP in particular which uses Gemini for image generation, and which I would normally debug via I used to have input and output schema in that implementation as well, though in all honesty, it was me the one doing the When return mcp.NewToolResultImage(responseText, img.Data, img.MIMEType), nilNow, when moving to fully schema oriented, I cannot find a way to disable output validation depending on any switch I could turn on and off. In short, this library does what it should do, and Im perhaps trying to bend it in a very personal way for my debugging purposes, but wanted to understand if there was a way to achieve this, or just give up and go debug the output of the MCP elsewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Thanks for carefully describing your use case (and I agree that mark3labs/mcp-go represents a lot of great work). Can you try setting your |
Beta Was this translation helpful? Give feedback.
-
|
I thought you could do this by having the handler return type be any?
…On Fri, Oct 3, 2025, 2:36 PM Iván Núñez Paz ***@***.***> wrote:
Closed #553
<#553> as
resolved.
—
Reply to this email directly, view it on GitHub
<#553>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AENAOZIJZ2L4UQMW6AIANCL3V264NAVCNFSM6AAAAACIHIGNN2VHI2DSMVQWIX3LMV45UABFIRUXGY3VONZWS33OIV3GK3TUHI5E433UNFTGSY3BORUW63R3GIYTQOJQG43Q>
.
You are receiving this because you are subscribed to this thread.Message
ID:
<modelcontextprotocol/go-sdk/repo-discussions/553/discussion_event/2189077
@github.com>
|
Beta Was this translation helpful? Give feedback.
Whoops, that's my bad suggestion! The error message is quite right: output schema must be an object. Try: