Skip to content

Commit 5f8353d

Browse files
author
Flocky
committed
docs(filesystem): add Windows npx cmd /c wrapper note
On Windows, npx is installed as npx.cmd which cannot be executed directly by Node.js child_process.spawn(). This adds a note with the cmd /c wrapper configuration for Windows users. Fixes modelcontextprotocol#3460
1 parent 72efc42 commit 5f8353d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎src/filesystem/README.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,18 @@ Note: all directories must be mounted to `/projects` by default.
250250
}
251251
```
252252

253+
> **Windows users:** On Windows, npx is installed as `npx.cmd`. Use the `cmd /c` wrapper:
254+
> ```json
255+
> {
256+
> "mcpServers": {
257+
> "filesystem": {
258+
> "command": "cmd",
259+
> "args": ["/c", "npx", "-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\username\\Desktop"]
260+
> }
261+
> }
262+
> }
263+
> ```
264+
253265
## Usage with VS Code
254266
255267
For quick installation, click the installation buttons below...
@@ -308,6 +320,18 @@ Note: all directories must be mounted to `/projects` by default.
308320
}
309321
```
310322

323+
> **Windows users:** On Windows, npx is installed as `npx.cmd`. Use the `cmd /c` wrapper:
324+
> ```json
325+
> {
326+
> "servers": {
327+
> "filesystem": {
328+
> "command": "cmd",
329+
> "args": ["/c", "npx", "-y", "@modelcontextprotocol/server-filesystem", "${workspaceFolder}"]
330+
> }
331+
> }
332+
> }
333+
> ```
334+
311335
## Build
312336
313337
Docker build:

0 commit comments

Comments
 (0)