hostinger-api-mcp 0.1.12 → 0.1.15

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.
@@ -39,13 +39,14 @@ jobs:
39
39
  node-version: '24.x'
40
40
  registry-url: 'https://registry.npmjs.org'
41
41
 
42
+ - name: Update NPM
43
+ run: npm install -g npm@latest
44
+
42
45
  - name: Install dependencies
43
46
  run: npm install
44
47
 
45
48
  - name: Publish package
46
49
  run: npm publish --provenance --access public
47
- env:
48
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49
50
 
50
51
  release-github:
51
52
  runs-on: ubuntu-latest
package/README.md CHANGED
@@ -144,6 +144,86 @@ console.log("Tool result:", result);
144
144
 
145
145
  This MCP server provides the following tools:
146
146
 
147
+ ### hosting_importWordpressWebsite
148
+
149
+ Import a WordPress website from an archive file to a hosting server. This tool uploads a website archive (zip, tar, tar.gz, etc.) and a database dump (.sql file) to deploy a complete WordPress website. The archive will be extracted on the server automatically. Note: This process may take a while for larger sites. After upload completion, files are being extracted and the site will be available in a few minutes. The username will be automatically resolved from the domain.
150
+
151
+ - **Method**: ``
152
+ - **Path**: ``
153
+
154
+ **Parameters**:
155
+
156
+ - `domain`: Domain name associated with the hosting account (e.g., example.com) (required)
157
+ - `archivePath`: Absolute or relative path to the website archive file. Supported formats: zip, tar, tar.gz, tgz, 7z, gz, gzip. If user provides directory path, create archive from it before proceeding using EXACTLY this naming pattern: directoryname_YYYYMMDD_HHMMSS.zip (e.g., mywebsite_20250115_143022.zip) (required)
158
+ - `databaseDump`: Absolute or relative path to a database dump file (.sql) (required)
159
+
160
+ ### hosting_deployWordpressPlugin
161
+
162
+ Deploy a WordPress plugin from a directory to a hosting server. This tool uploads all plugin files and triggers plugin deployment.
163
+
164
+ - **Method**: ``
165
+ - **Path**: ``
166
+
167
+ **Parameters**:
168
+
169
+ - `domain`: Domain name associated with the hosting account (e.g., example.com) (required)
170
+ - `slug`: WordPress plugin slug (e.g., omnisend) (required)
171
+ - `pluginPath`: Absolute or relative path to the plugin directory containing all plugin files (required)
172
+
173
+ ### hosting_deployWordpressTheme
174
+
175
+ Deploy a WordPress theme from a directory to a hosting server. This tool uploads all theme files and triggers theme deployment. The uploaded theme can optionally be activated after deployment.
176
+
177
+ - **Method**: ``
178
+ - **Path**: ``
179
+
180
+ **Parameters**:
181
+
182
+ - `domain`: Domain name associated with the hosting account (e.g., example.com) (required)
183
+ - `slug`: WordPress theme slug (e.g., twentytwentyfive) (required)
184
+ - `themePath`: Absolute or relative path to the theme directory containing all theme files (required)
185
+ - `activate`: Whether to activate the theme after deployment (default: false)
186
+
187
+ ### hosting_deployJsApplication
188
+
189
+ Deploy a JavaScript application from an archive file to a hosting server. IMPORTANT: the archive must ONLY contain application source files, not the build output, skip node_modules directory; also exclude all files matched by .gitignore if the ignore file exists. The build process will be triggered automatically on the server after the archive is uploaded. After deployment, use the hosting_listJsDeployments tool to check deployment status and track build progress.
190
+
191
+ - **Method**: ``
192
+ - **Path**: ``
193
+
194
+ **Parameters**:
195
+
196
+ - `domain`: Domain name associated with the hosting account (e.g., example.com) (required)
197
+ - `archivePath`: Absolute or relative path to the application archive file. Supported formats: zip, tar, tar.gz, tgz, 7z, gz, gzip. If user provides directory path, create archive from it before proceeding. IMPORTANT: the archive must ONLY contain application source files, not the build output, skip node_modules directory. (required)
198
+ - `removeArchive`: Whether to remove the archive file after successful deployment (default: false)
199
+
200
+ ### hosting_listJsDeployments
201
+
202
+ List javascript application deployments for checking their status. Use this tool when customer asks for the status of the deployment. This tool retrieves a paginated list of Node.js application deployments for a domain with optional filtering by deployment states.
203
+
204
+ - **Method**: ``
205
+ - **Path**: ``
206
+
207
+ **Parameters**:
208
+
209
+ - `domain`: Domain name associated with the hosting account (e.g., example.com) (required)
210
+ - `page`: Page number for pagination (optional)
211
+ - `perPage`: Number of items per page (optional)
212
+ - `states`: Filter by deployment states (optional). Valid values: pending, completed, running, failed
213
+
214
+ ### hosting_showJsDeploymentLogs
215
+
216
+ Retrieve logs for a specified JavaScript application deployment for debugging purposes in case of failure.
217
+
218
+ - **Method**: ``
219
+ - **Path**: ``
220
+
221
+ **Parameters**:
222
+
223
+ - `domain`: Domain name associated with the hosting account (e.g., example.com) (required)
224
+ - `fromLine`: Line from which to retrieve logs (optional, default 0)
225
+ - `buildUuid`: UUID of the JavaScript deployment build (required)
226
+
147
227
  ### billing_getCatalogItemListV1
148
228
 
149
229
  Retrieve catalog items available for order.
@@ -402,6 +482,15 @@ Use this endpoint to verify DNS record validity before applying changes.
402
482
  - `overwrite`: If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created.
403
483
  - `zone`: zone parameter (required)
404
484
 
485
+ ### v2_getDomainVerificationsDIRECT
486
+
487
+ Retrieve a list of pending and completed domain verifications.
488
+
489
+ - **Method**: `GET`
490
+ - **Path**: `/api/v2/direct/verifications/active`
491
+
492
+
493
+
405
494
  ### domains_checkDomainAvailabilityV1
406
495
 
407
496
  Check availability of domain names across multiple TLDs.
@@ -727,7 +816,7 @@ Retrieve a paginated list of websites (main and addon types) accessible to the a
727
816
 
728
817
  This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you.
729
818
 
730
- Use the available query parameters to filter results by username, order ID, or enabled status for more targeted results.
819
+ Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
731
820
 
732
821
  - **Method**: `GET`
733
822
  - **Path**: `/api/hosting/v1/websites`
@@ -739,6 +828,7 @@ Use the available query parameters to filter results by username, order ID, or e
739
828
  - `username`: Filter by specific username
740
829
  - `order_id`: Order ID
741
830
  - `is_enabled`: Filter by enabled status
831
+ - `domain`: Filter by domain name (exact match)
742
832
 
743
833
  ### hosting_createWebsiteV1
744
834
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "0.1.12",
3
+ "version": "0.1.15",
4
4
  "description": "MCP server for Hostinger API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,11 +26,12 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@modelcontextprotocol/sdk": "^1.10.0",
29
- "minimist": "^1.2.8",
30
- "express": "^4.21.2",
31
29
  "axios": "^1.8.0",
30
+ "cors": "^2.8.5",
32
31
  "dotenv": "^16.4.7",
33
- "cors": "^2.8.5"
32
+ "express": "^4.21.2",
33
+ "minimist": "^1.2.8",
34
+ "tus-js-client": "^4.1.0"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@types/node": "^24.0.0",