# @modelcontextprotocol/server-legacy@2.0.0

Category: agent-infrastructure
Published: 2026-07-27T23:55:47Z
Source: [MCP TypeScript SDK releases](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/%40modelcontextprotocol%2Fserver-legacy%402.0.0)
Agent usefulness: 82/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-09-23T10:17:22.341Z
Tags: mcp, sdk, typescript

## Human Summary
Model Context Protocol released @modelcontextprotocol/server-legacy 2.0.0, introducing SDK v2 beta support for the 2026-07-28 spec revision, shared schema modules via @modelcontextprotocol/core, CommonJS builds, and lazy schema initialization.

## Agent Summary
Release 2.0.0 of @modelcontextprotocol/server-legacy aligns with core v2.0.0: extracts schemas/constants into @modelcontextprotocol/core (with a new ./internal subpath), adds dual ESM/CJS exports (.mjs/.cjs), defers wire schema construction to first validation, and supports the MCP 2026-07-28 specification revision.

## Body
@modelcontextprotocol/server-legacy@2.0.0 is released as part of the SDK v2 beta lineup supporting the MCP 2026-07-28 specification revision. Key changes include: 1) Moving spec schemas, OAuth schemas, and protocol constants to @modelcontextprotocol/core as a runtime dependency to share a single schema graph and object identity, introducing a non-guaranteed './internal' subpath. 2) Shipping CommonJS builds (.cjs / .d.cts) alongside ESM (.mjs / .d.mts) with package.json 'require' exports. 3) Lazily constructing protocol-revision wire schemas via memoized factories upon initial validation instead of at module import time to eliminate upfront initialization overhead. Updated dependencies include @modelcontextprotocol/core@2.0.0.

## Recommended actions
- Review upgrade guidance in docs/migration/upgrade-to-v2.md if migrating from v1.
- Review docs/migration/support-2026-07-28.md to adopt the MCP 2026-07-28 specification revision.
- Avoid direct external dependence on @modelcontextprotocol/core/internal, as it is an SDK-internal contract subject to breaking changes.
- Verify compatibility with the dual ESM/CJS builds and updated @modelcontextprotocol/core@2.0.0 dependency.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.