chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.6.1 #11

Open
Renovate wants to merge 1 commit from renovate/github.com-modelcontextprotocol-go-sdk-1.x into main
Contributor

This PR contains the following updates:

Package Type Update Change
github.com/modelcontextprotocol/go-sdk require minor v1.5.0 -> v1.6.1

Release Notes

modelcontextprotocol/go-sdk (github.com/modelcontextprotocol/go-sdk)

v1.6.1

Compare 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 disablecrossoriginprotection MCPGODEBUG flag as the cross-origin protection. In v1.6.0, the cross-origin protection was disabled by default (replaced by the opt-in enableoriginverification flag), 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=1 skips the Content-Type: application/json validation 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.0

Compare 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 ClientCredentialsHandler for OAuth client credentials grant.

Add ClientCredentialsHandler for OAuth client credentials grant

Added ClientCredentialsHandler implementing auth.OAuthHandler using the OAuth 2.0 Client Credentials grant (RFC 6749 Section 4.4) for service-to-service authentication with pre-registered credentials.

Behavior Changes

SetError Behavior Change

Previously the SetError method on CallToolResult always overwrote the Content field with the error text. Now SetError preserves the existing value if it has already been populated. You can restore the previous behavior by setting the environment variable seterroroverwrite=1.

Cross-Origin Protection Default Change

Previously (v1.4.1-v1.5.0) default (zero-value) cross-origin protection was applied when CrossOriginProtection in StreamableHTTPOptions was nil. Now cross-origin protection is not enabled by default when CrossOriginProtection is nil.
You can restore the previous behavior (enable by default) by setting enableoriginverification=1.

disablecrossoriginprotection was replaced by enableoriginverification after the default was changed to not enable cross-origin protection.

jsonescaping option was removed, according to plan.

Other Changes to the SDK

New 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/modelcontextprotocol/go-sdk](https://github.com/modelcontextprotocol/go-sdk) | require | minor | `v1.5.0` -> `v1.6.1` | --- ### Release Notes <details> <summary>modelcontextprotocol/go-sdk (github.com/modelcontextprotocol/go-sdk)</summary> ### [`v1.6.1`](https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.6.1) [Compare Source](https://github.com/modelcontextprotocol/go-sdk/compare/v1.6.0...v1.6.1) 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 `disablecrossoriginprotection` MCPGODEBUG flag as the cross-origin protection. In v1.6.0, the cross-origin protection was disabled by default (replaced by the opt-in `enableoriginverification` flag), 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=1` skips the `Content-Type: application/json` validation on POST requests. See [#&#8203;957](https://github.com/modelcontextprotocol/go-sdk/issues/957). #### What's Changed - mcp: add MCPGPDEBUG for opt-in Content-Type check by [@&#8203;guglielmo-san](https://github.com/guglielmo-san) in https://github.com/modelcontextprotocol/go-sdk/pull/972 **Full Changelog**: https://github.com/modelcontextprotocol/go-sdk/compare/v1.6.0...v1.6.1 ### [`v1.6.0`](https://github.com/modelcontextprotocol/go-sdk/releases/tag/v1.6.0) [Compare Source](https://github.com/modelcontextprotocol/go-sdk/compare/v1.5.0...v1.6.0) ***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 `ClientCredentialsHandler` for OAuth client credentials grant. #### Add `ClientCredentialsHandler` for OAuth client credentials grant Added `ClientCredentialsHandler` implementing `auth.OAuthHandler` using the OAuth 2.0 Client Credentials grant (RFC 6749 Section 4.4) for service-to-service authentication with pre-registered credentials. - extauth: add ClientCredentialsHandler for OAuth client credentials grant by [@&#8203;ravyg](https://github.com/ravyg) in https://github.com/modelcontextprotocol/go-sdk/pull/895 #### 2026-06-30 Release related PRs - feat: add automatic application_type inference by [@&#8203;guglielmo-san](https://github.com/guglielmo-san) in https://github.com/modelcontextprotocol/go-sdk/pull/904 New `application_type` field is added to the `ClientRegistrationMetadata` for DynamicClientRegistration. If not specified, the `application_type` will be inferred from the RedirectURIs. This implements [SEP-837](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/837). - feat: HTTP Header Standardization for method and name by [@&#8203;guglielmo-san](https://github.com/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](https://modelcontextprotocol.io/seps/2243-http-standardization). #### Behavior Changes ##### `SetError` Behavior Change Previously the `SetError` method on `CallToolResult` always overwrote the `Content` field with the error text. Now `SetError` preserves the existing value if it has already been populated. You can restore the previous behavior by setting the environment variable `seterroroverwrite=1`. - mcp: preserve existing Content in SetError by [@&#8203;ravyg](https://github.com/ravyg) in https://github.com/modelcontextprotocol/go-sdk/pull/864 ##### Cross-Origin Protection Default Change Previously (v1.4.1-v1.5.0) default (zero-value) cross-origin protection was applied when `CrossOriginProtection` in `StreamableHTTPOptions` was `nil`. Now cross-origin protection is not enabled by default when `CrossOriginProtection` is nil. You can restore the previous behavior (enable by default) by setting `enableoriginverification=1`. - mcp: remove default cross origin protection by [@&#8203;maciej-kisiel](https://github.com/maciej-kisiel) in https://github.com/modelcontextprotocol/go-sdk/pull/906 `disablecrossoriginprotection` was replaced by `enableoriginverification` after the default was changed to not enable cross-origin protection. `jsonescaping` option was removed, according to plan. #### Other Changes to the SDK - internal: remove unused util functions by [@&#8203;alexandear](https://github.com/alexandear) in https://github.com/modelcontextprotocol/go-sdk/pull/871 - build(deps): bump github/codeql-action from 4.32.4 to 4.35.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in https://github.com/modelcontextprotocol/go-sdk/pull/873 - build(deps): bump actions/setup-go from 6.3.0 to 6.4.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in https://github.com/modelcontextprotocol/go-sdk/pull/874 - build(deps): bump actions/setup-node from 6.2.0 to 6.3.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in https://github.com/modelcontextprotocol/go-sdk/pull/875 - build(deps): bump dominikh/staticcheck-action from 1.4.0 to 1.4.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in https://github.com/modelcontextprotocol/go-sdk/pull/872 - oauthex: accept 200 in client registration by [@&#8203;MatyasVondraOutreach](https://github.com/MatyasVondraOutreach) in https://github.com/modelcontextprotocol/go-sdk/pull/877 - mcp: allow Content-Type parameters in streamable transport by [@&#8203;rafaeljusto](https://github.com/rafaeljusto) in https://github.com/modelcontextprotocol/go-sdk/pull/878 - mcp: preserve existing Content in SetError by [@&#8203;ravyg](https://github.com/ravyg) in https://github.com/modelcontextprotocol/go-sdk/pull/864 - mcp: fix race condition in `ServerSession.startKeepalive` by [@&#8203;begelundmuller](https://github.com/begelundmuller) in https://github.com/modelcontextprotocol/go-sdk/pull/856 - chore: preserve CNAME when deploying to GitHub pages by [@&#8203;maciej-kisiel](https://github.com/maciej-kisiel) in https://github.com/modelcontextprotocol/go-sdk/pull/884 - extauth: refactor enterprise auth tests by [@&#8203;maciej-kisiel](https://github.com/maciej-kisiel) in https://github.com/modelcontextprotocol/go-sdk/pull/879 - feat: Add Support for mkdocs by [@&#8203;Dinesht04](https://github.com/Dinesht04) in https://github.com/modelcontextprotocol/go-sdk/pull/883 - mcp: add DNS rebinding and cross origin protections to SSE transport by [@&#8203;maciej-kisiel](https://github.com/maciej-kisiel) in https://github.com/modelcontextprotocol/go-sdk/pull/891 - mcp: log out-of-band errors instead of dropping them by [@&#8203;ravyg](https://github.com/ravyg) in https://github.com/modelcontextprotocol/go-sdk/pull/887 - mcp: don't close session when keepalive ping returns method-not-found by [@&#8203;maciej-kisiel](https://github.com/maciej-kisiel) in https://github.com/modelcontextprotocol/go-sdk/pull/900 - mcp: accept parameterized Content-Type types by [@&#8203;kalvinnchau](https://github.com/kalvinnchau) in https://github.com/modelcontextprotocol/go-sdk/pull/890 - mcp: remove default cross origin protection by [@&#8203;maciej-kisiel](https://github.com/maciej-kisiel) in https://github.com/modelcontextprotocol/go-sdk/pull/906 - Update README.md by [@&#8203;N-Masi](https://github.com/N-Masi) in https://github.com/modelcontextprotocol/go-sdk/pull/896 - mcp: preserve transport errors in Write error chain by [@&#8203;jpugliesi](https://github.com/jpugliesi) in https://github.com/modelcontextprotocol/go-sdk/pull/888 - mcp: do not re-prompt OAuth after cancelled Authorize by [@&#8203;ravyg](https://github.com/ravyg) in https://github.com/modelcontextprotocol/go-sdk/pull/885 - mcp: Upgrade jsonschema-go by [@&#8203;rafaeljusto](https://github.com/rafaeljusto) in https://github.com/modelcontextprotocol/go-sdk/pull/912 - internal/jsonrpc2: remove unused code by [@&#8203;maciej-kisiel](https://github.com/maciej-kisiel) in https://github.com/modelcontextprotocol/go-sdk/pull/910 - MCPGODEBUG update for 1.6.0 by [@&#8203;maciej-kisiel](https://github.com/maciej-kisiel) in https://github.com/modelcontextprotocol/go-sdk/pull/893 #### New Contributors - [@&#8203;MatyasVondraOutreach](https://github.com/MatyasVondraOutreach) made their first contribution in https://github.com/modelcontextprotocol/go-sdk/pull/877 - [@&#8203;rafaeljusto](https://github.com/rafaeljusto) made their first contribution in https://github.com/modelcontextprotocol/go-sdk/pull/878 - [@&#8203;begelundmuller](https://github.com/begelundmuller) made their first contribution in https://github.com/modelcontextprotocol/go-sdk/pull/856 - [@&#8203;Dinesht04](https://github.com/Dinesht04) made their first contribution in https://github.com/modelcontextprotocol/go-sdk/pull/883 - [@&#8203;N-Masi](https://github.com/N-Masi) made their first contribution in https://github.com/modelcontextprotocol/go-sdk/pull/896 - [@&#8203;jpugliesi](https://github.com/jpugliesi) made their first contribution in https://github.com/modelcontextprotocol/go-sdk/pull/888 - [@&#8203;guglielmo-san](https://github.com/guglielmo-san) made their first contribution in https://github.com/modelcontextprotocol/go-sdk/pull/904 **Full Changelog**: https://github.com/modelcontextprotocol/go-sdk/compare/v1.5.0...v1.6.0-pre.1 </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNjQuMCIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.6.0
All checks were successful
CI / build (pull_request) Successful in 38s
CI / lint (pull_request) Successful in 44s
CI / test (pull_request) Successful in 49s
bc5e424b88
Author
Contributor

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
github.com/google/jsonschema-go v0.4.2 -> v0.4.3
### ℹ Artifact update notice ##### File name: go.mod In order to perform the update(s) described in the table above, Renovate ran the `go get` command, which resulted in the following additional change(s): - 1 additional dependency was updated Details: | **Package** | **Change** | | :-------------------------------- | :------------------- | | `github.com/google/jsonschema-go` | `v0.4.2` -> `v0.4.3` |
Renovate force-pushed renovate/github.com-modelcontextprotocol-go-sdk-1.x from bc5e424b88
All checks were successful
CI / build (pull_request) Successful in 38s
CI / lint (pull_request) Successful in 44s
CI / test (pull_request) Successful in 49s
to d0650c4e92
All checks were successful
CI / build (pull_request) Successful in 42s
CI / lint (pull_request) Successful in 44s
CI / test (pull_request) Successful in 56s
2026-05-22 12:06:02 +00:00
Compare
Renovate changed title from chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.6.0 to chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.6.1 2026-05-22 12:06:03 +00:00
All checks were successful
CI / build (pull_request) Successful in 42s
CI / lint (pull_request) Successful in 44s
CI / test (pull_request) Successful in 56s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/github.com-modelcontextprotocol-go-sdk-1.x:renovate/github.com-modelcontextprotocol-go-sdk-1.x
git switch renovate/github.com-modelcontextprotocol-go-sdk-1.x

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.

git switch main
git merge --no-ff renovate/github.com-modelcontextprotocol-go-sdk-1.x
git switch renovate/github.com-modelcontextprotocol-go-sdk-1.x
git rebase main
git switch main
git merge --ff-only renovate/github.com-modelcontextprotocol-go-sdk-1.x
git switch renovate/github.com-modelcontextprotocol-go-sdk-1.x
git rebase main
git switch main
git merge --no-ff renovate/github.com-modelcontextprotocol-go-sdk-1.x
git switch main
git merge --squash renovate/github.com-modelcontextprotocol-go-sdk-1.x
git switch main
git merge --ff-only renovate/github.com-modelcontextprotocol-go-sdk-1.x
git switch main
git merge renovate/github.com-modelcontextprotocol-go-sdk-1.x
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
qwolff/fgj!11
No description provided.