Skip to content

docs: reframe migration guide as 'most servers: just bump' + 21 doc gaps#1910

Draft
felixweinberger wants to merge 1 commit intomainfrom
fweinberger/v2-bc-migration-docs
Draft

docs: reframe migration guide as 'most servers: just bump' + 21 doc gaps#1910
felixweinberger wants to merge 1 commit intomainfrom
fweinberger/v2-bc-migration-docs

Conversation

@felixweinberger
Copy link
Copy Markdown
Contributor

Part of the v2 backwards-compatibility series — see reviewer guide.

Migration guide currently reads as a full rewrite checklist. With the BC layer, most servers just bump and follow deprecation warnings. This reframes the top + fills 21 specific gaps found during real-repo testing.

Motivation and Context

Migration guide currently reads as a full rewrite checklist. With the BC layer, most servers just bump and follow deprecation warnings. This reframes the top + fills 21 specific gaps found during real-repo testing.

v1 vs v2 pattern & evidence

v1 pattern:

n/a  docs

v2-native:

n/a

Evidence: 21 doc gaps catalogued from real-repo migration friction.

How Has This Been Tested?

  • n/a
  • Integration: validated bump-only against 5 OSS repos via the v2-bc-integration validation branch
  • pnpm typecheck:all && pnpm lint:all && pnpm test:all green

Breaking Changes

None — additive @deprecated shim. Removed in v3.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added or updated documentation as needed

Additional context

Stacks on: none

Reframe both migration.md and migration-SKILL.md to lead with the
backwards-compatible upgrade path: bump @modelcontextprotocol/sdk to ^2
and let deprecation warnings guide further migration.

New content:
- Prerequisites section: zod ^4.2.0 runtime-crash callout,
  moduleResolution bundler/nodenext requirement, bun file: cache note
- "core is bundled" wording (never appears in node_modules)
- Zod schemas no longer exported → parseJSONRPCMessage / specTypeSchema /
  isSpecType mapping; /zod-schemas escape hatch
- Custom-method handler registration + spec-method extension warning
- Transitive-v1-dependency type-mix guidance
- OAuthError.errorCode → .code rename

Mapping-table rows added: ResourceTemplateType, ZodRawShapeCompat,
RequestInfo, FetchLike, OAuthProtectedResourceMetadata,
server/auth/errors.js, server/express.js, inMemory.js, roots/list,
completion/complete, resources/subscribe|unsubscribe|templates/list,
tasks/get|result, notifications/roots/list_changed,
notifications/elicitation/complete, callToolStream.

Absorbs the doc edits from #1834 (SSE before/after example,
InMemoryTransport export location, validator import simplification,
method-string and callToolStream additions).
@felixweinberger felixweinberger added the v2-bc v2 backwards-compatibility series label Apr 15, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2026

🦋 Changeset detected

Latest commit: f21a840

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@modelcontextprotocol/server Patch
@modelcontextprotocol/client Patch
@modelcontextprotocol/express Patch
@modelcontextprotocol/fastify Patch
@modelcontextprotocol/hono Patch
@modelcontextprotocol/node Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@felixweinberger felixweinberger added this to the v2.0.0-bc milestone Apr 15, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 15, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@1910

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@1910

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@1910

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@1910

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@1910

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@1910

commit: f21a840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2-bc v2 backwards-compatibility series

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant