@solomonneas/proxmox-mcp 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Solomon Neas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,137 @@
1
+ # proxmox-mcp
2
+
3
+ MCP server exposing Proxmox VE read + safe-write tools via API token auth. Three-tier write gating: reads are open, writes require `confirm: true`, destructive ops would require `confirm: true` + `destructive: true` (v1 ships tier 1 + tier 2 only; tier 3 destroy ops are deferred).
4
+
5
+ ## Tools
6
+
7
+ **Reads (7):** `proxmox_status`, `proxmox_list_containers`, `proxmox_list_vms`, `proxmox_get_resource`, `proxmox_recent_tasks`, `proxmox_list_backups`, `proxmox_resource_usage`.
8
+
9
+ **Safe writes (5, require `confirm: true`):** `proxmox_start_resource`, `proxmox_stop_resource`, `proxmox_reboot_resource`, `proxmox_snapshot_resource`, `proxmox_run_backup`.
10
+
11
+ **Destructive (tier 3):** not in v1. Operations like resource deletion, snapshot rollback, and storage destruction are intentionally absent until the gate pattern has more field time.
12
+
13
+ ## Configuration
14
+
15
+ Set the following env vars. All three credential vars are required.
16
+
17
+ ```
18
+ PROXMOX_URL=https://pve.example.local:8006
19
+ PROXMOX_TOKEN_ID=pve-admin@pam!api-token-1
20
+ PROXMOX_TOKEN_SECRET=00000000-0000-0000-0000-000000000000
21
+
22
+ # Optional: skip TLS cert validation (homelab self-signed certs).
23
+ # Accepts true/1/yes (case-insensitive). Defaults to false.
24
+ PROXMOX_TLS_INSECURE=false
25
+ ```
26
+
27
+ Trailing slashes on `PROXMOX_URL` are stripped. The token secret is registered with the redactor on startup and masked from all log + error output.
28
+
29
+ ## Install
30
+
31
+ ```
32
+ npm install -g @solomonneas/proxmox-mcp
33
+ ```
34
+
35
+ Or run via npx:
36
+
37
+ ```
38
+ npx -y @solomonneas/proxmox-mcp
39
+ ```
40
+
41
+ ## Setup
42
+
43
+ ### Claude Desktop
44
+
45
+ `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
46
+
47
+ ```json
48
+ {
49
+ "mcpServers": {
50
+ "proxmox": {
51
+ "command": "npx",
52
+ "args": ["-y", "@solomonneas/proxmox-mcp"],
53
+ "env": {
54
+ "PROXMOX_URL": "https://pve.example.local:8006",
55
+ "PROXMOX_TOKEN_ID": "pve-admin@pam!api-token-1",
56
+ "PROXMOX_TOKEN_SECRET": "00000000-0000-0000-0000-000000000000",
57
+ "PROXMOX_TLS_INSECURE": "false"
58
+ }
59
+ }
60
+ }
61
+ }
62
+ ```
63
+
64
+ ### Claude Code
65
+
66
+ ```bash
67
+ claude mcp add proxmox -s user -- npx -y @solomonneas/proxmox-mcp
68
+ ```
69
+
70
+ Then export env vars in your shell (`~/.bashrc`, `~/.zshrc`) or pass `--env` flags.
71
+
72
+ ### OpenClaw
73
+
74
+ Plugin loads automatically once installed. Config goes in your `~/.openclaw/openclaw.json` `plugins.entries.proxmox` (or use the bundled `openclaw.plugin.json`):
75
+
76
+ ```json
77
+ {
78
+ "plugins": {
79
+ "entries": {
80
+ "proxmox": {
81
+ "package": "@solomonneas/proxmox-mcp",
82
+ "activation": { "onStartup": true }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ ```
88
+
89
+ Env vars from `~/.openclaw/workspace/.env` are inherited by the plugin.
90
+
91
+ ### Hermes Agent
92
+
93
+ Add to `~/.config/hermes/agents.yaml`:
94
+
95
+ ```yaml
96
+ mcp_servers:
97
+ proxmox:
98
+ command: npx
99
+ args: ["-y", "@solomonneas/proxmox-mcp"]
100
+ env:
101
+ PROXMOX_URL: https://pve.example.local:8006
102
+ PROXMOX_TOKEN_ID: pve-admin@pam!api-token-1
103
+ PROXMOX_TOKEN_SECRET: 00000000-0000-0000-0000-000000000000
104
+ PROXMOX_TLS_INSECURE: "false"
105
+ ```
106
+
107
+ ### Codex CLI
108
+
109
+ `~/.codex/config.toml`:
110
+
111
+ ```toml
112
+ [mcp_servers.proxmox]
113
+ command = "npx"
114
+ args = ["-y", "@solomonneas/proxmox-mcp"]
115
+
116
+ [mcp_servers.proxmox.env]
117
+ PROXMOX_URL = "https://pve.example.local:8006"
118
+ PROXMOX_TOKEN_ID = "pve-admin@pam!api-token-1"
119
+ PROXMOX_TOKEN_SECRET = "00000000-0000-0000-0000-000000000000"
120
+ PROXMOX_TLS_INSECURE = "false"
121
+ ```
122
+
123
+ ## Safety
124
+
125
+ This MCP uses the same three-tier write-gating pattern as the rest of the `solomonneas/*-mcp` family:
126
+
127
+ - **Tier 1 (reads):** open. No confirm flag needed. Status, listings, usage, recent tasks, backup inventory.
128
+ - **Tier 2 (safe writes):** require an explicit `confirm: true` arg. The JSON schema documents this on every write tool. Start, stop, reboot, snapshot create, run backup all live here. A hallucinated tool call without the confirm flag throws `WriteGateError` before any HTTP traffic.
129
+ - **Tier 3 (destructive):** not implemented in v1. When added, ops like snapshot rollback, resource deletion, and storage destruction will additionally require `destructive: true`. The model cannot bypass either gate from a hallucinated call.
130
+
131
+ **API token scope recommendation:** start with a read-only token (PVE Datastore.Audit + VM.Audit + Sys.Audit) and verify the read tools work end-to-end. Grade up to write privileges (VM.PowerMgmt, VM.Snapshot, VM.Backup) only after you've confirmed the redactor is masking your secret in your transcripts and that the model is honoring the confirm gate. Tokens are tied to a PVE user and can be revoked instantly from the Datacenter > Permissions > API Tokens UI.
132
+
133
+ The `PROXMOX_TLS_INSECURE=true` toggle exists for homelab self-signed certs. Leave it `false` in any environment with a real CA-signed cert.
134
+
135
+ ## License
136
+
137
+ MIT