--- notion-id: 244ca4d7-cb7b-8089-b0ab-c6f3b771d5fd --- 在wsl运行mcp配置,注意command 是wsl,如果wsl使用的是windows环境的那么会报错 必须先检查下运行环境是否在wsl,检查指令`which node` ```shell { "mcpServers": { "filesystem": { "command": "wsl", "args": [ "npx", "-y", "@modelcontextprotocol/server-filesystem", "/mnt/d/Github/snake_game" ] } } } ```