vpsnet-mcp 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/README.md +117 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,6 +15,22 @@
15
15
  - Ordering new VPS instances
16
16
  - System status & pricing
17
17
 
18
+ ## Prerequisites
19
+
20
+ Before installing, ensure you have:
21
+
22
+ 1. **Node.js 18 or newer**
23
+ - Check: `node --version`
24
+ - Linux/macOS: [nodejs.org](https://nodejs.org) or your package manager
25
+ - Windows: `winget install OpenJS.NodeJS.LTS` or download from [nodejs.org](https://nodejs.org)
26
+ - After installing Node.js, **restart your terminal/editor**
27
+
28
+ 2. **For Claude Code (CLI or VS Code extension) users:**
29
+ - Claude Code CLI installed globally: `npm install -g @anthropic-ai/claude-code`
30
+ - Check: `claude --version`
31
+
32
+ 3. **Active [VPSnet.com](https://www.vpsnet.com) account** with an API key (see [Getting an API key](#getting-an-api-key))
33
+
18
34
  ## SSH access workflow
19
35
 
20
36
  This MCP server manages your VPS infrastructure through the VPSnet.com API, including SSH key provisioning. Once an SSH key is deployed to a VPS, the AI assistant can connect directly using its environment's terminal (e.g. Claude Code's Bash tool, Cline's terminal).
@@ -50,12 +66,15 @@ For environments without native SSH access, pair this with [mcp-server-ssh](http
50
66
  }
51
67
  ```
52
68
 
53
- ## Requirements
69
+ ## Getting started
54
70
 
55
- - Node.js 18 or newer
56
- - A [VPSnet.com](https://www.vpsnet.com) account with an API key
71
+ Choose your environment:
57
72
 
58
- ## Getting started
73
+ - [Claude Code (CLI)](#claude-code) — Terminal-based AI coding
74
+ - [Claude Code for VS Code](#claude-code-for-vs-code-extension) — VS Code extension
75
+ - [Claude Desktop](#claude-desktop) — Desktop app
76
+ - [VS Code with GitHub Copilot](#vs-code-with-github-copilot) — Copilot agent mode
77
+ - [Cline](#cline) / [Cursor](#cursor) / [Windsurf](#windsurf) / [Roo Code](#roo-code) / [Codex](#codex) — Other clients
59
78
 
60
79
  The standard config works across most MCP clients:
61
80
 
@@ -88,6 +107,47 @@ export VPSNET_API_KEY="your_api_key_here"
88
107
 
89
108
  </details>
90
109
 
110
+ <details>
111
+ <summary>Claude Code for VS Code Extension</summary>
112
+
113
+ > This section is for the **Claude Code VS Code extension**, not GitHub Copilot. If you use VS Code with GitHub Copilot, see the [VS Code with GitHub Copilot](#vs-code-with-github-copilot) section instead.
114
+
115
+ **Step 1:** Install Claude Code CLI globally (required for the extension):
116
+
117
+ ```bash
118
+ npm install -g @anthropic-ai/claude-code
119
+ ```
120
+
121
+ **Step 2:** Add the MCP server via CLI:
122
+
123
+ ```bash
124
+ claude mcp add vpsnet -- npx -y vpsnet-mcp
125
+ ```
126
+
127
+ **Step 3:** Add your API key. Edit `~/.claude.json` (or `C:\Users\<username>\.claude.json` on Windows), find the `vpsnet` server section and add the `env` block:
128
+
129
+ ```json
130
+ "vpsnet": {
131
+ "type": "stdio",
132
+ "command": "npx",
133
+ "args": ["-y", "vpsnet-mcp"],
134
+ "env": {
135
+ "VPSNET_API_KEY": "your_api_key_here",
136
+ "VPSNET_API_URL": "https://api.vpsnet.com"
137
+ }
138
+ }
139
+ ```
140
+
141
+ **Step 4:** Restart VS Code completely (Ctrl+Shift+P > "Reload Window" or close and reopen).
142
+
143
+ **Step 5:** Verify by asking Claude: *"Get my VPSnet account info"*
144
+
145
+ > **Windows users:** Use PowerShell or CMD (not Git Bash) when running `claude mcp add` commands.
146
+
147
+ > The `code --add-mcp` command does **NOT** work with Claude Code extension — that's for VS Code Copilot only.
148
+
149
+ </details>
150
+
91
151
  <details>
92
152
  <summary>Claude Desktop</summary>
93
153
 
@@ -184,7 +244,7 @@ Open Roo Code MCP settings and add to `roo_mcp_settings.json`:
184
244
  </details>
185
245
 
186
246
  <details>
187
- <summary>VS Code (Copilot)</summary>
247
+ <summary>VS Code with GitHub Copilot</summary>
188
248
 
189
249
  Install using the VS Code CLI:
190
250
 
@@ -194,6 +254,8 @@ code --add-mcp '{"name":"vpsnet","command":"npx","args":["-y","vpsnet-mcp"],"env
194
254
 
195
255
  Or add to your VS Code MCP config manually using the standard config above.
196
256
 
257
+ > This is for **GitHub Copilot** agent mode in VS Code. For the **Claude Code** extension, see the [Claude Code for VS Code Extension](#claude-code-for-vs-code-extension) section.
258
+
197
259
  </details>
198
260
 
199
261
  <details>
@@ -203,6 +265,14 @@ Follow the [Windsurf MCP documentation](https://docs.windsurf.com/windsurf/mcp).
203
265
 
204
266
  </details>
205
267
 
268
+ ## Windows Users
269
+
270
+ - Use **PowerShell or CMD** (not Git Bash) for `claude mcp add` commands
271
+ - Config file location: `C:\Users\<YourUsername>\.claude.json`
272
+ - Install Node.js: `winget install OpenJS.NodeJS.LTS` or download from [nodejs.org](https://nodejs.org)
273
+ - After installing Node.js, **restart your terminal and VS Code**
274
+ - Environment variables in Claude Code extension must be in the `env` object within `.claude.json`, NOT system environment variables
275
+
206
276
  ## Environment variables
207
277
 
208
278
  | Variable | Required | Description |
@@ -318,10 +388,51 @@ Follow the [Windsurf MCP documentation](https://docs.windsurf.com/windsurf/mcp).
318
388
  1. Log in at [vpsnet.com](https://www.vpsnet.com)
319
389
  2. Go to **Account** > **API Keys**
320
390
  3. Click **Create API Key**
321
- 4. Set the scope to match your needs and copy the key
391
+ 4. Give it a name and copy the key
322
392
 
323
393
  The key is shown only once — store it securely.
324
394
 
395
+ ## Troubleshooting
396
+
397
+ ### MCP tools not appearing in Claude Code VS Code extension
398
+
399
+ 1. Install Claude Code CLI: `npm install -g @anthropic-ai/claude-code`
400
+ 2. Verify: `claude --version` should show a version number
401
+ 3. Add server via CLI: `claude mcp add vpsnet -- npx -y vpsnet-mcp`
402
+ 4. **Completely restart VS Code** (not just reload window)
403
+ 5. Check `~/.claude.json` for correct configuration
404
+
405
+ ### `claude: command not found`
406
+
407
+ Install the Claude Code CLI globally:
408
+
409
+ ```bash
410
+ npm install -g @anthropic-ai/claude-code
411
+ ```
412
+
413
+ Verify your PATH includes npm global packages. On Windows, restart your terminal after installing.
414
+
415
+ ### Environment variables not working
416
+
417
+ For Claude Code extension, environment variables **must** be in the `env` object within `.claude.json`, NOT system environment variables:
418
+
419
+ ```json
420
+ "vpsnet": {
421
+ "type": "stdio",
422
+ "command": "npx",
423
+ "args": ["-y", "vpsnet-mcp"],
424
+ "env": {
425
+ "VPSNET_API_KEY": "your_actual_key_here"
426
+ }
427
+ }
428
+ ```
429
+
430
+ ### API key errors
431
+
432
+ - Verify the key is correct (starts with `vpsnet_`)
433
+ - Keys are shown only once at creation — if lost, create a new one
434
+ - Check that the key hasn't expired (Account > API Keys)
435
+
325
436
  ## License
326
437
 
327
438
  [MIT](LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpsnet-mcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "MCP server for managing VPSnet.com virtual private servers",
6
6
  "bin": {