chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.6.1
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| github.com/modelcontextprotocol/go-sdk | require | patch | v1.6.0 -> v1.6.1 |
⚠️ WarningSome dependencies could not be looked up. Check the warning logs for more information.
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
modelcontextprotocol/go-sdk (github.com/modelcontextprotocol/go-sdk)
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 #957.
What's Changed
- mcp: add MCPGPDEBUG for opt-in Content-Type check by @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
Configuration
- If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.