[Bug]: failed to initialize server: (node:1404546) ExperimentalWarning: Importing JSON modules is an experimental feature
Closed this issue · 4 comments
medeirosjoaquim commented
Version
0.1.3
App
- Cursor
- Windsurf
- VSCode
- VSCode Insiders
- Claude Desktop
- Other
Affected Models (if applicable)
- Claude 3.5 Sonnet
- Claude 3.7 Sonnet
- GPT-4a
- o4-mini
- Other
Bug Description
Can't use in Windsurf or Claude Code. Tried with node v.20 and node v.24, on macOs and Linux
Error:
Error: failed to initialize server: (node:1404546) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time (Use `node --trace-warnings ...` to show where the warning was created)
/home/user/.npm/_npx/191c568aa03d4fb8/node_modules/@mongodb-js/oidc-plugin/dist/plugin.js:44 const openid_client_1 = require("openid-client"); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module
gagik commented
Could you confirm that the npx version you're using is also updated when you switched to the v24 Node version?
The error seems related to the older Node versions so it seems like your NodeJS setup may not be selecting the correct one.
github-actions commented
Thanks for opening this issue. The ticket MCP-77 was created for internal tracking.
pigd0g commented
I needed to upgrade my node version to at least 22.12
nirinchev commented
With 0.2.0 we're correctly listing the minimum supported node version.