← Back to Pull requests

chore(deps-dev): bump @modelcontextprotocol/client from 2.0.0 to 2.3.0 in /02-Security/samples/cimd-dcr-auth #1185

Closed
unknown closed this pull request without merging on Oct 23, 2026 15:00 UTC
View on GitHub
unknown unknown commented on Oct 20, 2026 18:53 UTC
Author

[//]: # (dependabot-start)
⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.

---

[//]: # (dependabot-end)

Bumps @modelcontextprotocol/client from 2.0.0 to 2.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/modelcontextprotocol/typescript-sdk/releases">@​modelcontextprotocol/client's releases</a>.</em></p>
<blockquote>
<h2><code>@​modelcontextprotocol/client</code><a href="https://github.com/2"><code>@​2</code></a>.3.0</h2>
<h3>Minor Changes</h3>
<ul>
<li><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2901">#2901</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/433eb413dc305ebeb93b8ebcde0095a8fc0d5fa0"><code>433eb41</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - The HTTP client transports and the OAuth client helpers now follow a redirect only when it stays within the origin of the request (same scheme, host and port, or http to https on the same host with default ports) and keeps the method (a 307 or 308, or any redirect of a GET). Any other redirect is not followed. A transport then fails the request with an error that names the target; the session is kept and later messages still send. OAuth metadata discovery moves on to the next well-known URL, and any other OAuth request fails with an error that gives the status. Same-origin redirects that keep the method keep working on Node, up to five in a row, and no code changes are needed there. If your endpoint redirects to another origin, configure the transport with the URL it redirects to. A <code>requestInit.redirect</code> of <code>'error'</code> or <code>'manual'</code> is passed to fetch as it is for the requests a transport sends to the server (POST, GET and DELETE of the Streamable HTTP transport, POST of the SSE transport); for its OAuth requests, and for any other value, <code>requestInit.redirect</code> is not consulted by default. Browsers do not expose the target of a redirect to a page, so there a redirected request fails instead of being followed. Setting <code>redirectPolicy: 'follow'</code> on a transport leaves its redirects to the fetch implementation, as before this change.</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2599">#2599</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/5238fba4424f82ec1ae9f6f458dd655ab322062d"><code>5238fba</code></a> Thanks <a href="https://github.com/freya0926"><code>@​freya0926</code></a>! - A server can now serve, and a client can now call, <code>tasks/get</code> and <code>tasks/cancel</code> of the Tasks extension (SEP-2663) on a 2026-07-28 connection, when the handler is registered and the request is sent with an explicit schema. Every other method that a protocol revision removed is still refused. If one server factory serves both eras and such a handler is meant for 2025-era clients only, register it only when <code>ctx.era === 'legacy'</code>.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2846">#2846</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/63c0fcab49dc13f22dd7d016d6320c62d05e3ca8"><code>63c0fca</code></a> Thanks <a href="https://github.com/Sthreal"><code>@​Sthreal</code></a>! - Receiving a large message as a single SSE event over Streamable HTTP, such as a tool result of tens of megabytes, is now fast: a 50 MB result that took about 13 seconds arrives in under a second. The client now requires <code>eventsource-parser</code> 3.0.8 or later. <code>SSEClientTransport</code> reads through the <code>eventsource</code> package and gets the same speed-up once that also resolves <code>eventsource-parser</code> 3.0.8 or later.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2908">#2908</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/633dd3e12bff6869c932c4a526341622320912b1"><code>633dd3e</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - The <code>license</code> field of the package manifests is now <code>Apache-2.0</code>; the <code>LICENSE</code> file shipped in each package carries the full terms, including the MIT text for earlier contributions. No code change.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2903">#2903</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/e765b3be84b7eba1837ba8da84acd6898cc47c65"><code>e765b3b</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - With <code>versionNegotiation</code> in <code>'auto'</code> or pin mode, a <code>server/discover</code> probe answered with a 2xx that carries no usable reply (a body that
is not JSON under <code>application/json</code>, a bare <code>204</code>, a missing or unaccepted content type) still rejects <code>connect()</code> with
<code>EraNegotiationFailed</code>; an empty SSE stream or a <code>202</code> surfaces as the probe timeout instead. The message now says
<code>the server answered with an unusable reply (...)</code> instead of reading like a network failure. To connect to a 2025 server behind a front that
answers the probe this way, pass <code>connect(transport, { prior: { kind: 'legacy' } })</code> or use <code>mode: 'legacy'</code>.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2905">#2905</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/c0cd01a21d867e57b29d7216416b25bf36898292"><code>c0cd01a</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - <code>SSEClientTransport</code> now retries the SSE connection once after <code>onUnauthorized()</code> resolves, as documented. If the retry is also answered with 401, <code>start()</code> rejects with <code>SdkHttpError</code> (<code>ClientHttpAuthentication</code>) instead of calling <code>onUnauthorized()</code> again. A 401 on a later reconnect of a stream that had opened still gets one refresh.</p>
</li>
<li>
<p>Updated dependencies [<a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/633dd3e12bff6869c932c4a526341622320912b1"><code>633dd3e</code></a>]:</p>
<ul>
<li><code>@​modelcontextprotocol/core</code><a href="https://github.com/2"><code>@​2</code></a>.3.0</li>
</ul>
</li>
</ul>
<h2><code>@​modelcontextprotocol/client</code><a href="https://github.com/2"><code>@​2</code></a>.2.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2887">#2887</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/edd12e282620ebf770d67316f19cf91d4112a1bd"><code>edd12e2</code></a> Thanks <a href="https://github.com/maxisbey"><code>@​maxisbey</code></a>! - Constructing <code>ClientCredentialsProvider</code>, <code>PrivateKeyJwtProvider</code>, <code>StaticPrivateKeyJwtProvider</code> or <code>CrossAppAccessProvider</code> without <code>expectedIssuer</code> is deprecated: the constructor logs one <code>console.warn</code> and that call signature is marked <code>@deprecated</code>. Behaviour is otherwise unchanged. Pass the <code>issuer</code> of the authorization server the credentials were registered with.</p>
<p><code>fetchToken()</code> throws <code>AuthorizationServerMismatchError</code>, before sending anything, when the provider's client information is bound to a different authorization server than the one it is called with. The <code>AuthorizationServerMismatchError</code> message no longer assumes the authorization-code callback; its fields are unchanged.</p>
<p><code>OAuthTokensSchema</code> and <code>OAuthClientInformationSchema</code> accept the optional <code>issuer</code> stamp, so a provider that reads storage back through them keeps it. <code>auth()</code> overwrites it on every save.</p>
</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2885">#2885</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/9dd722fd0b533b3cb44cd2834409f7ea4dd32b00"><code>9dd722f</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - Sending a notification on a closed connection no longer produces a briefly unhandled promise rejection (seen as <code>unhandledrejection</code> on Cloudflare Workers) in addition to the returned rejection.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2883">#2883</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/c0f7aec2925a46b32dc2f2aad5bf636a36f02c78"><code>c0f7aec</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - Fix a type-check failure for CommonJS TypeScript projects introduced in 2.1.0: <code>dist/index.d.cts</code> imported types from <code>jose</code>, which is ESM-only, so <code>tsc</code> with <code>module: node16</code>/<code>node18</code> and <code>skipLibCheck: false</code> failed with TS1479. The two <code>jose</code> types used by the DPoP API (<code>CryptoKey</code>, <code>JWK</code>) are now inlined into the declaration files. No runtime change.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2768">#2768</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/efebf5b2ba2f07c6fa27ada824a0999b801fec0a"><code>efebf5b</code></a> Thanks <a href="https://github.com/web-abin"><code>@​web-abin</code></a>! - Correct the JSDoc for insecure OAuth token endpoints. The TLS requirement comes from the MCP authorization specification's OAuth 2.1 communication-security rules, not SEP-2207, which covers OIDC-flavored refresh-token guidance. Documentation only; no runtime behavior change.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2729">#2729</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/a4ae2f98da3814a9290f2791cfcca8148dcec978"><code>a4ae2f9</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - Correct the <code>registerClient</code> <code>@deprecated</code> notice: Dynamic Client Registration was deprecated by spec PR modelcontextprotocol#2858 (Client ID Metadata Documents), not SEP-2577 (which deprecates roots, sampling, and logging). The notice now also names the earliest possible removal date under the feature lifecycle policy (2027-07-28) and clarifies that the <code>client_id_metadata_document_supported</code> gating lives in the built-in <code>auth()</code> flow — <code>registerClient</code> called directly always sends the registration request. Documentation only; no runtime behavior change.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2862">#2862</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/e780e13869ad419a864b669bd5fa9702cfb36b14"><code>e780e13</code></a> Thanks <a href="https://github.com/SyedTashfin"><code>@​SyedTashfin</code></a>! - Preserve <code>_meta</code> on <code>input_required</code> results. The 2026-07-28 decode seam rebuilt the payload from <code>inputRequests</code> and <code>requestState</code> only, so result-level metadata a server sent on an <code>input_required</code> result (including <code>io.modelcontextprotocol/serverInfo</code>) was dropped before an <code>allowInputRequired: true</code> caller could see it. <code>Result._meta</code> is a result-level field, so <code>input_required</code> carries it exactly like any other result.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2886">#2886</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/ef39308e963496b75e50553f6265d99cacb4fbb9"><code>ef39308</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - <code>listTools()</code>, <code>listPrompts()</code>, <code>listResources()</code> and <code>listResourceTemplates()</code> called without a cursor now follow <code>nextCursor</code> until the server stops sending one, instead of stopping silently with a short list when a cursor repeats; a page that has the same items and the same <code>nextCursor</code> as the page before it ends the walk and is not added twice, and <code>listMaxPages</code> still caps the walk.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2642">#2642</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/cfa09db614308eaf4fd575c89833da8878d4acb7"><code>cfa09db</code></a> Thanks <a href="https://github.com/apps/claude"><code>@​claude</code></a>! - Fix <code>Client.listen()</code> rejections escaping as process-level unhandled rejections. The internal <code>opening</code> promise could reject (ack timeout, transport close, server cancel, caller abort) while <code>listen()</code> was still serially awaiting <code>transport.send(...)</code>, so no rejection handler was attached yet — the rejection surfaced as an <code>unhandledRejection</code> that caller-side handling cannot prevent, and a send that never settles (e.g. a stdio write parked on <code>'drain'</code>) left <code>listen()</code> suspended forever even though the ack timer had already fired. <code>listen()</code> now suspends on the <code>opening</code> state machine directly and routes send failures into it, so every termination path rejects the returned promise and nothing escapes.</p>
</li>
<li>
<p><a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/pull/2597">#2597</a> <a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/7f7a94c22017e121a960e071bb50ec75e34450bd"><code>7f7a94c</code></a> Thanks <a href="https://github.com/arimu1"><code>@​arimu1</code></a>! - Treat hostnames ending in <code>.localhost</code> as loopback for the SEP-2207 token-endpoint https guard (RFC 6761 §6.3), so host-based multi-tenant local OAuth works. The SDK does not resolve the name itself: <code>*.localhost</code> reaches the local machine only if the system resolver follows RFC 6761.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/a202a3621fcb97918e09fa45d0f9efd2dbdee19b"><code>a202a36</code></a> Version Packages (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/2896">#2896</a>)</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/2d731faef167b3df78d4be05f547a134f0e23bcf"><code>2d731fa</code></a> fix(client): refresh again when an SSE retry failed for a reason other than 4...</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/b6e5c5574e107c33cb6ae33c2e869780f5684c3a"><code>b6e5c55</code></a> test(e2e): cover prompts/get without arguments for prompts with a schema (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/2928">#2928</a>)</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/40f8f4e229d963cd7fd2890bda2aeebe7005299a"><code>40f8f4e</code></a> feat(server): add expectedResource to the bearer-token check (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/2929">#2929</a>)</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/6d8dbc6cb590edf766fcb66b636ca6b654e99c37"><code>6d8dbc6</code></a> feat(server): add maxToolInputElements option to limit the number of elements...</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/2fc49eaf17a6b9ac0810c875cc96d3b949f9522c"><code>2fc49ea</code></a> fix(server): accept prompts/get requests that omit arguments (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/2107">#2107</a>)</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/63c0fcab49dc13f22dd7d016d6320c62d05e3ca8"><code>63c0fca</code></a> fix(client): update eventsource-parser for large SSE responses (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/2846">#2846</a>)</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/84804c22e45a662675a198f853b7f00063838a8d"><code>84804c2</code></a> fix(server): refuse a second connect and stateless transport reuse (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/2918">#2918</a>)</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/e16d27729ea2fae144a6d957fd0372d9eb0e6c58"><code>e16d277</code></a> docs: close idle sessions and cap the session map in the sessions guide and e...</li>
<li><a href="https://github.com/modelcontextprotocol/typescript-sdk/commit/433eb413dc305ebeb93b8ebcde0095a8fc0d5fa0"><code>433eb41</code></a> fix(client): follow redirects only within the origin of the request (<a href="https://redirect.github.com/modelcontextprotocol/typescript-sdk/issues/2901">#2901</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/modelcontextprotocol/typescript-sdk/compare/@modelcontextprotocol/client@2.0.0...@modelcontextprotocol/client@2.3.0">compare view</a></li>
</ul>
</details>
<br />

![Dependabot compatibility score](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)

  • You can disable automated security fix PRs for this repo from the Security Alerts page.

    </details>

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: skytin1004 Review duration: 4087m
    All Vouch review confidence checks passed
    Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.75 · 650 lines diff across 8 files
    0.75
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.075
    Real PR Conversation Timeline
    1 comments
    "Review active on #1185"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 75.2% (HIGH) · Higher = larger blast radius
    75.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.7% · Safe to merge
    29.7%