Skip to content

Latest commit

 

History

History
89 lines (65 loc) · 12.7 KB

File metadata and controls

89 lines (65 loc) · 12.7 KB

@modelcontextprotocol/hono

2.0.0-beta.2

Patch Changes

  • #2405 f172626 Thanks @mattzcarey! - Ship CommonJS builds alongside ESM. Each package now emits both .mjs/.d.mts and .cjs/.d.cts (via tsdown format: ['esm', 'cjs']), and its exports map adds a require condition so require('@modelcontextprotocol/…') works from CommonJS consumers. Output extensions are normalized across all packages (@modelcontextprotocol/core moves from .js/.d.ts to .mjs/.d.mts); the public import paths are unchanged.
  • Updated dependencies [f172626, 3c7ddaf]:
    • @modelcontextprotocol/server@2.0.0-beta.2

2.0.0-beta.1

Patch Changes

  • #2402 a400259 Thanks @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

2.0.0-alpha.4

Minor Changes

  • #2286 1823aae Thanks @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 gain originValidation / localhostOriginValidation middleware and a new allowedOrigins option 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 an Origin header pass — non-browser MCP clients are unaffected — while a present Origin that is not allowed or cannot be parsed (including the opaque null origin) is rejected with 403. The Node adapter ships hostHeaderValidation / originValidation request guards for plain node:http servers, which previously had no validation helpers.

Patch Changes

2.0.0-alpha.3

Patch Changes

2.0.0-alpha.2

Patch Changes

2.0.0-alpha.1

Patch Changes