docs: add Windows npx wrapper examples
This commit is contained in:
parent
f4244583a6
commit
e21dbea731
1 changed files with 178 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue