Skip to content

Conversation

@IAmSurajBobade
Copy link
Contributor

/mcp/content.go: use omitzero json tag for byte array, instead of omitempty earlier.

This change removes requirement of custom MarshalJSON

Fixes #781

Copy link
Contributor

@maciej-kisiel maciej-kisiel left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution.

@maciej-kisiel maciej-kisiel merged commit 41b54dc into modelcontextprotocol:main Feb 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use omitzero to marshal ResourceContents, instead of custom MarshalJSON

2 participants