chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.6.1 #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/github.com-modelcontextprotocol-go-sdk-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v1.5.0->v1.6.1Release Notes
modelcontextprotocol/go-sdk (github.com/modelcontextprotocol/go-sdk)
v1.6.1Compare Source
This release adds an MCPGODEBUG flag to opt out of the Content-Type check on POST requests.
Behavior Changes
Prior to v1.6.0 (v1.4.0...v1.5.0), the Content-Type check on POST requests was gated by the same
disablecrossoriginprotectionMCPGODEBUG flag as the cross-origin protection. In v1.6.0, the cross-origin protection was disabled by default (replaced by the opt-inenableoriginverificationflag), but the Content-Type check was kept on unconditionally, leaving no way to disable it.This release restores an escape hatch for both the Streamable HTTP and SSE transports: setting
MCPGODEBUG=disablecontenttypecheck=1skips theContent-Type: application/jsonvalidation on POST requests.See #957.
What's Changed
Full Changelog: https://github.com/modelcontextprotocol/go-sdk/compare/v1.6.0...v1.6.1
v1.6.0Compare Source
This release is equivalent to v1.6.0-pre.1. Thank you to those who tested the pre-release.
In this release we introduce several smaller fixes and improvements, and we started working for release 2026-06-30. The main new feature is the introduction of
ClientCredentialsHandlerfor OAuth client credentials grant.Add
ClientCredentialsHandlerfor OAuth client credentials grantAdded
ClientCredentialsHandlerimplementingauth.OAuthHandlerusing the OAuth 2.0 Client Credentials grant (RFC 6749 Section 4.4) for service-to-service authentication with pre-registered credentials.2026-06-30 Release related PRs
feat: add automatic application_type inference by @guglielmo-san in https://github.com/modelcontextprotocol/go-sdk/pull/904
New
application_typefield is added to theClientRegistrationMetadatafor DynamicClientRegistration. If not specified, theapplication_typewill be inferred from the RedirectURIs. This implements SEP-837.feat: HTTP Header Standardization for method and name by @guglielmo-san in https://github.com/modelcontextprotocol/go-sdk/pull/907
By mirroring key fields from the JSON-RPC payload into HTTP headers, network intermediaries such as load balancers, proxies, and observability tools can route and process MCP traffic without deep packet inspection, reducing latency and computational overhead. This partially implements SEP-2243.
Behavior Changes
SetErrorBehavior ChangePreviously the
SetErrormethod onCallToolResultalways overwrote theContentfield with the error text. NowSetErrorpreserves the existing value if it has already been populated. You can restore the previous behavior by setting the environment variableseterroroverwrite=1.Cross-Origin Protection Default Change
Previously (v1.4.1-v1.5.0) default (zero-value) cross-origin protection was applied when
CrossOriginProtectioninStreamableHTTPOptionswasnil. Now cross-origin protection is not enabled by default whenCrossOriginProtectionis nil.You can restore the previous behavior (enable by default) by setting
enableoriginverification=1.disablecrossoriginprotectionwas replaced byenableoriginverificationafter the default was changed to not enable cross-origin protection.jsonescapingoption was removed, according to plan.Other Changes to the SDK
ServerSession.startKeepaliveby @begelundmuller in https://github.com/modelcontextprotocol/go-sdk/pull/856New Contributors
Full Changelog: https://github.com/modelcontextprotocol/go-sdk/compare/v1.5.0...v1.6.0-pre.1
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):Details:
github.com/google/jsonschema-gov0.4.2->v0.4.3bc5e424b88d0650c4e92chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.6.0to chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.6.1View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.