vpsnet-mcp 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -184,7 +184,7 @@ Open Cline MCP settings and add to your `cline_mcp_settings.json`:
184
184
  Use the Codex CLI:
185
185
 
186
186
  ```bash
187
- codex mcp add vpsnet npx "vpsnet-mcp"
187
+ codex mcp add vpsnet --env VPSNET_API_KEY=your_api_key_here -- npx -y vpsnet-mcp
188
188
  ```
189
189
 
190
190
  Or edit `~/.codex/config.toml`:
@@ -192,10 +192,19 @@ Or edit `~/.codex/config.toml`:
192
192
  ```toml
193
193
  [mcp_servers.vpsnet]
194
194
  command = "npx"
195
- args = ["vpsnet-mcp"]
195
+ args = ["-y", "vpsnet-mcp"]
196
+
197
+ [mcp_servers.vpsnet.env]
198
+ VPSNET_API_KEY = "your_api_key_here"
199
+ ```
200
+
201
+ **If your system's default Node.js is older than 18** (common with nvm — check with `node --version`), wrap the command so nvm loads the right version:
202
+
203
+ ```bash
204
+ codex mcp add vpsnet --env VPSNET_API_KEY=your_api_key_here -- bash -lc 'source ~/.nvm/nvm.sh >/dev/null 2>&1 && nvm use --silent 20 && npx -y vpsnet-mcp'
196
205
  ```
197
206
 
198
- Set `VPSNET_API_KEY` in your shell environment before running Codex.
207
+ > **Note:** Codex requires network access to install packages via npx. If you run Codex in a restricted sandbox without network, npx installs will fail.
199
208
 
200
209
  </details>
201
210
 
@@ -433,6 +442,22 @@ For Claude Code extension, environment variables **must** be in the `env` object
433
442
  - Keys are shown only once at creation — if lost, create a new one
434
443
  - Check that the key hasn't expired (Account > API Keys)
435
444
 
445
+ ### `deploy_ssh_key` succeeded but SSH still fails
446
+
447
+ The `deploy_ssh_key` tool injects a public key into the VPS via the hosting API, but SSH access may still fail if:
448
+
449
+ - **Wrong username:** VPS templates typically use `root`. Some OS images may use a different default user.
450
+ - **SSH daemon not configured for key auth:** Ensure `PubkeyAuthentication yes` and `PermitRootLogin yes` (or `prohibit-password`) are set in `/etc/ssh/sshd_config` on the VPS.
451
+ - **Key injection requires reprovisioning:** Some VPS templates only inject SSH keys during OS install. If `deploy_ssh_key` doesn't work on an existing VPS, try reinstalling the OS with the key (use `reinstall_os` with `sshKey`).
452
+ - **Timing:** Key deployment is async — wait 15-30 seconds after deploying before attempting SSH.
453
+
454
+ ### `fetch is not defined` or unexpected errors
455
+
456
+ This server requires **Node.js 18+** (uses the built-in `fetch` API). If your default `node` is older (common with nvm setups), either:
457
+
458
+ - Set Node 18+ as default: `nvm alias default 20`
459
+ - Or use the nvm wrapper shown in the [Codex](#codex) section
460
+
436
461
  ## License
437
462
 
438
463
  [MIT](LICENSE)
package/build/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpsnet-mcp",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "description": "MCP server for managing VPSnet.com virtual private servers",
6
6
  "bin": {
@@ -27,6 +27,9 @@
27
27
  "server-management",
28
28
  "hosting"
29
29
  ],
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
30
33
  "dependencies": {
31
34
  "@modelcontextprotocol/sdk": "^1.12.1",
32
35
  "zod": "^3.24.2"