Skip to content

deps: bump github.com/modelcontextprotocol/go-sdk from 1.6.1 to 1.7.0 - #566

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/modelcontextprotocol/go-sdk-1.7.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/modelcontextprotocol/go-sdk-1.7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/modelcontextprotocol/go-sdk from 1.6.1 to 1.7.0.

Release notes

Sourced from github.com/modelcontextprotocol/go-sdk's releases.

v1.7.0

This release brings full support for protocol version 2026-07-28. The wire protocol is largely rewritten: a stateless model with per-request _meta, a new server/discover RPC replacing the initialize handshake, multi-round-trip requests (MRTR) replacing server-initiated calls, a unified subscriptions/listen stream replacing free-floating change notifications, standardised HTTP headers, and the formal deprecation of the roots, sampling, and logging features.

The streamable HTTP transport accepts requests at protocol version 2026-07-28 only when StreamableHTTPOptions.Stateless = true. If you want to expose the new protocol over HTTP, set Stateless = true; if you want to keep stateful sessions, your clients will negotiate down to 2025-11-25.

Backward compatibility with 2025-11-25 and earlier is preserved on every endpoint. The SDK negotiates the highest mutually-supported version at connect time. The new protocol is enabled by default for new clients; existing legacy clients and servers continue to work unchanged.

This release consolidates everything shipped in v1.7.0-pre.1, v1.7.0-pre.2, and v1.7.0-pre.3. Thank you to everyone who exercised the pre-releases and filed feedback.

v1.7.0-pre.3 is already successfully used by GitHub, serving more than half a million users.

Make MCP Stateless (SEP-2575) & Sessionless (SEP-2567)

The initialize/notifications/initialized handshake is removed in 2026-07-28. Each request now carries _meta.io.modelcontextprotocol/{protocolVersion,clientInfo,clientCapabilities} so the server can validate the peer without state. A new server/discover RPC lets clients learn the server's supported versions and capabilities up front; the SDK falls back to legacy initialize if discover fails. Resumability (Last-Event-ID, standalone GET) is removed; ping, logging/setLevel, resources/subscribe, and resources/unsubscribe are also removed on this revision and rejected with MethodNotFound.

Subscriptions listen (SEP-2575)

The legacy tools/list_changed, prompts/list_changed, resources/list_changed, and resources/updated notifications are replaced by a single long-lived subscriptions/listen request whose response stream multiplexes every change notification the client opted into, each tagged with io.modelcontextprotocol/subscriptionId. The SDK opens this stream automatically on Client.Connect when the corresponding list-changed handler is set; servers route notifications only to subscribed sessions.

Multi Round-Trip Requests (SEP-2322)

Server-to-client requests for elicitation, sampling, and roots are no longer issued as fresh JSON-RPC requests. Instead a tool/prompt/resource handler returns an InputRequiredResult whose inputRequests field carries the requests; the client fulfils each and retries the original call with inputResponses populated. The SDK ships client- and server-side middleware that handles this transparently in both directions, including a server-side compatibility shim that lets MRTR handlers also work against legacy clients.

Cacheable list results (SEP-2549)

tools/list, prompts/list, resources/list, resources/templates/list, resources/read, and server/discover results now carry ttlMs and cacheScope fields. Clients honour them as freshness hints to reduce polling; shared intermediaries use cacheScope to decide whether responses may be cached.

HTTP standardization (SEP-2243)

The streamable HTTP transport now mirrors selected fields from the JSON-RPC body into HTTP headers (Mcp-Method, Mcp-Name, Mcp-Protocol-Version, Mcp-Param-*) so network intermediaries can route and observe MCP traffic without deep packet inspection. Tools can declare per-parameter passthrough via x-mcp-header annotations on their input schema. Body↔header mismatches return -32020 HeaderMismatch.

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [github.com/modelcontextprotocol/go-sdk](https://github.com/modelcontextprotocol/go-sdk) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/modelcontextprotocol/go-sdk/releases)
- [Commits](modelcontextprotocol/go-sdk@v1.6.1...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/modelcontextprotocol/go-sdk
  dependency-version: 1.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 28, 2026
@dependabot
dependabot Bot requested a review from cjimti as a code owner July 28, 2026 22:32
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 28, 2026
cjimti added a commit that referenced this pull request Sep 8, 2026
Consolidates the 12 open Dependabot PRs into a single change.

GitHub Actions:
- actions/checkout 7.0.0 -> 7.0.1 (#571)
- actions/setup-go 6.5.0 -> 7.0.0 (#575)
- github/codeql-action/init 4.37.2 -> 4.37.3 (#573)
- github/codeql-action/analyze 4.37.2 -> 4.37.3 (#574)
- ossf/scorecard-action 2.4.3 -> 2.4.4 (#572)
- github/codeql-action/upload-sarif 4.37.2 -> 4.37.3, and correct its
  stale "# v3" version comment (not covered by a Dependabot PR, but it
  shared the SHA with init/analyze)

Go modules:
- k8s.io/{api,apimachinery,cli-runtime,client-go,kubectl,streaming,
  component-base} 0.36.2 -> 0.36.3 (#567, #568, #569, #570)
- sigs.k8s.io/structured-merge-diff/v6 6.3.2 -> 6.3.3
- github.com/modelcontextprotocol/go-sdk 1.6.1 -> 1.7.0 (#566)
- golang.org/x/time 0.14.0 -> 0.15.0
- test/integration: github.com/moby/go-archive 0.2.0 -> 0.3.0 (#577),
  pulling klauspost/compress 1.18.7, moby/sys/sequential 0.7.0 and
  moby/sys/user 0.4.1

Docs (pip):
- mkdocs-material 9.5.50 -> 9.7.7, pymdown-extensions 11.0 -> 11.0.1 (#578)
- Regenerated .github/requirements-docs.txt with pip-compile rather than
  taking the Dependabot diff as-is. mkdocs-material 9.7.7 adds a backrefs
  dependency and pymdown-extensions 11.0.1 drops regex; the Dependabot
  patch only rewrote the two version pins, so the docs job would have
  failed under "pip install --require-hashes" with an unpinned backrefs.

Resolves Dependabot alerts:
- GHSA-hfg8-hc9c-6c3h (high, moby/go-archive)
- GHSA-gm37-52c6-37mw (high, pymdown-extensions)
- GHSA-xvg9-69gf-fjrf (medium, mkdocs-material)

Verified: go build/vet/test pass for both modules, scripts/validate-action-shas.sh
passes, all action SHAs match their upstream tags, and the regenerated docs lock
installs with --require-hashes and builds with "mkdocs build --strict".
@cjimti

cjimti commented Sep 8, 2026

Copy link
Copy Markdown
Member

Superseded by #579, which rolled the open Dependabot PRs into a single change (merged as 3319317).

That PR applied github.com/modelcontextprotocol/go-sdk v1.6.1 → v1.7.0 (plus the golang.org/x/time v0.14.0 → v0.15.0 it pulls in)

Closing in favour of the rollup.

@cjimti cjimti closed this Sep 8, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/modelcontextprotocol/go-sdk-1.7.0 branch September 8, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant