Failed to connect to MCP server Jetbrains MCP Proxycommand "npx" not found
Before submitting your bug report
- [x] I believe this is a bug. I'll try to join the Continue Discord for questions
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Windows 11
- Continue version: 1.0.8
- IDE version: Intellij IDEA 2024.3.5 (Ultimate Edition)
- Model: MCP
- config:
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: gemini-2.5-pro-exp-03-25
provider: gemini
model: gemini-2.5-pro-exp-03-25
apiKey: AIzaSyDw-F4bF2sy5XPa1pLugxloyjQS8UTZ-lg
- name: gemini-2.0-flash-thinking-exp-01-21
provider: gemini
model: gemini-2.0-flash-thinking-exp-01-21
apiKey: AIzaSyDw-F4bF2sy5XPa1pLugxloyjQS8UTZ-lg
- name: gemini-2.0-flash-exp
provider: gemini
model: gemini-2.0-flash-exp
apiKey: AIzaSyDw-F4bF2sy5XPa1pLugxloyjQS8UTZ-lg
- name: deepseek-chat
provider: deepseek
model: deepseek-chat
apiKey: sk-39841499ee454b879e46c5f003eaa3a3
- name: deepseek-reasoner
provider: deepseek
model: deepseek-reasoner
apiKey: sk-39841499ee454b879e46c5f003eaa3a3
- name: claude-3-7-sonnet-latest
provider: anthropic
model: claude-3-7-sonnet-latest
apiKey: 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
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
docs:
- name: Jakarta EE 10 Spec
startUrl: https://jakarta.ee/specifications/platform/10/jakarta-platform-spec-10.0
mcpServers:
- name: JetBrains MCP Proxy
command: npx
args: ["-y", "@jetbrains/mcp-proxy"]
- name: Memory
command: docker
args: ["run", "-i", "-v", "claude-memory:/app/dist", "--rm", "mcp/memory"]
- name: Fetch
command: docker
args: ["run", "-i", "--rm", "mcp/fetch"]
- name: Gitlab
command: docker
args: ["run", "-e", "GITLAB_PERSONAL_ACCESS_TOKEN", "-e", "GITLAB_API_URL", "mcp/gitlab"]
env:
GITLAB_PERSONAL_ACCESS_TOKEN: ${{ inputs.GITLAB_PERSONAL_ACCESS_TOKEN }}
GITLAB_API_URL: ${{ inputs.GITLAB_API_URL }}
OR link to assistant in Continue hub:
Description
I am getting Failed to connect to MCP server Jetbrains MCP Proxycommand "npx" not found, even though I have npx cli installed and working on terminal.
PS: MCP config with docker command works correctly:
To reproduce
No response
Log output
why dont you mask the api keys you have posted or disable them? I cant reproduce your issue but here are some troubleshoots i used to resolve mine when i came across mcp connection issues. Consider the following steps
- make sure you have the requirements installed, based on programming language
- what kind of mcp you want to use i.e. remote/local
- local, set the transport to stdio
- remote, set transport to sse
Do you have link or turoial in markdown with MCP and Continue ?
@acquahackman the keys were revoked, before inputing here. As I said, I have no trouble setting up MCP with docker, but for some reason, the ones that need npx, cant work, even though I have all node tools on my path.
I have similar issues and have seen quite a few other people having similar issues whether on JetBrains or VS code. At least on windows not sure about Mac. Even though npx works and is installed locally, the extension can’t recognize it or access npx. I also wonder if it’s because I have installed node using nvm and if that is the reason.
I have similar issues and have seen quite a few other people having similar issues whether on JetBrains or VS code. At least on windows not sure about Mac. Even though npx works and is installed locally, the extension can’t recognize it or access npx. I also wonder if it’s because I have installed node using nvm and if that is the reason.
I've got the same issue (windows + VsCode + nvm) and found this: https://github.com/continuedev/continue/issues/4874#issuecomment-2769295812 Problem is that I'm using the YAML config file from the continue website, so don't know which args to add.
i get the same Problem,use the yaml config,the same config content is ok in vscode,but not work in jetbrains (pycharm goland etc)
—————— for jetbrians ide,I write the npx command address ,there is no npx cli not found error,it is occur connection close error like this:
This error is occurring on Mac as well..
Running into the same issue with docker cli.
I also encountered the same issue. Is there a plan to fix it?
same on ubuntu, also with absolute path /usr/local/bin/npx -> MCP error -1: Connection closed
this configuration should run smoothly on your windows machine.
mcpServers:
- name: Server Memory
command: "cmd"
args:
- /c
- npx
- -y
- "@modelcontextprotocol/server-memory"
Had the same issue, although npm was installed and I could run npx in the terminal outside of VSCode.
I figured that continue had an update available. So I updated continue and after it restarted, all MCP servers were green and running again.
I encountered the same issue, and updating to the pre-release version solved it. Hope this helps you.
I updated to 1.0.15 pre-released version. But the issue is still there.
For me it showing "error getting tools: not connected" after specifying full path to executables (
On my laptop, the Process Monitor shows that the plugin only looks for npx.com and npx.exe (the PATHEXT settings are ignored). Whereas, \AppData\Roaming\npm has only npx.cmd.If you use the Batch To Exe converter utility and wrap the npx.cmd file in an npx.exe file, then the error will disappear.
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"
This doesn't appear to be an npx only issue, facing the same thing for uv and uvx