Skip to content

Commit 8123b51

Browse files
fix: restore Node 18 support for context7 mcp (#2762)
* fix: restore Node 18 support for context7 mcp * chore: add changeset for Node 18 fix --------- Co-authored-by: Fahreddin Özcan <ozcanfahrettinn@gmail.com>
1 parent 574fc64 commit 8123b51

3 files changed

Lines changed: 21 additions & 10 deletions

File tree

.changeset/node18-context7-mcp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@upstash/context7-mcp": patch
3+
---
4+
5+
Restore Node 18 support by pinning undici to ^6.26.0 and commander to ^13.1.0, which dropped the Node 20+ engine requirements that caused a "File is not defined" crash on startup.

packages/mcp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
"@modelcontextprotocol/sdk": "^1.29.0",
4949
"@types/express": "^5.0.4",
5050
"@upstash/redis": "^1.38.0",
51-
"commander": "^14.0.0",
51+
"commander": "^13.1.0",
5252
"express": "^5.1.0",
5353
"jose": "^6.1.3",
54-
"undici": "^7.27.0",
54+
"undici": "^6.26.0",
5555
"zod": "^4.4.3"
5656
},
5757
"devDependencies": {

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)