docs: add v1 to v2 migration guide (#1438)

This commit is contained in:
Felix Weinberger 2026-02-02 17:10:51 +00:00 • committed by GitHub
commit 4a0db70a42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,16 @@ pnpm --filter @modelcontextprotocol/core test -- path/to/file.test.ts
pnpm --filter @modelcontextprotocol/core test -- -t "test name"
```
## Breaking Changes
When making breaking changes, document them in **both**:
- `docs/migration.md` — human-readable guide with before/after code examples
- `docs/migration-SKILL.md` — LLM-optimized mapping tables for mechanical migration
Include what changed, why, and how to migrate. Search for related sections and group
related changes together rather than adding new standalone sections.
## Code Style Guidelines
- **TypeScript**: Strict type checking, ES modules, explicit return types