docs: add Windows npx wrapper examples

This commit is contained in:
ShionElia 2026-03-21 04:10:32 +00:00
commit e21dbea731

View file

@ -159,6 +159,24 @@ Add this to your claude_desktop_config.json:
}
```
On Windows, use `cmd /c` to launch `npx`:
```json
{
"mcpServers": {
"memory": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}
```
#### NPX with custom setting
The server can be configured using the following environment variables:
@ -180,6 +198,27 @@ The server can be configured using the following environment variables:
}
```
On Windows, use:
```json
{
"mcpServers": {
"memory": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-memory"
],
"env": {
"MEMORY_FILE_PATH": "/path/to/custom/memory.jsonl"
}
}
}
}
```
- `MEMORY_FILE_PATH`: Path to the memory storage JSONL file (default: `memory.jsonl` in the server directory)
# VS Code Installation Instructions
@ -216,6 +255,24 @@ Alternatively, you can add the configuration to a file called `.vscode/mcp.json`
}
```
On Windows, use:
```json
{
"servers": {
"memory": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}
```
#### Docker
```json