Skip to content

fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.4.0#106

Open
renovate[bot] wants to merge 2 commits intomainfrom
renovate/github.com-modelcontextprotocol-go-sdk-1.x
Open

fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.4.0#106
renovate[bot] wants to merge 2 commits 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 Confidence
github.com/modelcontextprotocol/go-sdk v1.3.1v1.4.0 age confidence

Release Notes

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

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 (MCPGODEBUG=disablelocalhostprotection=1)

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 option to remove this protection will be removed in v1.6.0.

Removed JSON content escaping when marshaling (MCPGODEBUG=jsonescaping=1):

By default encoding/json escapes the contents of the objects, which causes some servers to fail. We switched to no escaping by default. The option to bring back the escaping 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


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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 9a0d905 to 1b82ab6 Compare February 13, 2026 19:33
@renovate renovate bot changed the title fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.0 fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.0 - autoclosed Feb 14, 2026
@renovate renovate bot closed this Feb 14, 2026
@renovate renovate bot deleted the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch February 14, 2026 18:17
@renovate renovate bot changed the title fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.0 - autoclosed fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.1 Feb 18, 2026
@renovate renovate bot reopened this Feb 18, 2026
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch 2 times, most recently from 1b82ab6 to 3eea500 Compare February 18, 2026 17:15
ChrisJBurns
ChrisJBurns previously approved these changes Feb 22, 2026
@renovate renovate bot changed the title fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.1 fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.1 - autoclosed Feb 25, 2026
@renovate renovate bot closed this Feb 25, 2026
@renovate renovate bot changed the title fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.3.1 - autoclosed fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.4.0 Feb 27, 2026
@renovate renovate bot reopened this Feb 27, 2026
@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 314a961 to 3eea500 Compare February 27, 2026 16:46
@renovate
Copy link
Contributor Author

renovate bot commented Feb 27, 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):

  • 1 additional dependency was updated

Details:

Package Change
golang.org/x/oauth2 v0.30.0 -> v0.34.0

@renovate renovate bot force-pushed the renovate/github.com-modelcontextprotocol-go-sdk-1.x branch from 3eea500 to 314a961 Compare February 27, 2026 16:46
@renovate
Copy link
Contributor Author

renovate bot commented Feb 28, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

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