Skip to content

chore(deps): bump github.com/modelcontextprotocol/go-sdk from 1.8.0 to 1.9.0 - #300

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/modelcontextprotocol/go-sdk-1.9.0
Open

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/modelcontextprotocol/go-sdk from 1.8.0 to 1.9.0.

Release notes

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

v1.9.0

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

In this release we introduce fixes, hardening, and small API additions on top of v1.8.0. It adds no new protocol revision: 2026-07-28 remains the newest version the SDK negotiates.

Most changes tighten spec compliance (standard JSON-RPC error codes, exact JSON number decoding without float64 rounding, SEP-2243 HTTP headers, MRTR, and OAuth/OIDC validation), bound peer-controlled inputs, and add hooks for stream keep-alives, per-session notifications, and middleware.

Eight new MCPGODEBUG flags let you revert individual behavior changes, and seven flags from v1.7.0 are removed as scheduled; see below.

Hardening

HTTP clients no longer follow cross-origin or method-changing redirects unless the http.Client sets its own CheckRedirect (StreamableClientTransport, SSEClientTransport, and OAuth requests). The stdio frame cap now holds across arbitrary read boundaries, CommandTransport gains MaxLineLength, StreamableClientTransport applies DefaultMaxEventSize when unset, and ParseWWWAuthenticate runs in linear time. On the client, the prompts/list, resources/list, resources/templates/list, and resources/read caches are capped at 512 entries each and no longer retain results with ttlMs <= 0.

Streams, per-session notifications, and middleware APIs

StreamableHTTPOptions.StreamKeepAlive sends periodic SSE comments on idle POST response streams (30s by default; negative disables) so proxies do not drop subscriptions/listen or slow calls. ServerSession.NotifyToolListChanged, NotifyPromptListChanged, NotifyResourceListChanged, and NotifyResourceUpdated notify a single 2026-07-28 session's open subscriptions/listen streams. StreamableHTTPOptions.OnRequestSummary, HasParams, and Request.GetID (ClientRequest.ID / ServerRequest.ID) expose request metadata to middleware and observability hooks. ClientSession.Discover, ParseURLElicitationRequiredError, and Annotations.SetPriority / HasPriority (to serialize an explicit 0 priority).

Behavior changes guarded by MCPGODEBUG

The new flags below revert the corresponding change (except demotesessionlifecyclelog, which is opt-in). All will be removed in v1.11.0; see docs/mcpgodebug.md for details.

  • structuredcontentfloat64=1 — decode numbers in CallToolResult.StructuredContent as float64 instead of json.Number (#1239).
  • disablepromptargsvalidation=1 — call the prompt handler even when a required argument is missing instead of returning -32602 (#1297).
  • allowmissingclientparams=1 — accept elicitation/create, notifications/elicitation/complete, and notifications/resources/updated with missing or null params (#1315).
  • nopreinitinvalidrequest=1 — refuse pre-initialize requests on legacy sessions with code 0 instead of -32600 (#1393).

... (truncated)

Commits
  • a6e937f mcp: remove deprecated mcpgodebug variables (#1533)
  • ed66761 mcp: ignore the session ID on server/discover responses (#1523)
  • f424fff mcp: cap the client caches and stop retaining uncacheable results (#1527)
  • 0caa6e4 mcp: add ServerSession.NotifyResourceUpdated (#1524)
  • 0fa5e84 mcp: reject unencoded non-ASCII characters in Mcp-Param headers (#1521)
  • 328036e mcp: allow nil params for ListRoots inputRequests (#1517)
  • 1c41d45 mcp: restrict x-mcp-header annotations to properties reachable via properties...
  • 0e849cb mcp: add per session list changed notifications (#1511)
  • df0f295 mcp: make the ioConn frame cap independent of read boundaries (#1510)
  • e66275d auth: include error="invalid_token" in 401 challenges (#1507)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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)

Bumps [github.com/modelcontextprotocol/go-sdk](https://github.com/modelcontextprotocol/go-sdk) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/modelcontextprotocol/go-sdk/releases)
- [Commits](modelcontextprotocol/go-sdk@v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/modelcontextprotocol/go-sdk
  dependency-version: 1.9.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 Dec 1, 2026
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.

0 participants