Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ A Model Context Protocol server for interacting with MongoDB Databases and Mongo

## Prerequisites

- Node.js (v20.19.0 or later)
- Node.js
- At least 20.19.0
- When using v22 then at least v22.12.0
- Otherwise any version 23+

```shell
node -v
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
"zod": "^3.25.76"
},
"engines": {
"node": ">=20.19.0"
"node": "^20.19.0 || ^22.12.0 || >= 23.0.0"
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

The version constraint syntax is inconsistent. The third range uses '>= 23.0.0' while the first two use caret ranges (^). Consider using '^23.0.0' for consistency, or if you specifically need all v23+ versions, document why this range differs from the others.

Suggested change
"node": "^20.19.0 || ^22.12.0 || >= 23.0.0"
"node": "^20.19.0 || ^22.12.0 || ^23.0.0"

Copilot uses AI. Check for mistakes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Versions >= 23.0.0 support requiring esm by default

}
}
Loading