You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title: Critical Bug: Roo MCP fails to launch npx-based services on Windows due to an unparsed ${APPDATA} variable.
Bug Description:
Hello, the Roo Code plugin is unable to start any MCP service that relies on npx on the Windows operating system. It consistently fails with the following error log, regardless of any system or user configuration:
code
Code
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users[YourUsername]\${APPDATA}
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users[YourUsername]\${APPDATA}'
Analysis:
The core issue is that the plugin injects a literal, unparsed ${APPDATA} string into the execution environment's path when calling npx. This is the Linux/macOS variable syntax and it is not resolved on Windows, causing npm to fail.
Troubleshooting Steps Attempted (All Failed):
We have exhaustively tried to fix this from the user side, but the bug overrides all configurations:
Setting npm_config_cache globally via .npmrc.
Setting npm_config_cache via VS Code's terminal.integrated.env.windows in settings.json.
Setting npm_config_cache as a system-level environment variable.
Using a .bat script wrapper to launch npx. Even when the script successfully changes the working directory to %USERPROFILE%, the ${APPDATA} string is still appended to the path, proving it is being injected by the plugin's execution logic itself.
Conclusion:
This is a critical bug within the plugin's process spawning logic on Windows that makes a significant portion of MCP services unusable. Please investigate how external commands are being called and ensure that environment variables are correctly resolved for the target operating system.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Title: Critical Bug: Roo MCP fails to launch npx-based services on Windows due to an unparsed ${APPDATA} variable.
Bug Description:
Hello, the Roo Code plugin is unable to start any MCP service that relies on npx on the Windows operating system. It consistently fails with the following error log, regardless of any system or user configuration:
code
Code
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users[YourUsername]\${APPDATA}
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users[YourUsername]\${APPDATA}'
Analysis:
The core issue is that the plugin injects a literal, unparsed ${APPDATA} string into the execution environment's path when calling npx. This is the Linux/macOS variable syntax and it is not resolved on Windows, causing npm to fail.
Troubleshooting Steps Attempted (All Failed):
We have exhaustively tried to fix this from the user side, but the bug overrides all configurations:
Setting npm_config_cache globally via .npmrc.
Setting npm_config_cache via VS Code's terminal.integrated.env.windows in settings.json.
Setting npm_config_cache as a system-level environment variable.
Using a .bat script wrapper to launch npx. Even when the script successfully changes the working directory to %USERPROFILE%, the ${APPDATA} string is still appended to the path, proving it is being injected by the plugin's execution logic itself.
Conclusion:
This is a critical bug within the plugin's process spawning logic on Windows that makes a significant portion of MCP services unusable. Please investigate how external commands are being called and ensure that environment variables are correctly resolved for the target operating system.
Beta Was this translation helpful? Give feedback.
All reactions