- #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. - Updated dependencies [
f172626,3c7ddaf]:- @modelcontextprotocol/server@2.0.0-beta.2
- #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). - Updated dependencies [
a400259]:- @modelcontextprotocol/server@2.0.0-beta.1
- #2286
1823aaeThanks @felixweinberger! - Add Origin header validation alongside the existing Host header validation. The server package gains framework-agnostic helpers (validateOriginHeader,localhostAllowedOrigins,originValidationResponse); the Express, Hono and Fastify adapters gainoriginValidation/localhostOriginValidationmiddleware and a newallowedOriginsoption on their app factories, which now arm Origin validation by default for localhost-class binds (mirroring the Host validation ladder; the 0.0.0.0-without-allowlist warning is unchanged). Requests without anOriginheader pass — non-browser MCP clients are unaffected — while a presentOriginthat is not allowed or cannot be parsed (including the opaquenullorigin) is rejected with403. The Node adapter shipshostHeaderValidation/originValidationrequest guards for plainnode:httpservers, which previously had no validation helpers.
- Updated dependencies [
1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,801111e,1823aae,1823aae,6cc7b1c,f0bf785,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae,1823aae]:- @modelcontextprotocol/server@2.0.0-alpha.4
-
#1898
2a7611dThanks @felixweinberger! - Add top-leveltypesfield (andtypesVersionson client/server for their subpath exports) so consumers on legacymoduleResolution: "node"can resolve type declarations. Theexportsmap remains the source of truth fornodenext/bundlerresolution. ThetypesVersionsmap includes entries for subpaths added by sibling PRs in this series (zod-schemas,stdio); those entries are no-ops until the correspondingdist/*.d.mtsfiles exist. -
Updated dependencies [
e8c7180,434b2f1,db83829,e84c3e9,42cb6b2,c59dc3a,df4b6cc,2c0c481,0fb8406,2a7611d,e15a8ef,db28156,49c0a71,c8d7401,96db044,1b53a41,9fc9070,16d13ab,55b1f06,b256546]:- @modelcontextprotocol/server@2.0.0-alpha.3
-
#1840
424cbaeThanks @KKonstantinov! - tsdown exports resolution fix -
Updated dependencies [
424cbae]:- @modelcontextprotocol/server@2.0.0-alpha.2
-
#1534
69a0626Thanks @josefaidt! - remove npm references, use pnpm -
#1534
69a0626Thanks @josefaidt! - clean up package manager usage, all pnpm -
Updated dependencies [
e86b183,0a75810,3466a9e,fcde488,462c3fc,01954e6,78bae74,689148d,f1ade75,108f2f3,dcf708d,f66a55b,69a0626,69a0626,dcf708d,0784be1,71ae3ac]:- @modelcontextprotocol/server@2.0.0-alpha.1