Zum Inhalt springen

Typescript SDK Updates & Release Notes

Einträge
36
Quellen
1
Zuletzt aktualisiert

Folge Typescript SDK, um die Release Notes in deinen Feed zu holen.

Typescript SDK von Model Context Protocol

2.4.0

Package Version
@modelcontextprotocol/client 2.4.0
@modelcontextprotocol/server 2.4.0
@modelcontextprotocol/core 2.4.0
@modelcontextprotocol/server-legacy 2.4.0
@modelcontextprotocol/codemod 2.4.0
@modelcontextprotocol/node 2.1.2
@modelcontextprotocol/express, hono, fastify unchanged

Upgrade notes

  • x-mcp-header on a number parameter is rejected, as the 2026-07-28 spec requires: the client does not list such a tool, and the server answers a call to it with -32020. Use z.int() or remove the annotation. (#2762, #2960)
  • outputSchema from z.object(...).meta({ id }). On a 2025-11-25 connection the result is no longer wrapped in { result }: read structuredContent, not structuredContent.result. (#3081)
  • The bundled Ajv validator uses fast-uri 3.1.8. It rejects a $id or $ref with an invalid URI scheme, such as my_tool:output. (#3083)

New

  • Skills over MCP (SEP-2640). A server publishes a folder of skills with loadSkills(folder) and skills.attach(server); a client lists, reads and verifies them with SkillsClient. It works on 2025-11-25 and 2026-07-28. attach is experimental and may change in a minor release. (#3047, #3080) …

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

1.32.2

What's Changed

New Contributors

Full Changelog: https://github.com/modelcontextprotocol/typescript-sdk/compare/1.32.1...1.32.2

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/server@2.4.0

Minor Changes

  • #3057 c05225a Thanks @steipete! - ServerEvent takes optional params, which the subscriptions/listen router delivers with its own subscription ID, so a gateway can forward change notifications with their _meta and extension params.

  • #3047 46d9c99 Thanks @KKonstantinov, @tobi-oye, @mattzcarey! - Add the Skills extension (SEP-2640), reachable through new ext/skills subpaths; package root exports are unchanged. …

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/node@2.1.2

Patch Changes

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/core@2.4.0

Minor Changes

  • #3047 46d9c99 Thanks @KKonstantinov, @tobi-oye, @mattzcarey! - Add the Skills extension (SEP-2640), reachable through new ext/skills subpaths; package root exports are unchanged.
    • @modelcontextprotocol/server/ext/skills: SkillsExtension (attach(server) serves skills/list, skills/get, resources/directory/read and a skill://{+path} resource template), SkillsExtension.load(files) returning a SkillCatalog with entries and reload(), the SkillFiles storage adapter with memorySkillFiles, SkillSource for generated catalogs, skillEntry, and SkillCatalogError. Invalid skills are skipped with a warning (onWarning), or fail under strict. A file whose bytes are valid UTF-8 is served as text, whatever its MIME type; any other file as a base64 blob.
    • @modelcontextprotocol/server/ext/skills/node: loadSkills(folder) and nodeSkillFiles(folder). …

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/client@2.4.0

Minor Changes

  • #3085 a633756 Thanks @claude! - Add an opt-in for sending scope on refresh-token requests, for authorization servers that reject a refresh without it (Microsoft Entra ID answers AADSTS90009 when the client and the resource are the same app registration, #2718). OAuthClientProvider gains an optional scopeForRefresh(tokens): auth(), and so the transports and withOAuth, sends the string it returns. refreshAuthorization() gains an optional scope. When a scope is sent and the response has none, the sent scope is kept on the returned tokens. Without either option the refresh request and the saved tokens are unchanged.

  • #3047 46d9c99 Thanks @KKonstantinov, @tobi-oye, @mattzcarey! - Add the Skills extension (SEP-2640), reachable through new ext/skills subpaths; package root exports are unchanged. …

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

MCP TypeScript SDK 2.3.1: expectedResource für requireBearerAuth

Mit Version 2.3.1 übernimmt requireBearerAuth in @modelcontextprotocol/server-legacy die optionale Option expectedResource, die nur für diesen Server ausgestellte Tokens akzeptiert (standardmäßig deaktiviert), und die npm-Seiten von @modelcontextprotocol/server und @modelcontextprotocol/client beginnen mit einem Hinweis auf Dokumentation, Migrationsleitfaden und Issue-Formular.

Package Version
@modelcontextprotocol/client 2.3.1
@modelcontextprotocol/server 2.3.1
@modelcontextprotocol/core 2.3.1
@modelcontextprotocol/server-legacy 2.3.1
@modelcontextprotocol/codemod 2.3.1
@modelcontextprotocol/node, express, hono, fastify unchanged

Changes

  • requireBearerAuth in @modelcontextprotocol/server-legacy takes the optional expectedResource that @modelcontextprotocol/server 2.3.0 added: it accepts only tokens issued for this server (the token's audience). Off unless you set it. (#2952)
  • The npm pages of @modelcontextprotocol/server and @modelcontextprotocol/client now open with one note that links the documentation, the migration guide and the issue form. (#2955)

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

MCP TypeScript SDK 1.32.1: Nur Dokumentationsänderungen

Version 1.32.1 des Typescript SDK enthält nur Dokumentationsänderungen (CLAUDE.md und README mit Verweis auf v2) sowie die Anhebung der Versionsnummer.

What's Changed

Full Changelog: https://github.com/modelcontextprotocol/typescript-sdk/compare/1.32.0...1.32.1

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

server-legacy 2.3.1: Option expectedResource für requireBearerAuth

@modelcontextprotocol/server-legacy 2.3.1 ergänzt requireBearerAuth um die optionale Option expectedResource, sodass ein Token nur akzeptiert wird, wenn AuthInfo.resource dem Wert entspricht, andernfalls folgt 401 invalid_token.

Patch Changes

  • #2952 5a18673 Thanks @claude! - requireBearerAuth in @modelcontextprotocol/server-legacy takes the optional expectedResource that @modelcontextprotocol/server 2.3.0 and @modelcontextprotocol/sdk 1.32.0 added: the resource the token must be issued for (its audience), usually the server's URL. When it is set, a token is accepted only if the verifier reports that value in AuthInfo.resource; the two are compared as strings, ignoring a fragment and one trailing slash. A token reported for another value, or for none, is answered 401 invalid_token with the usual WWW-Authenticate challenge. When it is not set, nothing changes. The package stays frozen otherwise; this option is added so that its requireBearerAuth matches the 1.x middleware it is a copy of.

  • Updated dependencies []:

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

Version 2.3.0: Upgrade-Hinweise zu Verbindungen und Redirects

Version 2.3.0 bringt Upgrade-Hinweise: Server.connect() lehnt eine zweite Verbindung ab und ein zustandsloser Streamable-HTTP-Transport bedient nur eine Anfrage, weshalb Server und Transport pro Anfrage erstellt werden müssen, und HTTP-Client-Transports folgen Redirects nur noch innerhalb desselben Origins, sofern nicht redirectPolicy: 'follow' gesetzt ist.

Package Version
@modelcontextprotocol/client 2.3.0
@modelcontextprotocol/server 2.3.0
@modelcontextprotocol/core 2.3.0
@modelcontextprotocol/server-legacy 2.3.0
@modelcontextprotocol/codemod 2.3.0
@modelcontextprotocol/node 2.1.1
@modelcontextprotocol/express, hono 2.0.2
@modelcontextprotocol/fastify 2.0.1

Upgrade notes

  • One server per request. Server.connect() now rejects while the instance is already connected, and a stateless Streamable HTTP transport handles one request. Create the McpServer and the transport inside the request handler (or in the createMcpHandler factory) instead of sharing one instance across requests. Creating a server is cheap since #2889. (#2918)
  • Redirects stay on the same origin. 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 the transport. In browsers, a redirected request fails unless that option is set. (#2901) …

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

Version 1.32.0: Redirects nur im selben Origin, neue Optionen

Version 1.32.0 lässt HTTP-Client-Transports Redirects nur noch innerhalb desselben Origins folgen und führt die optionalen Optionen maxToolInputElements für McpServer sowie expectedResource für requireBearerAuth ein.

Upgrade notes

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

What's Changed

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/server 2.3.0: Option expectedResource ergänzt

@modelcontextprotocol/server 2.3.0 ergänzt requireBearerAuth und verifyBearerToken um die optionale Option expectedResource, die nur für diese Ressource ausgestellte Tokens akzeptiert, und führt den neuen Typ VerifyBearerTokenOptions ein.

Minor Changes

  • #2929 40f8f4e Thanks @claude! - requireBearerAuth and verifyBearerToken take a new optional expectedResource, which makes them accept only tokens issued for this resource (the token's audience). Set it to the value your authorization server puts into tokens meant for this server, usually the server's URL. When it is set, a token is accepted only if the verifier reports that value in AuthInfo.resource; the two are compared as strings, ignoring a fragment and one trailing slash. A token reported for another value, or for none, is answered 401 invalid_token with the usual WWW-Authenticate challenge. When it is not set, nothing changes. To use it, pass expectedResource and have verifyAccessToken fill AuthInfo.resource, for example from the aud claim. The option is declared on a new exported type, VerifyBearerTokenOptions, which extends BearerAuthOptions; BearerAuthOptions itself is unchanged. The Express requireBearerAuth passes the option through. With Express, @modelcontextprotocol/express has to be upgraded to this release as well: 2.0.1 does not pass the option on, so nothing is compared. Its options type does not have the option, so TypeScript reports an expectedResource written in a call to the 2.0.1 `requireBearerA…

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/server-legacy 2.3.0: Lizenzfeld Apache-2.0

Im Paket @modelcontextprotocol/server-legacy 2.3.0 lautet das license-Feld nun Apache-2.0, ohne Codeänderung.

Patch Changes

  • #2908 633dd3e Thanks @claude! - The license field of the package manifests is now Apache-2.0; the LICENSE file shipped in each package carries the full terms, including the MIT text for earlier contributions. No code change.

  • Updated dependencies [633dd3e]:

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/node 2.1.1: hono als reguläre Abhängigkeit

@modelcontextprotocol/node 2.1.1 macht hono zur regulären Abhängigkeit, damit Installationen mit strenger Peer-Dependency-Prüfung nicht mehr fehlschlagen, und ein Server oder McpServer bedient nun nur noch eine Verbindung, ein sessionloser Streamable-HTTP-Transport nur eine Anfrage, sodass beides pro Anfrage neu erstellt werden muss.

Patch Changes

  • #2897 7f4c12a Thanks @claude! - hono is now a regular dependency of @modelcontextprotocol/node, so installs with strict peer-dependency checking no longer fail on the hono peer that @hono/node-server requires. No runtime change.

  • #2918 84804c2 Thanks @claude! - A Server or McpServer now serves one connection at a time, and a Streamable HTTP server transport without sessions (sessionIdGenerator: undefined) serves one request. An app that uses one server object, or one stateless transport, for every HTTP request fails on the second request after this upgrade. Build the server and the transport per request instead.

    What keeps working without a change:

    • createMcpHandler(buildServer) and serveStdio(buildServer), where buildServer returns a new server on every call.
    • A handler that builds a new server and a new stateless transport for each request.
    • One server and one transport per session (a transport with a sessionIdGenerator).
    • Connecting a server again after close().
    • Client. …

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/hono 2.0.2: Server und Transport pro Anfrage

@modelcontextprotocol/hono 2.0.2 übernimmt die Änderung, dass ein Server oder McpServer nur eine Verbindung und ein sessionloser Streamable-HTTP-Transport nur eine Anfrage bedient, sodass beides pro Anfrage neu erstellt werden muss.

Patch Changes

  • #2918 84804c2 Thanks @claude! - A Server or McpServer now serves one connection at a time, and a Streamable HTTP server transport without sessions (sessionIdGenerator: undefined) serves one request. An app that uses one server object, or one stateless transport, for every HTTP request fails on the second request after this upgrade. Build the server and the transport per request instead.

    What keeps working without a change:

    • createMcpHandler(buildServer) and serveStdio(buildServer), where buildServer returns a new server on every call.
    • A handler that builds a new server and a new stateless transport for each request.
    • One server and one transport per session (a transport with a sessionIdGenerator).
    • Connecting a server again after close().
    • Client.

    What fails now, how it shows, and what to change: …

Originalquelle(öffnet in neuem Tab)Problem melden

Typescript SDK von Model Context Protocol

@modelcontextprotocol/fastify 2.0.1: Server und Transport pro Anfrage

@modelcontextprotocol/fastify 2.0.1 übernimmt die Änderung, dass ein Server oder McpServer nur eine Verbindung und ein sessionloser Streamable-HTTP-Transport nur eine Anfrage bedient, sodass beides pro Anfrage neu erstellt werden muss.

Patch Changes

  • #2918 84804c2 Thanks @claude! - A Server or McpServer now serves one connection at a time, and a Streamable HTTP server transport without sessions (sessionIdGenerator: undefined) serves one request. An app that uses one server object, or one stateless transport, for every HTTP request fails on the second request after this upgrade. Build the server and the transport per request instead.

    What keeps working without a change:

    • createMcpHandler(buildServer) and serveStdio(buildServer), where buildServer returns a new server on every call.
    • A handler that builds a new server and a new stateless transport for each request.
    • One server and one transport per session (a transport with a sessionIdGenerator).
    • Connecting a server again after close().
    • Client.

    What fails now, how it shows, and what to change: …

Originalquelle(öffnet in neuem Tab)Problem melden