Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser tools is not working for developers that have to use NVM #80

Open
it-sha opened this issue Mar 12, 2025 · 3 comments
Open

Browser tools is not working for developers that have to use NVM #80

it-sha opened this issue Mar 12, 2025 · 3 comments

Comments

@it-sha
Copy link

it-sha commented Mar 12, 2025

As many developers, I have to use NVM on my Windows machine.
In this case, MCP can not be installed via your instructions.

I have tried to use this approach modelcontextprotocol/servers#75 (comment)
It works fine in case of brave-search mcp or fetch mcp

So my config looks like:

    "github.com/AgentDeskAI/browser-tools-server": {
      "command": "C:/Users/User/.nvm/versions/node/v20.10.0/bin/node.exe",
      "args": [
        "C:/Users/User/.nvm/versions/node/v20.10.0/bin/node_modules/@agentdeskai/browser-tools-server/dist/browser-connector.js",
        "--port",
        "3025"
      ],
      "env": {
        "PATH": "C:/Users/User/.nvm/versions/node/v20.10.0;C:/Users/User/.nvm/versions/node/v20.10.0/bin;C:/Windows/system32;C:/Windows",
        "BROWSER_TOOLS_PORT": "3025"
      },
      "disabled": false,
      "autoApprove": [],
      "startupOrder": 1
    },
    "github.com/AgentDeskAI/browser-tools-mcp": {
      "command": "C:/Users/User/.nvm/versions/node/v20.10.0/bin/node.exe",
      "args": [
        "C:/Users/User/.nvm/versions/node/v20.10.0/bin/node_modules/@agentdeskai/browser-tools-mcp/dist/mcp-server.js"
      ],
      "env": {
        "PATH": "C:/Users/User/.nvm/versions/node/v20.10.0;C:/Users/User/.nvm/versions/node/v20.10.0/bin;C:/Windows/system32;C:/Windows",
        "BROWSER_TOOLS_PORT": "3025"
      },
      "disabled": false,
      "autoApprove": [
        "getConsoleLogs"
      ],
      "startupOrder": 2
    },

In this case browser-tools-mcp works, but browser-tools-server return error:
MCP error -2: Request timed out

And getConsoleLogs returns

Error: Failed to discover browser connector server. Please ensure it's running.

Please provide instructions how to install browser tools on Windows with NVM

Environment

  • OS: Windows 11
  • Browser: Chrome
  • MCP Client: Cline in VSCode
  • Extension Version: 1.2.0
@it-sha
Copy link
Author

it-sha commented Mar 12, 2025

If you need any additional info please let me know

@LeonardoIBO
Copy link

Same thing on MacOS with Node v16.20.2. MCP initial config looks good on Cursor, the server runs and logs stuff normally on terminal, browser shows server connected, but agent trying to use any tools only get "Failed to discover browser connector server. Please ensure it's running."

@clemeverger
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants