chore(deps): bump github.com/modelcontextprotocol/go-sdk from 1.2.0 to 1.4.1
Type: Pull Request
State: Closed
Association: Unknown
Comments: 1
(3 months ago)
(2 months ago)
(2 months ago)
dependencies go
Bumps github.com/modelcontextprotocol/go-sdk from 1.2.0 to 1.4.1.
Release notes
Sourced from github.com/modelcontextprotocol/go-sdk's releases.
v1.4.1
This release is a patch release for v1.4.0.
It contains cherry-picks for several security improvements. Security advisories will follow.
Fixes
Update of the
segmentio/encodingmodule versionThe JSON parsing library that was adopted to avoid attacks taking advantage of the Go's standard parser being case insensitive turned out to contain an issue itself. We have submitted the fix upstream and this release updates the dependency to the patched version.
Cross-origin requests protection
We have added additional protection against cross origin requests. From now on, we verify that
Content-Typefor JSON-RPCPOSTrequests is set toapplication/jsonand use the newhttp.CrossOriginProtectionfunctionality to verify the origin of the request. Usage of this functionality required increasing the required Go version to 1.25, which is in line with our Go version policy of supporting two newest Go versions. The behavior can be customized by passing a configuredhttp.CrossOriginProtectionobject toStreamableHTTPOptions.Since this is a behavior change, we introduced a compatibility parameter
disablecrossoriginprotectionthat will allow to temporarily disable it. It will be removed inv1.6.0version of the SDK. See here for more details about behavior changes and a history of compatibility parameters across SDK versions.Allowing customization of
http.Clientfor client-side OAuthWe have introduced an optional
http.Clientparameter toAuthorizationCodeHandlerConfig. This allows customization of the transport, for example implementing environment specific protection against Server-Side Request Forgery.Pull requests
- internal: fix Unicode zero character handling by
@maciej-kisielin modelcontextprotocol/go-sdk#841- auth: allow passing custom http.Client to AuthorizationCodeHandler by
@maciej-kisielin modelcontextprotocol/go-sdk#840- mcp: verify 'Origin' and 'Content-Type' headers by
@maciej-kisielin modelcontextprotocol/go-sdk#842Full Changelog: https://github.com/modelcontextprotocol/go-sdk/compare/v1.4.0...v1.4.1
v1.4.0
This release marks the completion of the full 2025-11-25 specification implementation, by introducing the support for Sampling with Tools and experimental client-side OAuth support. It also contains multiple bug fixes and improvements. Thanks to all contributors!
Client-side OAuth support
This release introduces experimental support for OAuth on the client side of the SDK. It aims to support the full scope of the current MCP specification for authorization. To use it, you need to compile the SDK with the
-tags mcp_go_client_oauthflag. Some changes may still be applied to this new API, based on developer feedback. The functionality is planned to become stable inv1.5.0release, expected by the end of March 2026. More details can be found at https://github.com/modelcontextprotocol/go-sdk/blob/main/docs/protocol.md#client.
- all: client side OAuth support by
@maciej-kisielin modelcontextprotocol/go-sdk#785Sampling with Tools
Starting from this release, the server use the new
CreateMessageWithToolsmethod to create a sampling request to the client that contains tools that can be used by the client. On the client side,CreateMessageWithToolsHandlermay be used to handle such requests and issueToolUseresponses to the server.
- mcp: implement sampling with tools by
@findleyrin modelcontextprotocol/go-sdk#699Behavior changes
We have two important behavior changes that were introduced to fix a bug or improve security posture. They can be temporarily turned off by specifying a special
MCPGODEBUGenvironment variable when running the SDK. Different options can be added together, separated by a comma.Introduced DNS rebinding protection
The requests arriving via a localhost address (
127.0.0.1,[::1]) that have a non-localhostHostheader will be rejected to protect against DNS rebinding attacks. The protection can be disabled by specifyingStreamableHTTPOptions.DisableLocalhostProtection, but it should be done only if security implications are understood (see documentation for the option).This protection is a behavior change, as the protection is now enabled by default. Because of that, we have introduced an
MCPGODEBUGoption to bring back the previous default behavior for users that need more time to adjust. However, if possible, we recommend specifyingDisableLocalhostProtectiondescribed above, as it is a more future-proof solution. TheMCPGODEBUGoption to remove this protection (disablelocalhostprotection=1) will be removed inv1.6.0.
... (truncated)
Commits
580f2a0mcp: verify 'Origin' and 'Content-Type' headers (#842)421ddf1auth: allow passing custom http.Client to AuthorizationCodeHandler (#840)515f11binternal: fix Unicode zero character handling (#841)c9317fball: client side OAuth support (#785)4e8b6camcp: return 400 instead of 500 when body read fails in stateless mode (#817)0048a18chore: Configure advanced CodeQL setup (#819)1942036chore: update the version of the conformance suite. (#814)b17143fchore: increase timeout for conformance server start. (#813)86d05a1chore: update publish-docs permissions to be more targeted. (#812)9f22cf1chore: configure a simple AGENTS.md file and a skill for fixing GitHu… (#810)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
go
1.2.0 → 1.4.1
Minor
Technical Details
| ID: | 15124535 |
| UUID: | 4092651508 |
| Node ID: | PR_kwDOQ8pI2s7Laxm7 |
| Host: | GitHub |
| Repository: | flashcatcloud/flashduty-runner |