Packages

@modelcontextprotocol/sdk

1.32.2 · 23 Oct 2026MIT93.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @modelcontextprotocol/sdk From 1.29.0 to 1.32.0

4 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.29.0Newest 1.x, Latest1.32.2

Before you upgrade

Tick each one off as you go
  • Deprecated1.31.0

Security

Release by release

  1. 1.32.0

    2 Oct 20262 new · 3 fixes
    • New

      server: Add maxToolInputElements option to limit the number of elements in tool-call arguments

    • New

      auth: Add expectedResource to requireBearerAuth

    • Fixed

      client: Follow redirects only within the endpoint's origin

    • Fixed

      tasks: Keep tasks of the in-memory task store within the session that created them

    • Fixed

      server: Accept tools/call and prompts/get requests that omit arguments

  2. 1.31.0

    Deprecation28 Sep 2026
    • Deprecated

      Pass expectedIssuer when constructing ClientCredentialsProvider, PrivateKeyJwtProvider or StaticPrivateKeyJwtProvider. Constructing them without it is deprecated.

  3. 1.30.1

    23 Sep 20262 fixes
    • Fixed

      server: Read HTTP request bodies with a size limit and bound JSON-RPC batch length

    • Fixed

      auth: Preserve resource URI without trailing slash

  4. 1.30.0

    27 Jul 20261 new · 4 fixes
    • New

      Add end-to-end test suite

    • Fixed

      server: Prioritize zod issues and format them

    • Fixed

      Support Zod 3.25 method literals

    • Fixed

      Send SSE keep-alive comment frames from Streamable HTTP server transport (v1.x)

    • Fixed

      Fix SSE keep-alive timer lifecycle in Streamable HTTP server transport (v1.x)

6 other lines we could not sort, mostly version bumps
  • Redirects: the HTTP client transports now follow a redirect only when it stays on the same origin (same scheme, host and port; http to https on the same host is allowed). A deployment whose endpoint redirects to another host or port either configures the final URL or sets redirectPolicy: 'follow' on StreamableHTTPClientTransport or SSEClientTransport. In browsers, a redirected request fails unless that option is set.

    1.32.0
  • New options, both off unless you set them: maxToolInputElements on McpServer limits the number of array elements and object members in a tool call's arguments. expectedResource on requireBearerAuth accepts only tokens issued for this server (the token's audience).

    1.32.0
  • Stored OAuth tokens and client information now include an issuer field. Storage that rejects unknown fields needs to allow it.

    1.31.0
  • Bind stored OAuth credentials to the authorization server that issued them

    1.31.0
  • v1 stdio buffer limit

    1.30.0
  • Validate Content-Type by parsed media type instead of substring match (v1.x)

    1.30.0

9 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.