ecp-mcp-server 0.2.0 → 0.3.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 +14 -0
- package/README.md +2 -2
- package/dist/tools/domains.js +2 -2
- package/dist/tools/files.js +7 -1
- package/dist/tools/resource-monitor.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0 — 2026-10-26
|
|
4
|
+
|
|
5
|
+
Matches ECP 2.0.5 / EHM 2.0.8.
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `ecp_resource_bandwidth_usage`: the account's bandwidth use for the current billing cycle and recent cycles. Needs ECP 2.0.5+ on EHM 2.0.8+.
|
|
9
|
+
- `ecp_files_upload_limit`: the largest upload ECP accepts (also the size cap for SQL imports). Needs ECP 2.0.5+.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- `ecp_domains_add_domain` no longer takes `dns_server` (ECP dropped it).
|
|
13
|
+
- `ecp_domains_list_additional` says it includes subdomains, which it always did.
|
|
14
|
+
- `ecp_files_write` notes ECP 2.0.5's 32 MB cap on non-upload requests.
|
|
15
|
+
- The `ecp_apps_git_*` tools need ECP 2.0.5+ (was "the release after 2.0.4").
|
|
16
|
+
|
|
3
17
|
## 0.2.0 — 2026-10-22
|
|
4
18
|
|
|
5
19
|
### Added
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ 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
|
-
- **Resource monitoring / notifications**
|
|
20
|
+
- **Resource monitoring / notifications** — resource status, current-cycle bandwidth use
|
|
21
21
|
- **storage.bd** — backup config and job status
|
|
22
22
|
- **cPanel import** — discover and import sites from a cPanel server over SSH
|
|
23
23
|
- **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)
|
|
@@ -28,7 +28,7 @@ It talks to ECP's own API (the same one ECP's web UI uses) as the hosting accoun
|
|
|
28
28
|
|
|
29
29
|
- Node.js 18+
|
|
30
30
|
- An ECP hosting account (username + password)
|
|
31
|
-
- Some tools need a recent ECP: `ecp_shell_exec` and cPanel import need ECP 2.0.3+, DNS claim needs 2.0.4+, and the `ecp_apps_git_*` tools need
|
|
31
|
+
- Some tools need a recent ECP: `ecp_shell_exec` and cPanel import need ECP 2.0.3+, DNS claim needs 2.0.4+, and the `ecp_apps_git_*` tools, `ecp_files_upload_limit` and `ecp_resource_bandwidth_usage` need 2.0.5+ (bandwidth also needs EHM 2.0.8+). On an older ECP these tools return a 404 error.
|
|
32
32
|
- For `ecp_shell_exec`: an MCP client that supports elicitation (form mode)
|
|
33
33
|
|
|
34
34
|
## Install
|
package/dist/tools/domains.js
CHANGED
|
@@ -25,14 +25,14 @@ export const domainTools = [
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
name: "ecp_domains_list_additional",
|
|
28
|
-
description: "List additional (addon) domains
|
|
28
|
+
description: "List additional (addon) domains and subdomains - every domain an app can use except the primary domain.",
|
|
29
29
|
inputSchema: {},
|
|
30
30
|
handler: async (_args, client) => client.request("GET", "domain/additional-domains"),
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
name: "ecp_domains_add_domain",
|
|
34
34
|
description: "Add an additional (addon) domain to this account.",
|
|
35
|
-
inputSchema: { domain: z.string()
|
|
35
|
+
inputSchema: { domain: z.string() },
|
|
36
36
|
handler: async (args, client) => client.request("POST", "domain/add-domain", { body: args }),
|
|
37
37
|
},
|
|
38
38
|
{
|
package/dist/tools/files.js
CHANGED
|
@@ -10,6 +10,12 @@ import { z } from "zod";
|
|
|
10
10
|
// (same reasoning as the DB import/export punt in the plan) - revisit later
|
|
11
11
|
// if there's a concrete need.
|
|
12
12
|
export const filesTools = [
|
|
13
|
+
{
|
|
14
|
+
name: "ecp_files_upload_limit",
|
|
15
|
+
description: "Get the largest upload this ECP accepts, in MB (upload_max_size_mb). It also caps the SQL size for the *_import_database tools. Needs ECP 2.0.5+.",
|
|
16
|
+
inputSchema: {},
|
|
17
|
+
handler: async (_args, client) => client.request("GET", "file-system/upload-limit"),
|
|
18
|
+
},
|
|
13
19
|
{
|
|
14
20
|
name: "ecp_files_list",
|
|
15
21
|
description: "List files/folders in a directory.",
|
|
@@ -40,7 +46,7 @@ export const filesTools = [
|
|
|
40
46
|
},
|
|
41
47
|
{
|
|
42
48
|
name: "ecp_files_write",
|
|
43
|
-
description: "Overwrite a text file's content (creates it if it doesn't exist). Can break a running app if it's a config/env/source file - review the current content first.",
|
|
49
|
+
description: "Overwrite a text file's content (creates it if it doesn't exist). Can break a running app if it's a config/env/source file - review the current content first. ECP 2.0.5+ rejects requests over 32 MB.",
|
|
44
50
|
inputSchema: { file_path: z.string(), file_content: z.string(), confirm: z.literal(true) },
|
|
45
51
|
handler: async (args, client) => client.request("POST", "code-editor/file", {
|
|
46
52
|
body: { "file-path": args.file_path, "file-content": args.file_content },
|
|
@@ -9,6 +9,12 @@ export const resourceMonitorTools = [
|
|
|
9
9
|
inputSchema: {},
|
|
10
10
|
handler: async (_args, client) => client.request("GET", "resource-status"),
|
|
11
11
|
},
|
|
12
|
+
{
|
|
13
|
+
name: "ecp_resource_bandwidth_usage",
|
|
14
|
+
description: "Get this account's bandwidth use for the current billing cycle (bytes in/out/total, limit, cycle dates) plus recent cycles. tracking is false when bandwidth isn't being collected for this account. Needs ECP 2.0.5+ on EHM 2.0.8+.",
|
|
15
|
+
inputSchema: {},
|
|
16
|
+
handler: async (_args, client) => client.request("GET", "resource-status/bandwidth"),
|
|
17
|
+
},
|
|
12
18
|
{
|
|
13
19
|
name: "ecp_resource_status_dismiss",
|
|
14
20
|
description: "Dismiss a resource-status warning banner.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ecp-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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": {
|