ecp-mcp-server 0.5.1 → 0.6.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/CHANGELOG.md +8 -0
- package/README.md +2 -1
- package/dist/index.js +2 -0
- package/dist/tools/n8n.js +79 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0 — 2026-11-30
|
|
4
|
+
|
|
5
|
+
Plugin 0.3.0 uses this release.
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- n8n tools for ECP's one-click n8n installer: `ecp_n8n_status`, `ecp_n8n_install`, `ecp_n8n_activate`, `ecp_n8n_create_owner`, `ecp_n8n_update`, `ecp_n8n_rollback`, `ecp_n8n_restart`, `ecp_n8n_uninstall`. Install and update run in the background; the domain is connected only after the owner account is created. There's no tool for the encryption key, which stays on ECP's n8n page. n8n's Code node runs JavaScript only. Needs the ECP and EHM releases with the n8n installer; on older ECP these tools answer with an error.
|
|
9
|
+
- Plugin: the launch-website skill walks through installing n8n.
|
|
10
|
+
|
|
3
11
|
## 0.5.1 — 2026-11-26
|
|
4
12
|
|
|
5
13
|
### Fixed
|
package/README.md
CHANGED
|
@@ -17,12 +17,13 @@ It talks to ECP's own API (the same one ECP's web UI uses) as the hosting accoun
|
|
|
17
17
|
- **asdf** — language runtime version management
|
|
18
18
|
- **Git integrations** — connect GitHub/GitLab/Bitbucket, browse repos, manage per-app deploy webhooks
|
|
19
19
|
- **Managed WordPress** — full install, status/event history, cache mode and purge, security status, XML-RPC toggle, admin password reset, one-time wp-admin login
|
|
20
|
+
- **n8n** — one-click install of n8n (workflow automation) on one of the account's domains, owner account setup, update with rollback, restart, uninstall
|
|
20
21
|
- **Resource monitoring / notifications** — resource status, current-cycle bandwidth use
|
|
21
22
|
- **storage.bd** — backup config and job status
|
|
22
23
|
- **cPanel import** — discover and import sites from a cPanel server over SSH
|
|
23
24
|
- **Shell** — run a command in the account's container and get its exit code and output, with your approval for every command (see Security notes)
|
|
24
25
|
|
|
25
|
-
**What it deliberately does *not* do:** start a local file backup or restore. Those need a live browser connection for progress; use ECP's own web UI.
|
|
26
|
+
**What it deliberately does *not* do:** start a local file backup or restore. Those need a live browser connection for progress; use ECP's own web UI. It also doesn't hand out n8n's encryption key, which decrypts every credential saved in n8n and would end up in the chat transcript; download it from ECP's n8n page.
|
|
26
27
|
|
|
27
28
|
## Easiest: the ECP plugin for Claude
|
|
28
29
|
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import { mssqlTools, postgresTools } from "./tools/relational-engines.js";
|
|
|
15
15
|
import { systemTools } from "./tools/system.js";
|
|
16
16
|
import { asdfTools } from "./tools/asdf.js";
|
|
17
17
|
import { wordpressHostingTools } from "./tools/wordpress-hosting.js";
|
|
18
|
+
import { n8nTools } from "./tools/n8n.js";
|
|
18
19
|
import { gitIntegrationTools } from "./tools/git-integrations.js";
|
|
19
20
|
import { resourceMonitorTools } from "./tools/resource-monitor.js";
|
|
20
21
|
import { storageBdTools } from "./tools/storage-bd.js";
|
|
@@ -78,6 +79,7 @@ const allTools = [
|
|
|
78
79
|
...systemTools,
|
|
79
80
|
...asdfTools,
|
|
80
81
|
...wordpressHostingTools,
|
|
82
|
+
...n8nTools,
|
|
81
83
|
...gitIntegrationTools,
|
|
82
84
|
...resourceMonitorTools,
|
|
83
85
|
...storageBdTools,
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Maps to router.N8n's routes (ecp-go) - ECP's one-click n8n installer, see
|
|
3
|
+
// ecp-go/docs/N8N_ONE_CLICK.md. Install and update only *prepare* a version in
|
|
4
|
+
// the background (Node + npm install, several minutes); activate is a separate
|
|
5
|
+
// short call that switches to it. The public domain is only pointed at n8n
|
|
6
|
+
// once its owner account exists (ecp_n8n_create_owner), so nobody else can
|
|
7
|
+
// claim a fresh instance.
|
|
8
|
+
//
|
|
9
|
+
// GET /n8n/encryption-key is deliberately not exposed: the key decrypts every
|
|
10
|
+
// credential saved in n8n, and a tool would put it in the chat transcript.
|
|
11
|
+
// The ECP n8n page has a download button for it.
|
|
12
|
+
export const n8nTools = [
|
|
13
|
+
{
|
|
14
|
+
name: "ecp_n8n_status",
|
|
15
|
+
description: "Get the account's n8n install state: installed version, latest on npm and whether an update is available, running, URL, the background job (install/update: state running|prepared|failed, step, error), " +
|
|
16
|
+
"needs_owner (domain not connected yet - call ecp_n8n_create_owner), existing_data (kept ~/.n8n from an earlier install), and while not installed EHM's preflight (whether the account has enough memory and the installer is on). " +
|
|
17
|
+
"Call it first, and poll it while a job is running.",
|
|
18
|
+
inputSchema: {},
|
|
19
|
+
handler: async (_args, client) => client.request("GET", "n8n/status"),
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "ecp_n8n_install",
|
|
23
|
+
description: "Start installing n8n (workflow automation) on one of the account's domains. Use a domain or subdomain that isn't used by another site - its traffic will go to n8n. " +
|
|
24
|
+
"Runs in the background for about 5-10 minutes (Node.js + npm install). Poll ecp_n8n_status until job.state is 'prepared', then call ecp_n8n_activate, wait for running, then ecp_n8n_create_owner. " +
|
|
25
|
+
"Omit version for the latest release. After a failed install, call it again to retry (the domain is reused). Needs ECP with the n8n installer.",
|
|
26
|
+
inputSchema: { domain: z.string(), version: z.string().optional() },
|
|
27
|
+
handler: async (args, client) => client.request("POST", "n8n/install", { body: { domain: args.domain, version: args.version } }),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "ecp_n8n_update",
|
|
31
|
+
description: "Start preparing a newer n8n version next to the running one (n8n keeps running meanwhile). Omit version for the latest. Poll ecp_n8n_status until job.state is 'prepared', then call ecp_n8n_activate to switch - " +
|
|
32
|
+
"that stops n8n briefly and backs up its database first, so ecp_n8n_rollback can undo it.",
|
|
33
|
+
inputSchema: { version: z.string().optional() },
|
|
34
|
+
handler: async (args, client) => client.request("POST", "n8n/update", { body: { version: args.version } }),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "ecp_n8n_activate",
|
|
38
|
+
description: "Switch to the version prepared by ecp_n8n_install or ecp_n8n_update (only once ecp_n8n_status shows job.state 'prepared'). " +
|
|
39
|
+
"After an install it starts n8n but doesn't connect the domain yet: wait until ecp_n8n_status shows running, then call ecp_n8n_create_owner. " +
|
|
40
|
+
"After an update it restarts n8n on the new version, and puts the old one back if that fails.",
|
|
41
|
+
inputSchema: {},
|
|
42
|
+
handler: async (_args, client) => client.request("POST", "n8n/activate"),
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "ecp_n8n_create_owner",
|
|
46
|
+
description: "Create n8n's owner (admin) account, then connect the domain to n8n. Call it once ecp_n8n_status shows running and needs_owner. Until then the domain doesn't reach n8n, so nobody else can claim the instance. " +
|
|
47
|
+
"Ask the user for the email, name and password they want for n8n's login - don't make up a password unless they ask you to, and then tell them what it is. n8n requires 8-64 characters with at least one number and one capital letter. " +
|
|
48
|
+
"The password goes straight to n8n and isn't stored by ECP. email, first_name and password are required for a new owner. Over kept data that already has an owner (existing_data), call it without fields: it only connects the domain. " +
|
|
49
|
+
"A 409 saying n8n already has an owner ECP didn't create means someone may have reached n8n first - the domain stays unconnected; tell the user (the fix is to uninstall with delete_data and install again) rather than retrying.",
|
|
50
|
+
inputSchema: {
|
|
51
|
+
email: z.string().optional(),
|
|
52
|
+
first_name: z.string().optional(),
|
|
53
|
+
last_name: z.string().optional(),
|
|
54
|
+
password: z.string().optional(),
|
|
55
|
+
},
|
|
56
|
+
handler: async (args, client) => client.request("POST", "n8n/owner", {
|
|
57
|
+
body: { email: args.email, first_name: args.first_name, last_name: args.last_name, password: args.password },
|
|
58
|
+
}),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "ecp_n8n_rollback",
|
|
62
|
+
description: "Go back to the n8n version that ran before the last update, together with the copy of n8n's database taken just before it. Anything changed in n8n since that update (workflows, executions, credentials) is lost.",
|
|
63
|
+
inputSchema: { confirm: z.literal(true) },
|
|
64
|
+
handler: async (_args, client) => client.request("POST", "n8n/rollback"),
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "ecp_n8n_restart",
|
|
68
|
+
description: "Restart n8n. It also picks up the domain's current SSL state, so call it after adding a certificate to switch n8n to https.",
|
|
69
|
+
inputSchema: {},
|
|
70
|
+
handler: async (_args, client) => client.request("POST", "n8n/restart"),
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "ecp_n8n_uninstall",
|
|
74
|
+
description: "Uninstall n8n: removes the app and its process, and the domain goes back to the account's default site. n8n's data in ~/.n8n (workflows, credentials, encryption key) is kept, so a later install picks it up again, " +
|
|
75
|
+
"unless delete_data is true - that deletes it for good, so only do it when the user has explicitly asked to delete their n8n data, and make sure they have downloaded the encryption key from the ECP n8n page if they might need it.",
|
|
76
|
+
inputSchema: { delete_data: z.boolean().optional(), confirm: z.literal(true) },
|
|
77
|
+
handler: async (args, client) => client.request("POST", "n8n/uninstall", { body: { delete_data: args.delete_data ?? false } }),
|
|
78
|
+
},
|
|
79
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ecp-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "MCP server for ECP (Epic Control Panel) - manage a hosting account's apps, domains, databases, files, PHP, SSL and more conversationally through an MCP client like Claude Code or Claude Desktop.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|