Skip to content

Commit 294ea09

Browse files
Merge branch 'main' into fix/deno-zod-custom-compatibility
2 parents b31f309 + a57303c commit 294ea09

28 files changed

+1530
-743
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,19 @@ jobs:
6767
id: npm-tag
6868
run: |
6969
VERSION=$(node -p "require('./package.json').version")
70+
# Check if this is a beta release
7071
if [[ "$VERSION" == *"-beta"* ]]; then
7172
echo "tag=--tag beta" >> $GITHUB_OUTPUT
73+
# Check if this release is from a non-main branch (patch/maintenance release)
74+
elif [[ "${{ github.event.release.target_commitish }}" != "main" ]]; then
75+
# Use "release-X.Y" as tag for old branch releases (e.g., "release-1.23" for 1.23.x)
76+
# npm tags are mutable pointers to versions (like "latest" pointing to 1.24.3).
77+
# Using "release-1.23" means users can `npm install @modelcontextprotocol/sdk@release-1.23`
78+
# to get the latest patch on that minor version, and the tag updates if we
79+
# release 1.23.2, 1.23.3, etc.
80+
# Note: Can't use "v1.23" because npm rejects tags that look like semver ranges.
81+
MAJOR_MINOR=$(echo "$VERSION" | cut -d. -f1,2)
82+
echo "tag=--tag release-${MAJOR_MINOR}" >> $GITHUB_OUTPUT
7283
else
7384
echo "tag=" >> $GITHUB_OUTPUT
7485
fi

docs/server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ For more detailed patterns (stateless vs stateful, JSON response mode, CORS, DNS
7171
MCP servers running on localhost are vulnerable to DNS rebinding attacks. Use `createMcpExpressApp()` to create an Express app with DNS rebinding protection enabled by default:
7272

7373
```typescript
74-
import { createMcpExpressApp } from '@modelcontextprotocol/sdk/server/index.js';
74+
import { createMcpExpressApp } from '@modelcontextprotocol/sdk/server/express.js';
7575

7676
// Protection auto-enabled (default host is 127.0.0.1)
7777
const app = createMcpExpressApp();

package-lock.json

Lines changed: 393 additions & 623 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/sdk",
3-
"version": "1.24.1",
3+
"version": "1.24.3",
44
"description": "Model Context Protocol implementation for TypeScript",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",
@@ -133,7 +133,7 @@
133133
"supertest": "^7.0.0",
134134
"tsx": "^4.16.5",
135135
"typescript": "^5.5.4",
136-
"typescript-eslint": "^8.0.0",
136+
"typescript-eslint": "^8.48.1",
137137
"vitest": "^4.0.8",
138138
"ws": "^8.18.0"
139139
},

0 commit comments

Comments
 (0)