vpsnet-mcp 1.0.2 → 1.0.3
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 +18 -2
- package/build/index.js +21 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# vpsnet-mcp
|
|
2
2
|
|
|
3
|
-
[Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for managing [VPSnet.com](https://www.vpsnet.com) virtual private servers. Gives AI assistants full control over your VPS infrastructure —
|
|
3
|
+
[Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for managing [VPSnet.com](https://www.vpsnet.com) virtual private servers. Gives AI assistants full control over your VPS infrastructure — order servers, manage plans, deploy SSH keys, and directly access your servers via SSH for software installation and configuration.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -9,11 +9,27 @@
|
|
|
9
9
|
- VPS lifecycle (start, stop, restart, reinstall OS)
|
|
10
10
|
- Plan changes (free upgrades/downgrades)
|
|
11
11
|
- DNS (rDNS/PTR records)
|
|
12
|
-
- SSH key
|
|
12
|
+
- SSH key management — deploy keys and gain direct server access
|
|
13
|
+
- API key management
|
|
13
14
|
- Backups, billing, invoices
|
|
14
15
|
- Ordering new VPS instances
|
|
15
16
|
- System status & pricing
|
|
16
17
|
|
|
18
|
+
## SSH access workflow
|
|
19
|
+
|
|
20
|
+
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).
|
|
21
|
+
|
|
22
|
+
**Typical flow:**
|
|
23
|
+
|
|
24
|
+
1. AI reads the local machine's public key (`~/.ssh/id_rsa.pub`)
|
|
25
|
+
2. Uploads it to VPSnet.com via `create_ssh_key`
|
|
26
|
+
3. Deploys it to a VPS via `deploy_ssh_key` (or passes it when ordering with `order_service`)
|
|
27
|
+
4. Connects directly: `ssh root@<vps_ip>`
|
|
28
|
+
|
|
29
|
+
Most AI coding environments (Claude Code, Cline, Cursor, Codex) have built-in terminal access, so the AI can SSH into your VPS immediately after deploying a key — no extra tools needed.
|
|
30
|
+
|
|
31
|
+
For environments without native SSH access, consider pairing this with a dedicated SSH MCP server for direct server connectivity.
|
|
32
|
+
|
|
17
33
|
## Requirements
|
|
18
34
|
|
|
19
35
|
- Node.js 18 or newer
|
package/build/index.js
CHANGED
|
@@ -18,16 +18,27 @@ const server = new McpServer({ name: "vpsnet", version: "1.0.0" }, {
|
|
|
18
18
|
"After placing an order, wait 10-30 seconds before attempting SSH — the VPS needs time to boot and start SSH daemon.",
|
|
19
19
|
"",
|
|
20
20
|
"## SSH key workflow (IMPORTANT for deploying software to VPS)",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
21
|
+
"",
|
|
22
|
+
"### When the user asks you to deploy, install, or configure something INSIDE a VPS:",
|
|
23
|
+
"You MUST deploy YOUR OWN SSH key first, then connect directly via SSH.",
|
|
24
|
+
"After deploying your key, you can INSTANTLY access the VPS — no extra tools needed.",
|
|
25
|
+
"Most AI environments (Claude Code, Cline, Cursor, Codex) have a built-in terminal/bash tool.",
|
|
26
|
+
"Use that terminal to run: ssh -o StrictHostKeyChecking=no root@<vps_ip>",
|
|
27
|
+
"",
|
|
28
|
+
"### Step-by-step SSH key flow:",
|
|
29
|
+
"1. Read YOUR local machine's public key from ~/.ssh/id_rsa.pub or ~/.ssh/id_ed25519.pub",
|
|
30
|
+
"2. Upload it via create_ssh_key(name, public_key) — name it descriptively e.g. 'claude-code-key'",
|
|
31
|
+
"3. Deploy it to the VPS via deploy_ssh_key(orderNo, ssh_key_id) OR pass sshKey when ordering a new VPS",
|
|
32
|
+
"4. SSH directly using your environment's terminal: ssh -o StrictHostKeyChecking=no root@<vps_ip>",
|
|
33
|
+
"5. Now you can run any commands inside the VPS (apt install, configure services, deploy apps, etc.)",
|
|
34
|
+
"",
|
|
35
|
+
"### Important SSH notes:",
|
|
36
|
+
"- ALWAYS prefer sshKey over rootPassword — it's more secure and enables direct access.",
|
|
37
|
+
"- NEVER use someone else's SSH key — always read from the local machine where you are running.",
|
|
38
|
+
"- Use -o StrictHostKeyChecking=no when connecting to newly created VPS to avoid host key prompts.",
|
|
39
|
+
"- order_service uses 'sshKey' (camelCase) but deploy_ssh_key uses 'ssh_key' (snake_case) — different field names!",
|
|
40
|
+
"- Only fall back to rootPassword if the local machine has no SSH key (e.g. Windows without OpenSSH).",
|
|
41
|
+
"- If your environment has no terminal/bash access at all, consider using a dedicated SSH MCP server for connectivity.",
|
|
31
42
|
"",
|
|
32
43
|
"## Plan changes",
|
|
33
44
|
"Plan changes are FREE — remaining time is recalculated (upgrade = shorter expiry, downgrade = longer expiry).",
|