github modelcontextprotocol/go-sdk v0.5.0

13 hours ago

This release fixes several bugs related to schema validation, and makes the final set of breaking changes planned before the v1 release.

For more details, see the v0.5.0 milestone.

API Changes

  • Removed transport constructors (#305). These were deprecated in #272, but we left the constructors so that they could more easily be inlined away via the go:fix inline directive and gopls. Now they are removed.
  • Removed support for batching when the spec version is 2025-06-18 or higher (#21). This is newly strict, but aligns with the MCP spec.

Bug fixes

The following notable bugs are fixed, related to JSON schema validation.

  • JSON schema for nested structs is now handled correctly (#437).
  • Validation of types with custom JSON marshalling is fixed (#447).
  • Validation now correctly catches missing fields (#449).
  • Validation is now strictly case-sensitive (a consequence of the preceding fixes).

New Contributors

Full Changelog: v0.4.0...v0.5.0

Don't miss a new go-sdk release

NewReleases is sending notifications on new releases.