在 Claude Desktop 上使用 JetBrains MCP Server

Chris YuanChris Yuan
1 min read

JetBrains 有提供 MCP Server plugin 可以讓 MCP client 使用,照 JetBrains/mcp-jetbrains 的說明文件在 Claude Desktop 設定會出現以下錯誤:

env: node: No such file or directory

原來是因為我的 Node.js 是特別安裝 v22(LTS),Claude Desktop 的 PATH 環境變數抓不到 node 的路徑,把設定檔加上 env attribute 後就可以用了

{
  "mcpServers": {
    "jetbrains": {
      "command": "npx",
      "args": [
        "-y",
        "@jetbrains/mcp-proxy"
      ],
      "env": {
        "PATH": "/opt/homebrew/opt/node@22/bin:/usr/local/bin:/usr/bin:/bin",
        "NODE_PATH": "/opt/homebrew/opt/node@22/lib/node_modules"
      }
    }
  }
}
0
Subscribe to my newsletter

Read articles from Chris Yuan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Chris Yuan
Chris Yuan