Skip to content

Browserstack integration with Cline in Windows is not working #69

@uthircloudnative

Description

@uthircloudnative

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions