0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Voltaを利用しているときのNode.jsの場所

Posted at

背景

  • 本文中にもあるように、以下の場所にパスを探しに行ったらMCPのバイナリがなかった。
C:\Users\[ユーザー名]\AppData\Roaming\npm\node_modules
C:\Program Files\nodejs\node_modules

解決策

  • PC内で検索をかけたら、ちゃんとヒットした。
  • VoltaでNodeを管理していたので、Voltaのファイル配下に存在していた。
C:\Users\[ユーザー名]\AppData\Local\Volta\tools\shared\@modelcontextprotocol\server-filesystem

Claudeへの設定方法

{
    "mcpServers": {
      "filesystem": {
        "command": "node",
        "args": [
          "C:\\Users\\[ユーザー名]\\AppData\\Local\\Volta\\tools\\shared\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
          "C:\\あなたが利用したいフォルダパス"
        ]
      }
    }
  }

コーディングでの使い方

  • 参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?