Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"drop-zod-peer-dep",
"expose-auth-server-discovery",
"extract-task-manager",
"fast-dragons-lead",
"finish-sdkerror-capability",
"fix-abort-listener-leak",
"fix-oauth-5xx-discovery",
Expand Down
7 changes: 7 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @modelcontextprotocol/client

## 2.0.0-alpha.2

### Patch Changes

- [#1840](https://github.com/modelcontextprotocol/typescript-sdk/pull/1840) [`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb) Thanks [@KKonstantinov](https://github.com/KKonstantinov)! - tsdown exports resolution
fix

## 2.0.0-alpha.1

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/client",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Model Context Protocol implementation for TypeScript - Client package",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
Expand Down
10 changes: 10 additions & 0 deletions packages/middleware/express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @modelcontextprotocol/express

## 2.0.0-alpha.2

### Patch Changes

- [#1840](https://github.com/modelcontextprotocol/typescript-sdk/pull/1840) [`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb) Thanks [@KKonstantinov](https://github.com/KKonstantinov)! - tsdown exports resolution
fix

- Updated dependencies [[`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb)]:
- @modelcontextprotocol/server@2.0.0-alpha.2

## 2.0.0-alpha.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware/express/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@modelcontextprotocol/express",
"private": false,
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟣 This is a pre-existing issue: packages/middleware/express/package.json uses npm run build in its prepack script, and packages/middleware/fastify/package.json uses npm run in both prepack and check scripts, inconsistent with the project-wide pnpm workspace setup. While unlikely to cause failures in most environments, CI/CD pipelines enforcing pnpm-only or environments without npm installed could fail at publish time; these should be changed to pnpm run.

Extended reasoning...

The project uses pnpm as its package manager throughout. PR #1534 included a changeset specifically to remove npm references and clean up package manager usage, yet the express and fastify packages were missed.

Affected locations:

  • packages/middleware/express/package.json: prepack uses npm run build
  • packages/middleware/fastify/package.json: prepack uses npm run build, and check uses npm run typecheck && npm run lint

Code path that triggers it: The prepack lifecycle hook runs automatically before pnpm publish. When a maintainer publishes these alpha packages (exactly what this PR prepares), Node invokes the prepack script which shells out to npm run build. In a pnpm-only environment, npm may not be available.

Why existing code does not prevent it: Simple human oversight - the express and fastify packages were not updated when PR #1534 cleaned up npm references elsewhere. Sibling packages (client, server, hono, node) all correctly use pnpm run.

Impact: In practice, npm run can invoke local scripts just as pnpm run, so failures are rare in developer environments. However, strict CI/CD pipelines with only pnpm installed, or environments with package manager enforcement, would fail at publish time during the prepack step.

Step-by-step proof:

  1. packages/middleware/hono/package.json: prepack = pnpm run build, check = pnpm run typecheck && pnpm run lint (correct)
  2. packages/middleware/express/package.json: prepack = npm run build (inconsistent)
  3. packages/middleware/fastify/package.json: prepack = npm run build, check = npm run typecheck && npm run lint (inconsistent)
  4. This PR bumps these packages to alpha.2 for publishing - triggering prepack is exactly the scenario where this matters

Fix: Replace npm run with pnpm run in the three affected script entries in express and fastify package.json files.

"description": "Express adapters for the Model Context Protocol TypeScript server SDK - Express middleware",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
Expand Down
10 changes: 10 additions & 0 deletions packages/middleware/fastify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @modelcontextprotocol/fastify

## 2.0.0-alpha.2

### Patch Changes

- [#1840](https://github.com/modelcontextprotocol/typescript-sdk/pull/1840) [`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb) Thanks [@KKonstantinov](https://github.com/KKonstantinov)! - tsdown exports resolution
fix

- Updated dependencies [[`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb)]:
- @modelcontextprotocol/server@2.0.0-alpha.2

## 2.0.0-alpha.1

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware/fastify/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@modelcontextprotocol/fastify",
"private": false,
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Fastify adapters for the Model Context Protocol TypeScript server SDK - Fastify middleware",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
Expand Down
10 changes: 10 additions & 0 deletions packages/middleware/hono/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @modelcontextprotocol/hono

## 2.0.0-alpha.2

### Patch Changes

- [#1840](https://github.com/modelcontextprotocol/typescript-sdk/pull/1840) [`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb) Thanks [@KKonstantinov](https://github.com/KKonstantinov)! - tsdown exports resolution
fix

- Updated dependencies [[`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb)]:
- @modelcontextprotocol/server@2.0.0-alpha.2

## 2.0.0-alpha.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware/hono/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@modelcontextprotocol/hono",
"private": false,
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Hono adapters for the Model Context Protocol TypeScript server SDK - Hono middleware",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
Expand Down
10 changes: 10 additions & 0 deletions packages/middleware/node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @modelcontextprotocol/node

## 2.0.0-alpha.2

### Patch Changes

- [#1840](https://github.com/modelcontextprotocol/typescript-sdk/pull/1840) [`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb) Thanks [@KKonstantinov](https://github.com/KKonstantinov)! - tsdown exports resolution
fix

- Updated dependencies [[`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb)]:
- @modelcontextprotocol/server@2.0.0-alpha.2

## 2.0.0-alpha.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/node",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Model Context Protocol implementation for TypeScript - Node.js middleware",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
Expand Down
7 changes: 7 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @modelcontextprotocol/server

## 2.0.0-alpha.2

### Patch Changes

- [#1840](https://github.com/modelcontextprotocol/typescript-sdk/pull/1840) [`424cbae`](https://github.com/modelcontextprotocol/typescript-sdk/commit/424cbaeee13b7fe18d38048295135395b9ad81bb) Thanks [@KKonstantinov](https://github.com/KKonstantinov)! - tsdown exports resolution
fix

## 2.0.0-alpha.1

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/server",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Model Context Protocol implementation for TypeScript - Server package",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
Expand Down
Loading