better-caprover-mcp 0.1.2 → 0.1.4
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 +29 -20
- package/dist/main.js +5320 -114
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -189,25 +189,31 @@ The mode decides which operations the client sees at all. Only the person can ch
|
|
|
189
189
|
|
|
190
190
|
| Mode | Operations available |
|
|
191
191
|
| --- | --- |
|
|
192
|
-
| `readonly` (default) | The
|
|
193
|
-
| `operate` | Read, plus the
|
|
194
|
-
| `admin` | Read, change, plus `delete_app` |
|
|
192
|
+
| `readonly` (default) | The 29 read operations |
|
|
193
|
+
| `operate` | Read, plus the 24 that change something and can be changed back |
|
|
194
|
+
| `admin` | Read, change, plus the 6 that delete (`delete_app`, `remove_custom_domain`, `delete_projects`, `delete_one_click_repo`, `delete_registry`, `delete_theme`) |
|
|
195
|
+
| `admin` with `CAPROVER_MCP_ALLOW_CRITICAL=1` | All of the above, plus the 8 critical ones |
|
|
196
|
+
|
|
197
|
+
`CAPROVER_MCP_TOOLSETS` then picks which groups of operations are registered. The default is `core,apps,domains,oneclick`; the other toolsets are opt-in so the tool list stays short. Ask `get_access` what is on and why a call was denied.
|
|
195
198
|
|
|
196
199
|
## Operations
|
|
197
200
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
|
201
|
-
|
|
|
202
|
-
| `
|
|
203
|
-
| `
|
|
204
|
-
| `
|
|
205
|
-
| `
|
|
206
|
-
| `
|
|
207
|
-
| `
|
|
208
|
-
| `
|
|
209
|
-
| `
|
|
210
|
-
| `
|
|
201
|
+
67 operations in ten toolsets. The tier and toolset of every one, and the SDK method behind it, are in [`docs/product/risk-tiers.md`](docs/product/risk-tiers.md). A changing call takes `dry_run`; a deleting or critical call returns a preview and a `confirmation_token` first, and asks the person through the client when the client supports it.
|
|
202
|
+
|
|
203
|
+
| Toolset | Operations |
|
|
204
|
+
| --- | --- |
|
|
205
|
+
| `core` | `get_overview`, `get_access`, `get_guide`; `list_apps`, `get_app`, `get_app_runtime`, `get_app_logs`, `get_build_logs` (env var values are never returned, only `isSet`; logs are redacted) |
|
|
206
|
+
| `apps` | `list_apps_runtime`; `create_app`, `deploy_image`, `deploy_archive`, `start_build`, `set_env_vars`, `scale_app`, `rename_app`; `delete_app` |
|
|
207
|
+
| `domains` | `add_custom_domain`, `enable_ssl`, `enable_root_ssl`, `set_force_ssl`; `remove_custom_domain`; critical: `update_root_domain` |
|
|
208
|
+
| `projects` | `list_projects`, `create_project`, `update_project`, `delete_projects` |
|
|
209
|
+
| `oneclick` | `list_one_click_apps`, `get_one_click_app`, `list_one_click_repos`, `add_one_click_repo`, `delete_one_click_repo`, `deploy_one_click`, `get_one_click_deploy_progress` |
|
|
210
|
+
| `registries` | `list_registries` (never a password), `add_registry`, `update_registry`, `delete_registry`, `set_default_push_registry`; critical: `enable_self_hosted_registry`, `disable_self_hosted_registry` |
|
|
211
|
+
| `cluster` | `list_nodes`, `get_load_balancer`; critical: `add_node` |
|
|
212
|
+
| `maintenance` | `get_disk_usage`, `list_unused_images`, `get_disk_cleanup`, `set_disk_cleanup`, `get_nginx_config`; critical: `delete_images`, `set_nginx_config`, `update_caprover` |
|
|
213
|
+
| `monitoring` | `get_net_data` (never a token), `set_net_data`, `get_go_access`, `set_go_access`, `list_go_access_reports` |
|
|
214
|
+
| `account` | `get_two_factor_status`, `get_pro_state`, `set_pro_api_key`, `list_pro_alerts`, `list_themes`, `get_current_theme`, `set_current_theme`, `save_theme`, `delete_theme`; critical: `set_password` |
|
|
215
|
+
|
|
216
|
+
Four SDK methods are kept for later, each with its reason in `scripts/sdk-coverage.json`: `updateConfigAndSave` (the `code` surface), `setProConfigs`, `getGoAccessReport` and `createBackup`. `get_app_runtime` and `list_apps_runtime` need a CapRover version that has the runtime endpoint (1.15.5 has none).
|
|
211
217
|
|
|
212
218
|
## Configuration
|
|
213
219
|
|
|
@@ -216,7 +222,10 @@ The mode decides which operations the client sees at all. Only the person can ch
|
|
|
216
222
|
| `CAPROVER_URL` | none | The address of your CapRover, with `http://` or `https://`. Only its origin is used |
|
|
217
223
|
| `CAPROVER_PASSWORD` | none | The CapRover password |
|
|
218
224
|
| `CAPROVER_MCP_MODE` | `readonly` | `readonly`, `operate` or `admin` |
|
|
219
|
-
| `CAPROVER_MCP_ALLOW_CRITICAL` | off | Set to `1` to unlock critical operations in `admin` mode
|
|
225
|
+
| `CAPROVER_MCP_ALLOW_CRITICAL` | off | Set to `1` to unlock the critical operations in `admin` mode (change the password, update CapRover, the root domain, nginx, add a node, the self-hosted registry, delete images) |
|
|
226
|
+
| `CAPROVER_MCP_SURFACE` | `tools` | How the operations are exposed: `tools` (one named tool per operation, shaped by `CAPROVER_MCP_TOOLSETS`), `code` (two tools, `search` and `execute`: the model writes a short script that runs in a sandbox and covers every operation the mode allows) or `both`. Anything else stops the server |
|
|
227
|
+
| `CAPROVER_MCP_TOOLSETS` | `core,apps,domains,oneclick` | Comma-separated toolsets to register: `core`, `apps`, `domains`, `projects`, `oneclick`, `registries`, `cluster`, `maintenance`, `monitoring`, `account`. An unknown name stops the server and lists the valid ones |
|
|
228
|
+
| `CAPROVER_MCP_LOG_LEVEL` | `info` | `error`, `info` or `debug`. `info` logs the start (transport, mode, what is set); `debug` also logs the configuration (CapRover address, HTTP host and port, whether a token is set). Never the password or the token. Audit lines are always written |
|
|
220
229
|
| `CAPROVER_MCP_TRANSPORT` | `stdio` | `stdio` or `http`. `http` makes a plain start (no arguments) serve Streamable HTTP, same as `serve --http` |
|
|
221
230
|
| `CAPROVER_MCP_HTTP_TOKEN` | none | Bearer secret for `serve --http` (minimum 8 characters); required for non-local HTTP bind |
|
|
222
231
|
| `CAPROVER_MCP_HTTP_HOST` | `127.0.0.1` | Address for `serve --http` |
|
|
@@ -289,10 +298,10 @@ The endpoint it uses is missing in older CapRover versions (1.15.5 has none). Th
|
|
|
289
298
|
|
|
290
299
|
## Roadmap
|
|
291
300
|
|
|
292
|
-
- [x] **Core:** 14 operations on the `tools` surface, access modes, `dry_run`, confirmation token, redaction, tested against a real CapRover.
|
|
293
|
-
- [
|
|
301
|
+
- [x] **Core:** the first 14 operations on the `tools` surface, access modes, `dry_run`, confirmation token, redaction, tested against a real CapRover.
|
|
302
|
+
- [x] **The rest of the CapRover API:** [#3](https://github.com/guilhermebkel/better-caprover-mcp/issues/3) — 67 operations in ten toolsets; four SDK methods stay planned, with reasons.
|
|
294
303
|
- [ ] **Diagnostics** (`diagnose_app`, `find_issues`): [#4](https://github.com/guilhermebkel/better-caprover-mcp/issues/4)
|
|
295
|
-
- [ ] **Code Mode** (`search` and `execute` in a sandbox) and a benchmark: [#5](https://github.com/guilhermebkel/better-caprover-mcp/issues/5)
|
|
304
|
+
- [ ] **Code Mode** (`search` and `execute` in a sandbox) and a benchmark: [#5](https://github.com/guilhermebkel/better-caprover-mcp/issues/5) — the `code` surface and the sandbox are built (`CAPROVER_MCP_SURFACE`); the benchmark that picks the default is still to run
|
|
296
305
|
- [x] **Remote HTTP (one CapRover server per MCP instance):** [#6](https://github.com/guilhermebkel/better-caprover-mcp/issues/6) — multi-server in one process is out of scope; run one instance per Captain.
|
|
297
306
|
|
|
298
307
|
## Contributing
|