Skip to content

Failed to connect to MCP server Filesystemcommand "npx" notfound. #4874

Closed

Description

@yidasanqian

Before submitting your bug report

Relevant environment info

- OS:win11
- Continue version:1.0.8
- IDE version:2023.3.7

Description

Unable to connect to MCP server.
exception:

Image

Failed to connect to Mcp server Filesystemcommand "npx" notfound. To use this Mcp server,install the npx CLI.

This npx command is already in the Windows environment.

Image

To reproduce

  1. go to continue
  2. click "MCP"

Log output

Activity

  1. added
    kind:bug
    on Mar 28, 2025
  2. changeonPark commented on Apr 1, 2025

    @changeonPark

    me too.. :(

    my OS is mac

  3. lvcarnevalli commented on Apr 1, 2025

    @lvcarnevalli

    Here is an alternative I am using. For example, if you want to use the new MCP released by Playwright.

    $ npm i -g @playwright/mcp@latest
    

    Change config as follows:

    "experimental": {
        "modelContextProtocolServers": [
          {
            "transport": {
              "type": "stdio",
              "command": "/Users/user/.nvm/versions/node/v18.17.1/bin/node",
              "args": [
                "/Users/user/.nvm/versions/node/v18.17.1/lib/node_modules/@playwright/mcp/cli.js"
              ]
            }  
          }
        ]
      } 
    

    Change the path according to your Node installation, you can run npm root -g
    Some suggest trying the full path of npx and adding environment variables, it depends on your issue.

  4. Patrick-Erichsen commented on May 5, 2025

    @Patrick-Erichsen
    Contributor

    Hi all, apologies for the delay here, we'll be digging into this shortly.

    In the meantime, the solution from @ozshen in this post worked:

    mcpServers:
      - name: Server Memory
    -   command: npx
    +   command: "cmd"
        args:
    +     - /c
    +     - npx
          - "-y"
          - "@modelcontextprotocol/server-memory"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

"needs-triage"kind:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions