You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mcp: ensure required fields are not omitted in ImageContent and AudioContent
ImageContent and AudioContent now use custom MarshalJSON methods with
inline structs to ensure data and mimeType fields are always included
in JSON output, even when empty. This matches the approach used for
TextContent.Text and follows TypeScript schema requirements.
Updated tests to verify empty fields are serialized as empty strings
rather than being omitted.
0 commit comments