-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Hi,
I am trying use Browserstack MCP server with Cline in my windows machine getting below error.
node:events:502 throw er; // Unhandled 'error' event ^ Error: EPERM: operation not permitted, open
'C:\Program Files\Microsoft VS Code\NUL' Emitted 'error' event on ThreadStream instance at: at Immediate.<anonymous>
(C:<My project path>\index.js:369:12) at process.processImmediate (node:internal/timers:491:21) Node.js v22.13.1 MCP error -32000: Connection closed
My System configuration
Window 11 Enterprise
Node v22.13.1
VS Code 1.98.2
My Cline MCP server configuration.
"browserstack-mcp-server": {
"disabled": false,
"timeout": 180,
"command": "node",
"args": [
"C:\\<path>\\mcp-server-main\\dist\\index.js"
],
"env": {
"BROWSERSTACK_USERNAME": "<userName>",
"BROWSERSTACK_ACCESS_KEY": "<AccessKey>"
},
"transportType": "stdio"
}
In this case I downloaded the MCP server code to my local and started the mcp server with
node dist/index.js
When I execute above command code is getting started without any issue. But when I connect this server in Cline getting above error.
Not sure its some permission issue. I have tried to run my VS code in administrator mode but still got the above error.
Got the same error with below config as well
"browserstack-mcp-server": {
"disabled": false,
"timeout": 180,
"command": "npx",
"args": [
"/c",
"npx",
"-y",
"@browserstack/[email protected]"
],
"env": {
"BROWSERSTACK_USERNAME": "<userName>",
"BROWSERSTACK_ACCESS_KEY": "<AccessKey>"
},
"transportType": "stdio"
}