강의

멘토링

로드맵

Inflearn brand logo image

인프런 커뮤니티 질문&답변

iu님의 프로필 이미지
iu

작성한 질문수

Claude + IntelliJ로 TodoList 개발하기 - MCP 완전 정복

강의전 프로젝트 설정하기

클로드 설정 변경해도 mcp 서버 연결이 되지 않습니다.

해결된 질문

작성

·

965

0

image.pngimage.pngimage.png

 

 

위와같이 설정 저장후 재시작 하면 서버 연결 실패가 뜹니다. 원인을 알 수 있을까요?

 

intellij랑 클로드는 최신 버전입니다.

답변 8

1

iu님의 프로필 이미지
iu
질문자

https://github.com/JetBrains/mcp-jetbrains/issues/44

제가 이 이슈랑 똑같아서, 노드 v18 이전의 old version을 전부 삭제해주니 되네요.

Neo님의 프로필 이미지
Neo
지식공유자

와 ㅠㅠ 다행입니다.

관련해서 nvm 문제 이슈가 있는걸 파악해서 답변드릴려 했었는데 해결하셨다니 정말 다행입니다.

iu님의 프로필 이미지
iu
질문자

재현도 안되었을텐데, 같이 찾아주시느라 고생하셨네요.

강의도 잘들었습니다. 감사합니다. 🙂

1

Neo님의 프로필 이미지
Neo
지식공유자

위 내용과 관련된 자료를 저도 계속 찾는 중인데 제가 처음 답변한 내용으로 해결이 안된다면 저도 더 자료를 찾아봐야 할 것 같습니다.

 

관련해서 문제해결법을 찾는데로 바로 공유해드리겠습니다.

0

iu님의 프로필 이미지
iu
질문자

알려주신거 + 개인적으로 찾아본거 다 따라해봐도 안되네요..ㅠ
로그는 위에 올린 내용과 같구요..

0

iu님의 프로필 이미지
iu
질문자

전부 새로 설치해도 안되네요..ㅠㅠㅠ

0

iu님의 프로필 이미지
iu
질문자

로그보시고 답변좀부탁드립니다..

0

Neo님의 프로필 이미지
Neo
지식공유자

안녕하세요 질문자님 저도 위와 같은 오류는 처음보게 되어 많은 자료를 찾아보았는데 아래와 같이 실행해보시고 문제가 되면 다시 댓글 부탁드립니다.

1. Node.js와 npm 최신 버전으로 업그레이드

JetBrains는 구버전 Node.js와 호환되지 않는 경우가 많습니다.

nvm install --lts 

혹은

nvm use --lts

이후 IDE를 재시작하세요.


2. JetBrains AI Assistant 플러그인 재설치

  1. Preferences (설정)Plugins

  2. AI Assistant 또는 Claude 관련 플러그인 검색

  3. 제거 후 재설치, 혹은 업데이트 확인


3. npx 명령 확인 (빈 명령 호출 여부)

~/.config/JetBrains 아래 혹은 project/.idea 혹은 .jetbrains 폴더 내에 자동 실행 스크립트에서 npx 명령이 비어 있는지 확인해보세요.

예를 들어 다음과 같은 경우는 문제가 됩니다

npx

또는

"scripts": {
  "start-server": "npx"
}



위 방법대로 실행해보시고 그래도 오류가 발생한다면 Intellij IDEA & Cluade 둘다 삭제 후 재설치 해보시는걸 추천드립니다.

 

그래도 해결이 안되시면 다시 댓글 부탁드립니다. 감사합니다.

0

iu님의 프로필 이미지
iu
질문자

2025-06-18T10:40:43.423Z [jetbrains] [info] Shutting down server... { metadata: undefined }
2025-06-18T10:40:47.221Z [jetbrains] [info] Initializing server... { metadata: undefined }
2025-06-18T10:40:47.242Z [jetbrains] [info] Generated authentication token for server { metadata: undefined }
2025-06-18T10:40:47.250Z [jetbrains] [info] Server started and connected successfully { metadata: undefined }
2025-06-18T10:40:47.251Z [jetbrains] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }

ERROR: You must supply a command.

Execute binaries from npm packages.

 

이런 에러가 나오는데

image.png


node, npx 명령어 잘 되고,

 

readme.md 에서 처럼

which npx &>/dev/null && sudo ln -sf "$(which npx)" /usr/local/bin/npx

symbolic link 지정 해줬어요!

그런데 여전히 똑같이 안되구요.

 

  • mcp-server-jetbrains.log

    2025-06-18T10:40:43.423Z [jetbrains] [info] Shutting down server... { metadata: undefined }
    2025-06-18T10:40:47.221Z [jetbrains] [info] Initializing server... { metadata: undefined }
    2025-06-18T10:40:47.242Z [jetbrains] [info] Generated authentication token for server { metadata: undefined }
    2025-06-18T10:40:47.250Z [jetbrains] [info] Server started and connected successfully { metadata: undefined }
    2025-06-18T10:40:47.251Z [jetbrains] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0} { metadata: undefined }
    
    ERROR: You must supply a command.
    
    Execute binaries from npm packages.
    
      npx [options] <command>[@version] [command-arg]...
    
      npx [options] [-p|--package <package>]... <command> [command-arg]...
    
      npx [options] -c '<command-string>'
    
      npx --shell-auto-fallback [shell]
    
    
    Options:
      --package, -p          Package to be installed.                       [string]
      --cache                Location of the npm cache.                     [string]
      --always-spawn         Always spawn a child process to execute the command.
                                                                           [boolean]
      --no-install           Skip installation if a package is missing.    [boolean]
      --userconfig           Path to user npmrc.                            [string]
      --call, -c             Execute string as if inside `npm run-script`.  [string]
      --shell, -s            Shell to execute the command with, if any.
                                                           [string] [default: false]
      --shell-auto-fallback  Generate shell code to use npx as the "command not
                             found" fallback.
                                       [string] [choices: "", "bash", "fish", "zsh"]
      --ignore-existing      Ignores existing binaries in $PATH, or in the local
                             project. This forces npx to do a temporary install and
                             use the latest version.                       [boolean]
      --quiet, -q            Suppress output from npx itself. Subcommands will not
                             be affected.                                  [boolean]
      --npm                  npm binary to use for internal operations.
                                                                  [string] [default:
        "/Users/yy/.nvm/versions/node/v10.24.1/lib/node_modules/npm/bin/npm-cli.js"]
      --node-arg, -n         Extra node argument when calling a node binary.[string]
      --version, -v          Show version number                           [boolean]
      --help, -h             Show help                                     [boolean]
    
    For the full documentation, see the manual page for npx(1).
    2025-06-18T10:40:47.932Z [jetbrains] [info] Server transport closed { metadata: undefined }
    2025-06-18T10:40:47.932Z [jetbrains] [info] Client transport closed { metadata: undefined }
    2025-06-18T10:40:47.933Z [jetbrains] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log. { metadata: undefined }
    2025-06-18T10:40:47.933Z [jetbrains] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) { metadata: { context: 'connection', stack: undefined } }
    2025-06-18T10:40:47.933Z [jetbrains] [info] Client transport closed { metadata: undefined }
    
  • mcp.log

    2025-06-18T10:40:47.221Z [info] [jetbrains] Initializing server...
    2025-06-18T10:40:47.242Z [info] [jetbrains] Generated authentication token for server
    2025-06-18T10:40:47.250Z [info] [jetbrains] Server started and connected successfully
    2025-06-18T10:40:47.251Z [info] [jetbrains] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
    2025-06-18T10:40:47.932Z [info] [jetbrains] Server transport closed
    2025-06-18T10:40:47.932Z [info] [jetbrains] Client transport closed
    2025-06-18T10:40:47.933Z [info] [jetbrains] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
    2025-06-18T10:40:47.933Z [error] [jetbrains] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging)
    2025-06-18T10:40:47.933Z [info] [jetbrains] Client transport closed
    

 

  • window.log

    2025-06-18 19:40:47 [warn] Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    2025-06-18 19:40:47 [warn] Error with Permissions-Policy header: Unrecognized feature: 'document-domain'.
    2025-06-18 19:40:47 [warn] Error with Permissions-Policy header: Unrecognized feature: 'speaker-selection'.
    2025-06-18 19:40:47 [warn] Error with Permissions-Policy header: Unrecognized feature: 'web-share'.
    2025-06-18 19:40:47 [warn] Found 1 service worker(s), which are no longer used. Unregistering.
    2025-06-18 19:40:47 [warn] Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    2025-06-18 19:40:47 [warn] Error with Permissions-Policy header: Unrecognized feature: 'document-domain'.
    2025-06-18 19:40:47 [warn] Error with Permissions-Policy header: Unrecognized feature: 'speaker-selection'.
    2025-06-18 19:40:47 [warn] Error with Permissions-Policy header: Unrecognized feature: 'web-share'.
    2025-06-18 19:40:47 [warn] An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
    2025-06-18 19:40:50 [error] Potential permissions policy violation: payment is not allowed in this document.
    2025-06-18 19:40:51 [error] Uncaught Error: Cannot set properties of null (setting 'innerText')
    2025-06-18 19:40:55 [error] Potential permissions policy violation: payment is not allowed in this document.
    2025-06-18 19:41:47 [error] Could not attach to MCP server jetbrains: Error: MCP error -32001: Request timed out
    



    readme.md 에는 해당 trouble shooting 해결 방법이 없는거 같아서 여쭤봅니다.

0

안녕하세요, 인프런 AI 인턴입니다.

iu님, MCP 서버와 JetBrains 툴 간의 연결 문제가 발생하셨군요. 제공해주신 정보를 바탕으로 문제를 해결할 수 있는 몇 가지 방법을 안내드릴게요.

  1. Node.js 및 NPX 설치 확인: npx 명령어가 사용되는데, 이 경우 시스템에 Node.js와 npx가 설치되어 있어야 합니다. 다음 명령어로 설치 여부를 확인하세요:
   node -v
   npx -v

위 명령에서 버전 정보가 출력되지 않으면, Node.js 공식 사이트(https://nodejs.org/)에서 LTS 버전을 다운로드하여 설치해주세요.

  1. 명령어 경로 확인: claude_desktop_config.json 파일에 설정된 명령어가 올바른지 확인해 주세요. 명령이 올바르게 입력되었더라도 시스템 경로에 npx가 포함되어 있는지 확인해야 합니다.

  2. 권한 설정 및 네트워크 문제: MCP 서버가 실행되고 있는 포트에 접근할 수 있는지 확인해 주세요. 방화벽이나 네트워크 설정에 문제가 없는지 체크합니다.

  3. 로그 파일 확인: 문제가 지속되면, 오류 발생 시 “로그 폴더 열기”를 눌러 로그를 확인하신 후 추가 정보를 얻을 수 있습니다. 오류 메시지와 함께 기록된 로그를 통해 보다 구체적인 원인을 파악할 수 있습니다.

제공해주신 이미지와 설명을 바탕으로 MCP 설정과 관련된 기존 질문과 답변을 확인하시기를 권고드립니다. 유사한 문제가 있었던 질문이 다음 링크를 통해 확인할 수 있습니다:
- mcp를 github에서 download 받아서 intelij에서 사용 하는 순서을 알 려 주세요려 주

혹시라도 해결되지 않는 부분이 있다면, 추가적인 정보를 제공해 주시면 더욱 구체적으로 답변해 드리도록 하겠습니다.

저는 질문자님의 이해를 돕고자 지식공유자님의 기존 답변을 참고하여 유사한 답변 링크를 추천해드리고 있습니다.
현재 베타 기능으로 답변이 만족스럽지 않을 수 있는 점 양해 부탁드립니다. 🙏
추가적으로 궁금한 점이 있으시면, 이어서 질문해 주세요. 곧 지식공유자께서 답변해 주실 것입니다.

iu님의 프로필 이미지
iu

작성한 질문수

질문하기