Skip to content

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

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-modelcontextprotocol-go-sdk-1.x
Closed

chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.4.1#69
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-modelcontextprotocol-go-sdk-1.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 9, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/modelcontextprotocol/go-sdk v1.2.0v1.4.1 age adoption passing confidence

Release Notes

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

v1.4.1

Compare Source

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/encoding module version

The 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-Type for JSON-RPC POST requests is set to application/json and use the new http.CrossOriginProtection functionality 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 configured http.CrossOriginProtection object to StreamableHTTPOptions.

Since this is a behavior change, we introduced a compatibility parameter disablecrossoriginprotection that will allow to temporarily disable it. It will be removed in v1.6.0 version of the SDK. See here for more details about behavior changes and a history of compatibility parameters across SDK versions.

Allowing customization of http.Client for client-side OAuth

We have introduced an optional http.Client parameter to AuthorizationCodeHandlerConfig. This allows customization of the transport, for example implementing environment specific protection against Server-Side Request Forgery.

Pull requests

Full Changelog: modelcontextprotocol/go-sdk@v1.4.0...v1.4.1

v1.4.0

Compare Source

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_oauth flag. Some changes may still be applied to this new API, based on developer feedback. The functionality is planned to become stable in v1.5.0 release, 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.

Sampling with Tools

Starting from this release, the server use the new CreateMessageWithTools method to create a sampling request to the client that contains tools that can be used by the client. On the client side, CreateMessageWithToolsHandler may be used to handle such requests and issue ToolUse responses to the server.

Behavior 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 MCPGODEBUG environment 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-localhost Host header will be rejected to protect against DNS rebinding attacks. The protection can be disabled by specifying StreamableHTTPOptions.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 MCPGODEBUG option to bring back the previous default behavior for users that need more time to adjust. However, if possible, we recommend specifying DisableLocalhostProtection described above, as it is a more future-proof solution. The MCPGODEBUG option to remove this protection (disablelocalhostprotection=1) will be removed in v1.6.0.

Removed JSON content escaping when marshaling

By default encoding/json escapes the contents of the objects, which causes some servers to fail. We switched to no escaping by default, to be consistent with other SDKs. Since this is a behavior change, we introduced an MCPGODEBUG option to bring back the previous behavior for users that need more time to adjust to it. That option (jsonescaping=1) will be removed in v1.6.0.

Bug fixes

Security vulnerability caused by the case insensitive parsing behavior of encoding/json has been submitted (also release as a cherry pick in v1.3.1). Security advisory has been posted.

Other fixes:

Enhancements

Notably, the SDK now supports the extensions field in client and server capabilities, which should enable creation of MCP Apps.

Other enhancements:

Repository organization

Some effort was put into better organization of the repository, as well as making sure it's up to date and secure. As a highlight, the repository is not integrated with OSSF Scorecard with a positive score of 8.7. Additionally, the full conformance test suite is now run on every PR and push to main.

New Contributors

Full Changelog: modelcontextprotocol/go-sdk@v1.3.0...v1.4.0

v1.3.1

Compare Source

This release is a patch release for v1.3.0.

It contains a cherry-pick for a security issue reported in #​805, which takes advantage of the default behavior of Go's standard library JSON decoder that allows case-insensitive matches to struct field names (or "json" tags). The issue has been addressed by changing the JSON decoder to one that supports case sensitive matching.

Fixes

New external dependencies

Full Changelog: modelcontextprotocol/go-sdk@v1.3.0...v1.3.1

v1.3.0

Compare Source

This release is equivalent to v1.3.0-pre.1. Thank you to those who tested the pre-release.

This release includes several enhancements and bugfixes. Worth mentioning is the addition of schema caching, which significantly improves the performance in some stateless server deployment scenarios.

Dependency updates

Enhancements

Bugfixes

Chores

New Contributors

Full Changelog: modelcontextprotocol/go-sdk@v1.2.0...v1.3.0


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 is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Feb 9, 2026

ℹ️ 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):

  • 3 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.24.10 -> 1.25.0
github.com/google/jsonschema-go v0.3.0 -> v0.4.2
golang.org/x/mod v0.31.0 -> v0.32.0
golang.org/x/tools v0.40.0 -> v0.41.0

@renovate renovate bot changed the title chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.0 chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.1 Feb 18, 2026
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 1f3e4ac to 8da8000 Compare February 18, 2026 19:07
@renovate renovate bot changed the title chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.1 chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.4.0 Feb 27, 2026
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 8da8000 to 492c98c Compare February 27, 2026 18:00
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 492c98c to 03aa93b Compare March 10, 2026 08:31
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 03aa93b to 11deeb5 Compare March 11, 2026 04:21
@renovate renovate bot changed the title chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.4.0 chore(deps): update module github.com/modelcontextprotocol/go-sdk to v1.4.1 Mar 13, 2026
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 11deeb5 to 8d34c1e Compare March 13, 2026 15:51
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 8d34c1e to 18e2773 Compare March 13, 2026 17:01
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 18e2773 to 4785bbb Compare March 13, 2026 17:34
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 4785bbb to ebe5af4 Compare March 13, 2026 17:52
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from ebe5af4 to b947c71 Compare March 13, 2026 19:30
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from b947c71 to 1cc905c Compare March 13, 2026 19:51
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 1cc905c to a537409 Compare March 13, 2026 20:04
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from a537409 to ce08033 Compare March 13, 2026 20:16
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from ce08033 to f512874 Compare March 13, 2026 20:27
@dirathea
Copy link
Collaborator

Closing to let Renovate recreate with updated go.sum

@dirathea dirathea closed this Mar 13, 2026
@renovate
Copy link
Contributor Author

renovate bot commented Mar 13, 2026

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (v1.4.1). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch March 13, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant