Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
3 KiB
3 KiB
@modelcontextprotocol/server-legacy
2.0.0-beta.2
Patch Changes
- #2405
f172626Thanks @mattzcarey! - Ship CommonJS builds alongside ESM. Each package now emits both.mjs/.d.mtsand.cjs/.d.cts(via tsdownformat: ['esm', 'cjs']), and itsexportsmap adds arequirecondition sorequire('@modelcontextprotocol/…')works from CommonJS consumers. Output extensions are normalized across all packages (@modelcontextprotocol/coremoves from.js/.d.tsto.mjs/.d.mts); the public import paths are unchanged.
2.0.0-beta.1
Patch Changes
- #2402
a400259Thanks @felixweinberger! - First beta release of SDK v2 with support for the MCP 2026-07-28 specification revision. See the migration guides for upgrading from v1 (docs/migration/upgrade-to-v2.md) and adopting the 2026-07-28 revision (docs/migration/support-2026-07-28.md).
2.0.0-alpha.4
Minor Changes
- #2286
1823aaeThanks @felixweinberger! - SEP-2468 follow-up:transport.finishAuth()gains aURLSearchParamsoverload (preferred) that extractscode/iss, validatesissfirst, and on mismatch throws a sanitizedIssuerMismatchError(no callbackerror_descriptiontext); callers remain responsible forstate. Behavior change for@modelcontextprotocol/server-legacy:mcpAuthRouternow advertisesauthorization_response_iss_parameter_supported(defaulttrue;ProxyOAuthServerProviderreportsfalse) and the bundled authorize handler appendsiss(RFC 9207) to everyres.redirect(...)yourOAuthServerProvider.authorize()issues to the client'sredirect_uri. If your provider redirects another way (res.writeHead, a separate consent-page response, or a standaloneauthorizationHandler({provider})withoutissuerUrl), appendparams.issuerasissyourself or setauthorizationResponseIssParameterSupported: false— otherwise RFC 9207-compliant clients (including this SDK) will reject the callback.
2.0.0-alpha.3
Minor Changes
- #2206
e03bca9Thanks @KKonstantinov! - Add @modelcontextprotocol/server-legacy package with frozen v1 SSE transport and OAuth Authorization Server helpers for migration from v1 to v2.