github modelcontextprotocol/go-sdk v1.7.0-pre.2

pre-release4 hours ago

v1.7.0-pre.2

This is a follow-up pre-release on top of v1.7.0-pre.1, still targeting protocol version 2026-07-28. It rounds out the previous release with conformance-test coverage on both client and server, tightens spec compliance and introduces first-class support for custom JSON-RPC methods.

Custom JSON-RPC methods

The SDK now supports registering non-standard JSON-RPC methods end-to-end. Servers can register handlers with AddReceivingCustomMethod and clients can invoke them via AddSendingCustomMethod.

Conformance tests

Both the client and server implementations are now exercised by the official MCP conformance test suite as part of CI.

Protection agains OOM attacks

The streamable HTTP transport now enforces a configurable request body size limit to protect servers against OOM-style attacks from oversized payloads.

Spec compliance fixes

Several smaller fixes bring the implementation closer to the spec.

Full Changelog: v1.7.0-pre.1...v1.7.0-pre.2

Don't miss a new go-sdk release

NewReleases is sending notifications on new releases.