docs: remove zigbuild references and update just commands, fix: remove Content-Length formatting causing parse errors

This commit is contained in:
Riz Ashraf committed 2026-09-29 18:24:43 +01:00
1 parent f59602a3e2
commit 4c8e2f6414
3 files changed
+89 -23

No files matched your search

+9 -9
View File
@@ -24,12 +24,13 @@ Copy-Item target\release\mcp-memory-stub.exe C:\Users\reazul.ashraf\.local\bin\m
if (-not (Get-Process mcp-memory-server -ErrorAction SilentlyContinue)) { Start-Process -FilePath "C:\Users\reazul.ashraf\.local\bin\mcp-memory-server.exe" -WindowStyle Hidden -ErrorAction SilentlyContinue }
```
**Shutting Down:** If you need to stop or restart the background daemon (e.g., to replace the executable after a recompile), you MUST NEVER use brute-force OS kill commands (e.g., Stop-Process, pkill, or kill). Instead, you MUST ALWAYS use the server's built-in graceful shutdown mechanisms:
1. The CLI flag: `--exit` (or `--restart`)
**Shutting Down & Managing:** If you need to stop, start, or restart the background daemon (e.g., to replace the executable after a recompile), you MUST NEVER use brute-force OS kill commands (e.g., Stop-Process, pkill, or kill). Instead, you MUST ALWAYS use the built-in graceful shutdown mechanisms, which are wrapped neatly in the `justfile`:
```powershell
mcp-memory-server.exe --exit
just start
just stop
just restart
```
2. The HTTP endpoint: `POST http://127.0.0.1:3000/shutdown`
Alternatively, you can gracefully shut down the server by invoking the executable with the `--exit` flag (`mcp-memory-server.exe --exit`) or hitting the HTTP endpoint (`POST http://127.0.0.1:3000/shutdown`).
`
**Step 2:** Update your Windows ~/.gemini/config/mcp_config.json to point the CLI to the ultra-lightweight stub (since the server is already running in the background):
`json
@@ -44,11 +45,10 @@ mcp-memory-server.exe --exit
`
`
### 2. WSL / Linux Installation (The Stub)
Compile the ultra-lightweight stub as a static Linux binary (from the Windows host):
`powershell
cargo zigbuild --target x86_64-unknown-linux-musl --release -p mcp-memory-stub
wsl.exe -d Ubuntu -e bash -c "cp /mnt/c/Users/reazul.ashraf/workspace/rust/mcp-memory/target/x86_64-unknown-linux-musl/release/mcp-memory-stub ~/.local/bin/mcp-memory-stub && chmod +x ~/.local/bin/mcp-memory-stub"
`
Compile the ultra-lightweight stub as a native Linux binary directly from WSL (we do not use zigbuild):
```powershell
just deploy-stub-wsl
```
`
Update your WSL ~/.gemini/config/mcp_config.json:
`json