Skip to content

Replace rolldown-vite with standard Vite for Node 18+ compatibility#7

Open
Copilot wants to merge 3 commits intofeat/webfrom
copilot/sub-pr-5-again
Open

Replace rolldown-vite with standard Vite for Node 18+ compatibility#7
Copilot wants to merge 3 commits intofeat/webfrom
copilot/sub-pr-5-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

Addresses review feedback on #5: [email protected] requires Node ^20.19.0 || >=22.12.0, breaking installs for contributors on Node 18 or 20.0-20.18.

Changes

  • apps/website/package.json: Replace npm:[email protected] with vite@^6.4.1 (supports Node ^18.0.0 || ^20.0.0 || >=22.0.0)
  • package.json: Add engines.node field documenting supported versions
  • README.md: Document Node requirement in Quick Start
  • apps/mcp/package.json: Update @modelcontextprotocol/sdk from ^0.6.0 to ^1.26.0 to fix ReDoS and DNS rebinding vulnerabilities

Impact

Contributors can now install dependencies on any Node 18+ version. All security vulnerabilities resolved (npm audit reports 0 issues).


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@tomiwa-a tomiwa-a marked this pull request as ready for review February 7, 2026 20:39
Copilot AI review requested due to automatic review settings February 7, 2026 20:39
Copilot AI changed the title [WIP] Update to address review feedback on feature/web Replace rolldown-vite with standard Vite for Node 18+ compatibility Feb 7, 2026
Copilot AI requested a review from tomiwa-a February 7, 2026 20:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the repo’s Node/Vite toolchain and dependency set to address prior review feedback and resolve security issues, notably by switching the website back to standard Vite and bumping @modelcontextprotocol/sdk.

Changes:

  • Replace rolldown-vite with vite@^6.4.1 for apps/website and remove the Vite override.
  • Add a root engines.node constraint and document the Node version requirement in the README.
  • Update @modelcontextprotocol/sdk to ^1.26.0 and regenerate package-lock.json accordingly.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
package.json Adds root Node engine constraint.
package-lock.json Dependency tree refresh reflecting Vite swap + SDK bump.
apps/website/package.json Switches from rolldown-vite to standard vite.
apps/mcp/package.json Bumps @modelcontextprotocol/sdk version.
README.md Documents Node version requirements for contributors/users.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +20 to +22
"engines": {
"node": "^18.0.0 || ^20.0.0 || >=22.0.0"
},
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

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

The declared Node.js engine range allows Node 18.0–18.14.0, but the updated dependency tree includes packages that require at least Node >=18.14.1 (e.g., @hono/node-server pulled in via @modelcontextprotocol/sdk). Please tighten the engines.node constraint to match the actual minimum supported Node version (and regenerate package-lock.json afterwards).

Copilot uses AI. Check for mistakes.
## Quick Start

**Requirements:**
- Node.js `^18.0.0 || ^20.0.0 || >=22.0.0`
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

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

README Node.js requirement should match the repo’s actual minimum supported Node version. With the updated dependencies requiring >=18.14.1, the current ^18.0.0 documentation is too permissive; please update it to the same engines.node constraint used in the root package.json.

Suggested change
- Node.js `^18.0.0 || ^20.0.0 || >=22.0.0`
- Node.js `>=18.14.1`

Copilot uses AI. Check for mistakes.
"@modelcontextprotocol/sdk": "^0.6.0",
"@modelcontextprotocol/sdk": "^1.26.0",
"dotenv": "^16.3.1",
"zod": "^3.22.4"
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

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

@modelcontextprotocol/sdk@^1.26.0 declares a non-optional peer dependency on zod with range ^3.25 || ^4.0, but this workspace currently allows zod@^3.22.4. Please bump the zod dependency range here to satisfy the SDK’s peer requirement (e.g., >=3.25) to avoid peer-dep install failures/warnings and potential runtime incompatibilities.

Suggested change
"zod": "^3.22.4"
"zod": "^3.25.0"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants