deps: bump github.com/modelcontextprotocol/go-sdk from 1.8.1-0.20261014132652-7c486efa8223 to 1.9.0-pre.1 in the go-dependencies group
Bumps the go-dependencies group with 1 update: github.com/modelcontextprotocol/go-sdk.
Updates github.com/modelcontextprotocol/go-sdk from 1.8.1-0.20261014132652-7c486efa8223 to 1.9.0-pre.1
Release notes
Sourced from github.com/modelcontextprotocol/go-sdk's releases.
v1.9.0-pre.1
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-28remains the newest version the SDK negotiates.Most changes tighten spec compliance (standard JSON-RPC error codes, exact JSON number decoding without
float64rounding, 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
MCPGODEBUGflags let you revert individual behavior changes, and seven flags fromv1.7.0are removed as scheduled; see below.Hardening
HTTP clients no longer follow cross-origin or method-changing redirects unless the
http.Clientsets its ownCheckRedirect(StreamableClientTransport,SSEClientTransport, and OAuth requests). The stdio frame cap now holds across arbitrary read boundaries,CommandTransportgainsMaxLineLength,StreamableClientTransportappliesDefaultMaxEventSizewhen unset, andParseWWWAuthenticateruns in linear time. On the client, theprompts/list,resources/list,resources/templates/list, andresources/readcaches are capped at 512 entries each and no longer retain results withttlMs <= 0.
- mcp: restrict HTTP client redirects to same origin to prevent cross-origin redirect by
@guglielmo-san(#1440)- mcp: make the ioConn frame cap independent of read boundaries by
@Tangerg(#1510)- fix(mcp): default maxEventSize not used by
@yarolegovich(#1457)- mcp: add MaxLineLength to CommandTransport by
@beatcracker(#1333)- oauthex: parse WWW-Authenticate in linear time by
@jyotir-aditya(#1456)- mcp: cap the client caches and stop retaining uncacheable results by
@Assertive-xxh(#1527)- mcp: reject unencoded non-ASCII characters in Mcp-Param headers by
@luiacuaniello(#1521)- mcp: restrict x-mcp-header annotations to properties reachable via properties keys alone by
@guglielmo-san(#1515)- fix(mcp): disabled client capabilities exposing roots by
@yarolegovich(#1460)- internal/util: match "localhost" case-insensitively in IsLoopback by
@akshita317(#1316)Streams, per-session notifications, and middleware APIs
StreamableHTTPOptions.StreamKeepAlivesends periodic SSE comments on idle POST response streams (30s by default; negative disables) so proxies do not dropsubscriptions/listenor slow calls.ServerSession.NotifyToolListChanged,NotifyPromptListChanged,NotifyResourceListChanged, andNotifyResourceUpdatednotify a single2026-07-28session's opensubscriptions/listenstreams.StreamableHTTPOptions.OnRequestSummary,HasParams, andRequest.GetID(ClientRequest.ID/ServerRequest.ID) expose request metadata to middleware and observability hooks.ClientSession.Discover,ParseURLElicitationRequiredError, andAnnotations.SetPriority/HasPriority(to serialize an explicit0priority).
- mcp: add StreamableHTTPOptions.StreamKeepAlive for periodic SSE comments on idle streams by
@yhxlele(#1232)- mcp: enable stream keep-alive for general POST requests by
@guglielmo-san(#1477)- mcp: add per session list changed notifications by
@nahapetyan-serob(#1511)- mcp: add ServerSession.NotifyResourceUpdated by
@nahapetyan-serob(#1524)- mcp: expose streamable HTTP request summaries by
@CaliLuke(#1101)- mcp: add HasParams so middleware can tell whether params are present by
@jmrplens(#1269)- mcp: expose the JSON-RPC request id to receiving middleware by
@xianshujun(#1464)- mcp: export cs.Discover for server/discover by
@guglielmo-san(#1428)- mcp: add ParseURLElicitationRequiredError by
@QuentinBisson(#1495)- mcp: add explicit priority handling to Annotations to support serializing a value of zero by
@guglielmo-san(#1320)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 inCallToolResult.StructuredContentasfloat64instead ofjson.Number(#1239).disablepromptargsvalidation=1— call the prompt handler even when a required argument is missing instead of returning-32602(#1297).allowmissingclientparams=1— acceptelicitation/create,notifications/elicitation/complete, andnotifications/resources/updatedwith missing ornullparams (#1315).nopreinitinvalidrequest=1— refuse pre-initializerequests on legacy sessions with code0instead of-32600(#1393).nointernalerrorcode=1— send handler errors carrying no code with code0instead of-32603(#1407).fatalnewprotocolerrors=1— fail the streamable client connection when an independent2026-07-28request fails (#1353).
... (truncated)
Commits
- See full diff 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 <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
Summary by cubic
Bumps github.com/modelcontextprotocol/go-sdk from a pseudo-version to 1.9.0-pre.1. This pre-release tightens spec compliance and hardens the SDK: HTTP clients no longer follow cross-origin redirects, client caches are capped at 512 entries, and structured content numbers decode as json.Number instead of float64. Most behavior changes can be reverted via MCPGODEBUG flags until v1.11.0; seven flags from v1.7.0 are removed. Also adds stream keep-alive, per-session notifications, and new middleware hooks.