hostinger-api-mcp 0.1.4 → 0.1.6
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 +17 -10
- package/package.json +2 -2
- package/server.js +38 -15
- package/server.ts +38 -15
- package/types.d.ts +26 -4
package/README.md
CHANGED
|
@@ -701,7 +701,9 @@ Use this when you want to permanently remove a project and free up system resour
|
|
|
701
701
|
|
|
702
702
|
Retrieves a list of all Docker Compose projects currently deployed on the virtual machine.
|
|
703
703
|
|
|
704
|
-
This endpoint returns basic information about each project including name, status,
|
|
704
|
+
This endpoint returns basic information about each project including name, status, file path and list of containers with
|
|
705
|
+
details about their names, image, status, health and ports. Container stats are omitted in this endpoint.
|
|
706
|
+
If you need to get detailed information about container with stats included, use the `Get project containers` endpoint.
|
|
705
707
|
|
|
706
708
|
Use this to get an overview of all Docker projects on your VPS instance.
|
|
707
709
|
|
|
@@ -719,7 +721,7 @@ Deploy new project from docker-compose.yaml contents or download contents from U
|
|
|
719
721
|
URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to
|
|
720
722
|
docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.
|
|
721
723
|
|
|
722
|
-
If project already exists,
|
|
724
|
+
If project with the same name already exists, existing project will be replaced.
|
|
723
725
|
|
|
724
726
|
- **Method**: `POST`
|
|
725
727
|
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/docker`
|
|
@@ -729,6 +731,7 @@ If project already exists, it will be replaced.
|
|
|
729
731
|
- `virtualMachineId`: Virtual Machine ID (required)
|
|
730
732
|
- `project_name`: Docker Compose project name using alphanumeric characters, dashes, and underscores only (required)
|
|
731
733
|
- `content`: URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file (required)
|
|
734
|
+
- `environment`: Project environment variables
|
|
732
735
|
|
|
733
736
|
### VPS_getProjectLogsV1
|
|
734
737
|
|
|
@@ -747,7 +750,7 @@ Use this for debugging, monitoring application behavior, and troubleshooting iss
|
|
|
747
750
|
- `virtualMachineId`: Virtual Machine ID (required)
|
|
748
751
|
- `projectName`: Docker Compose project name using alphanumeric characters, dashes, and underscores only (required)
|
|
749
752
|
|
|
750
|
-
###
|
|
753
|
+
### VPS_restartProjectV1
|
|
751
754
|
|
|
752
755
|
Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order.
|
|
753
756
|
|
|
@@ -763,7 +766,7 @@ Use this to apply configuration changes or recover from service failures.
|
|
|
763
766
|
- `virtualMachineId`: Virtual Machine ID (required)
|
|
764
767
|
- `projectName`: Docker Compose project name using alphanumeric characters, dashes, and underscores only (required)
|
|
765
768
|
|
|
766
|
-
###
|
|
769
|
+
### VPS_startProjectV1
|
|
767
770
|
|
|
768
771
|
Starts all services in a Docker Compose project that are currently stopped.
|
|
769
772
|
|
|
@@ -779,7 +782,7 @@ Use this to resume a project that was previously stopped or to start services af
|
|
|
779
782
|
- `virtualMachineId`: Virtual Machine ID (required)
|
|
780
783
|
- `projectName`: Docker Compose project name using alphanumeric characters, dashes, and underscores only (required)
|
|
781
784
|
|
|
782
|
-
###
|
|
785
|
+
### VPS_stopProjectV1
|
|
783
786
|
|
|
784
787
|
Stops all running services in a Docker Compose project while preserving container configurations and data volumes.
|
|
785
788
|
|
|
@@ -795,7 +798,7 @@ Use this to temporarily halt a project without removing data or configurations.
|
|
|
795
798
|
- `virtualMachineId`: Virtual Machine ID (required)
|
|
796
799
|
- `projectName`: Docker Compose project name using alphanumeric characters, dashes, and underscores only (required)
|
|
797
800
|
|
|
798
|
-
###
|
|
801
|
+
### VPS_updateProjectV1
|
|
799
802
|
|
|
800
803
|
Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations.
|
|
801
804
|
|
|
@@ -1369,11 +1372,13 @@ Create or update a PTR (Pointer) record for a specified virtual machine.
|
|
|
1369
1372
|
Use this endpoint to configure reverse DNS lookup for VPS IP addresses.
|
|
1370
1373
|
|
|
1371
1374
|
- **Method**: `POST`
|
|
1372
|
-
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/ptr`
|
|
1375
|
+
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}`
|
|
1373
1376
|
|
|
1374
1377
|
**Parameters**:
|
|
1375
1378
|
|
|
1376
1379
|
- `virtualMachineId`: Virtual Machine ID (required)
|
|
1380
|
+
- `ipAddressId`: IP Address ID (required)
|
|
1381
|
+
- `domain`: Pointer record domain (required)
|
|
1377
1382
|
|
|
1378
1383
|
### VPS_deletePTRRecordV1
|
|
1379
1384
|
|
|
@@ -1384,11 +1389,12 @@ Once deleted, reverse DNS lookups to the virtual machine's IP address will no lo
|
|
|
1384
1389
|
Use this endpoint to remove reverse DNS configuration from VPS instances.
|
|
1385
1390
|
|
|
1386
1391
|
- **Method**: `DELETE`
|
|
1387
|
-
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/ptr`
|
|
1392
|
+
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}`
|
|
1388
1393
|
|
|
1389
1394
|
**Parameters**:
|
|
1390
1395
|
|
|
1391
1396
|
- `virtualMachineId`: Virtual Machine ID (required)
|
|
1397
|
+
- `ipAddressId`: IP Address ID (required)
|
|
1392
1398
|
|
|
1393
1399
|
### VPS_setPanelPasswordV1
|
|
1394
1400
|
|
|
@@ -1469,8 +1475,9 @@ Use this endpoint to completely rebuild VPS instances with fresh OS installation
|
|
|
1469
1475
|
|
|
1470
1476
|
- `virtualMachineId`: Virtual Machine ID (required)
|
|
1471
1477
|
- `template_id`: Template ID (required)
|
|
1472
|
-
- `password`:
|
|
1473
|
-
- `
|
|
1478
|
+
- `password`: Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response.
|
|
1479
|
+
- `panel_password`: Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response.
|
|
1480
|
+
- `post_install_script_id`: Post-install script to execute after virtual machine was recreated
|
|
1474
1481
|
|
|
1475
1482
|
### VPS_restartVirtualMachineV1
|
|
1476
1483
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hostinger-api-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "MCP server for Hostinger API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"start:ts": "npx tsc && node dist/server.js"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@modelcontextprotocol/sdk": "^1.0
|
|
28
|
+
"@modelcontextprotocol/sdk": "^1.10.0",
|
|
29
29
|
"minimist": "^1.2.8",
|
|
30
30
|
"express": "^4.21.2",
|
|
31
31
|
"axios": "^1.8.0",
|
package/server.js
CHANGED
|
@@ -1132,7 +1132,7 @@ const TOOLS = [
|
|
|
1132
1132
|
},
|
|
1133
1133
|
{
|
|
1134
1134
|
"name": "VPS_getProjectListV1",
|
|
1135
|
-
"description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name, status, and
|
|
1135
|
+
"description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name, status, file path and list of containers with \ndetails about their names, image, status, health and ports. Container stats are omitted in this endpoint.\nIf you need to get detailed information about container with stats included, use the `Get project containers` endpoint. \n\nUse this to get an overview of all Docker projects on your VPS instance.",
|
|
1136
1136
|
"method": "GET",
|
|
1137
1137
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker",
|
|
1138
1138
|
"inputSchema": {
|
|
@@ -1155,7 +1155,7 @@ const TOOLS = [
|
|
|
1155
1155
|
},
|
|
1156
1156
|
{
|
|
1157
1157
|
"name": "VPS_createNewProjectV1",
|
|
1158
|
-
"description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to \ndocker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.\n\nIf project already exists,
|
|
1158
|
+
"description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to \ndocker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.\n\nIf project with the same name already exists, existing project will be replaced.",
|
|
1159
1159
|
"method": "POST",
|
|
1160
1160
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker",
|
|
1161
1161
|
"inputSchema": {
|
|
@@ -1172,6 +1172,10 @@ const TOOLS = [
|
|
|
1172
1172
|
"content": {
|
|
1173
1173
|
"type": "string",
|
|
1174
1174
|
"description": "URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file"
|
|
1175
|
+
},
|
|
1176
|
+
"environment": {
|
|
1177
|
+
"type": "string",
|
|
1178
|
+
"description": "Project environment variables"
|
|
1175
1179
|
}
|
|
1176
1180
|
},
|
|
1177
1181
|
"required": [
|
|
@@ -1215,7 +1219,7 @@ const TOOLS = [
|
|
|
1215
1219
|
]
|
|
1216
1220
|
},
|
|
1217
1221
|
{
|
|
1218
|
-
"name": "
|
|
1222
|
+
"name": "VPS_restartProjectV1",
|
|
1219
1223
|
"description": "Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. \n\nThis operation preserves data volumes and network configurations while refreshing the running containers. \n\nUse this to apply configuration changes or recover from service failures.",
|
|
1220
1224
|
"method": "POST",
|
|
1221
1225
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/restart",
|
|
@@ -1243,7 +1247,7 @@ const TOOLS = [
|
|
|
1243
1247
|
]
|
|
1244
1248
|
},
|
|
1245
1249
|
{
|
|
1246
|
-
"name": "
|
|
1250
|
+
"name": "VPS_startProjectV1",
|
|
1247
1251
|
"description": "Starts all services in a Docker Compose project that are currently stopped. \n\nThis operation brings up containers in the correct dependency order as defined in the compose file. \n\nUse this to resume a project that was previously stopped or to start services after a system reboot.",
|
|
1248
1252
|
"method": "POST",
|
|
1249
1253
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/start",
|
|
@@ -1271,7 +1275,7 @@ const TOOLS = [
|
|
|
1271
1275
|
]
|
|
1272
1276
|
},
|
|
1273
1277
|
{
|
|
1274
|
-
"name": "
|
|
1278
|
+
"name": "VPS_stopProjectV1",
|
|
1275
1279
|
"description": "Stops all running services in a Docker Compose project while preserving container configurations and data volumes. \n\nThis operation gracefully shuts down containers in reverse dependency order. \n\nUse this to temporarily halt a project without removing data or configurations.",
|
|
1276
1280
|
"method": "POST",
|
|
1277
1281
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/stop",
|
|
@@ -1299,7 +1303,7 @@ const TOOLS = [
|
|
|
1299
1303
|
]
|
|
1300
1304
|
},
|
|
1301
1305
|
{
|
|
1302
|
-
"name": "
|
|
1306
|
+
"name": "VPS_updateProjectV1",
|
|
1303
1307
|
"description": "Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. \n\nThis operation preserves data volumes while applying changes from the compose file. \n\nUse this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.",
|
|
1304
1308
|
"method": "POST",
|
|
1305
1309
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/update",
|
|
@@ -2337,17 +2341,27 @@ const TOOLS = [
|
|
|
2337
2341
|
"name": "VPS_createPTRRecordV1",
|
|
2338
2342
|
"description": "Create or update a PTR (Pointer) record for a specified virtual machine.\n\nUse this endpoint to configure reverse DNS lookup for VPS IP addresses.",
|
|
2339
2343
|
"method": "POST",
|
|
2340
|
-
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr",
|
|
2344
|
+
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}",
|
|
2341
2345
|
"inputSchema": {
|
|
2342
2346
|
"type": "object",
|
|
2343
2347
|
"properties": {
|
|
2344
2348
|
"virtualMachineId": {
|
|
2345
2349
|
"type": "integer",
|
|
2346
2350
|
"description": "Virtual Machine ID"
|
|
2351
|
+
},
|
|
2352
|
+
"ipAddressId": {
|
|
2353
|
+
"type": "integer",
|
|
2354
|
+
"description": "IP Address ID"
|
|
2355
|
+
},
|
|
2356
|
+
"domain": {
|
|
2357
|
+
"type": "string",
|
|
2358
|
+
"description": "Pointer record domain"
|
|
2347
2359
|
}
|
|
2348
2360
|
},
|
|
2349
2361
|
"required": [
|
|
2350
|
-
"virtualMachineId"
|
|
2362
|
+
"virtualMachineId",
|
|
2363
|
+
"ipAddressId",
|
|
2364
|
+
"domain"
|
|
2351
2365
|
]
|
|
2352
2366
|
},
|
|
2353
2367
|
"security": [
|
|
@@ -2360,17 +2374,22 @@ const TOOLS = [
|
|
|
2360
2374
|
"name": "VPS_deletePTRRecordV1",
|
|
2361
2375
|
"description": "Delete a PTR (Pointer) record for a specified virtual machine.\n\nOnce deleted, reverse DNS lookups to the virtual machine's IP address will no longer return the previously configured hostname.\n\nUse this endpoint to remove reverse DNS configuration from VPS instances.",
|
|
2362
2376
|
"method": "DELETE",
|
|
2363
|
-
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr",
|
|
2377
|
+
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}",
|
|
2364
2378
|
"inputSchema": {
|
|
2365
2379
|
"type": "object",
|
|
2366
2380
|
"properties": {
|
|
2367
2381
|
"virtualMachineId": {
|
|
2368
2382
|
"type": "integer",
|
|
2369
2383
|
"description": "Virtual Machine ID"
|
|
2384
|
+
},
|
|
2385
|
+
"ipAddressId": {
|
|
2386
|
+
"type": "integer",
|
|
2387
|
+
"description": "IP Address ID"
|
|
2370
2388
|
}
|
|
2371
2389
|
},
|
|
2372
2390
|
"required": [
|
|
2373
|
-
"virtualMachineId"
|
|
2391
|
+
"virtualMachineId",
|
|
2392
|
+
"ipAddressId"
|
|
2374
2393
|
]
|
|
2375
2394
|
},
|
|
2376
2395
|
"security": [
|
|
@@ -2476,11 +2495,15 @@ const TOOLS = [
|
|
|
2476
2495
|
},
|
|
2477
2496
|
"password": {
|
|
2478
2497
|
"type": "string",
|
|
2479
|
-
"description": "
|
|
2498
|
+
"description": "Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response."
|
|
2499
|
+
},
|
|
2500
|
+
"panel_password": {
|
|
2501
|
+
"type": "string",
|
|
2502
|
+
"description": "Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response."
|
|
2480
2503
|
},
|
|
2481
2504
|
"post_install_script_id": {
|
|
2482
2505
|
"type": "integer",
|
|
2483
|
-
"description": "Post-install script
|
|
2506
|
+
"description": "Post-install script to execute after virtual machine was recreated"
|
|
2484
2507
|
}
|
|
2485
2508
|
},
|
|
2486
2509
|
"required": [
|
|
@@ -2769,7 +2792,7 @@ const SECURITY_SCHEMES = {
|
|
|
2769
2792
|
|
|
2770
2793
|
/**
|
|
2771
2794
|
* MCP Server for Hostinger API
|
|
2772
|
-
* Generated from OpenAPI spec version 0.0.
|
|
2795
|
+
* Generated from OpenAPI spec version 0.0.101
|
|
2773
2796
|
*/
|
|
2774
2797
|
class MCPServer {
|
|
2775
2798
|
constructor() {
|
|
@@ -2787,7 +2810,7 @@ class MCPServer {
|
|
|
2787
2810
|
this.server = new Server(
|
|
2788
2811
|
{
|
|
2789
2812
|
name: "hostinger-api-mcp",
|
|
2790
|
-
version: "0.1.
|
|
2813
|
+
version: "0.1.6",
|
|
2791
2814
|
},
|
|
2792
2815
|
{
|
|
2793
2816
|
capabilities: {
|
|
@@ -2812,7 +2835,7 @@ class MCPServer {
|
|
|
2812
2835
|
});
|
|
2813
2836
|
}
|
|
2814
2837
|
|
|
2815
|
-
headers['User-Agent'] = 'hostinger-mcp-server/0.1.
|
|
2838
|
+
headers['User-Agent'] = 'hostinger-mcp-server/0.1.6';
|
|
2816
2839
|
|
|
2817
2840
|
return headers;
|
|
2818
2841
|
}
|
package/server.ts
CHANGED
|
@@ -1149,7 +1149,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1149
1149
|
},
|
|
1150
1150
|
{
|
|
1151
1151
|
"name": "VPS_getProjectListV1",
|
|
1152
|
-
"description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name, status, and
|
|
1152
|
+
"description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name, status, file path and list of containers with \ndetails about their names, image, status, health and ports. Container stats are omitted in this endpoint.\nIf you need to get detailed information about container with stats included, use the `Get project containers` endpoint. \n\nUse this to get an overview of all Docker projects on your VPS instance.",
|
|
1153
1153
|
"method": "GET",
|
|
1154
1154
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker",
|
|
1155
1155
|
"inputSchema": {
|
|
@@ -1172,7 +1172,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1172
1172
|
},
|
|
1173
1173
|
{
|
|
1174
1174
|
"name": "VPS_createNewProjectV1",
|
|
1175
|
-
"description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to \ndocker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.\n\nIf project already exists,
|
|
1175
|
+
"description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to \ndocker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.\n\nIf project with the same name already exists, existing project will be replaced.",
|
|
1176
1176
|
"method": "POST",
|
|
1177
1177
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker",
|
|
1178
1178
|
"inputSchema": {
|
|
@@ -1189,6 +1189,10 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1189
1189
|
"content": {
|
|
1190
1190
|
"type": "string",
|
|
1191
1191
|
"description": "URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file"
|
|
1192
|
+
},
|
|
1193
|
+
"environment": {
|
|
1194
|
+
"type": "string",
|
|
1195
|
+
"description": "Project environment variables"
|
|
1192
1196
|
}
|
|
1193
1197
|
},
|
|
1194
1198
|
"required": [
|
|
@@ -1232,7 +1236,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1232
1236
|
]
|
|
1233
1237
|
},
|
|
1234
1238
|
{
|
|
1235
|
-
"name": "
|
|
1239
|
+
"name": "VPS_restartProjectV1",
|
|
1236
1240
|
"description": "Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. \n\nThis operation preserves data volumes and network configurations while refreshing the running containers. \n\nUse this to apply configuration changes or recover from service failures.",
|
|
1237
1241
|
"method": "POST",
|
|
1238
1242
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/restart",
|
|
@@ -1260,7 +1264,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1260
1264
|
]
|
|
1261
1265
|
},
|
|
1262
1266
|
{
|
|
1263
|
-
"name": "
|
|
1267
|
+
"name": "VPS_startProjectV1",
|
|
1264
1268
|
"description": "Starts all services in a Docker Compose project that are currently stopped. \n\nThis operation brings up containers in the correct dependency order as defined in the compose file. \n\nUse this to resume a project that was previously stopped or to start services after a system reboot.",
|
|
1265
1269
|
"method": "POST",
|
|
1266
1270
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/start",
|
|
@@ -1288,7 +1292,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1288
1292
|
]
|
|
1289
1293
|
},
|
|
1290
1294
|
{
|
|
1291
|
-
"name": "
|
|
1295
|
+
"name": "VPS_stopProjectV1",
|
|
1292
1296
|
"description": "Stops all running services in a Docker Compose project while preserving container configurations and data volumes. \n\nThis operation gracefully shuts down containers in reverse dependency order. \n\nUse this to temporarily halt a project without removing data or configurations.",
|
|
1293
1297
|
"method": "POST",
|
|
1294
1298
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/stop",
|
|
@@ -1316,7 +1320,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1316
1320
|
]
|
|
1317
1321
|
},
|
|
1318
1322
|
{
|
|
1319
|
-
"name": "
|
|
1323
|
+
"name": "VPS_updateProjectV1",
|
|
1320
1324
|
"description": "Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. \n\nThis operation preserves data volumes while applying changes from the compose file. \n\nUse this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.",
|
|
1321
1325
|
"method": "POST",
|
|
1322
1326
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/update",
|
|
@@ -2354,17 +2358,27 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2354
2358
|
"name": "VPS_createPTRRecordV1",
|
|
2355
2359
|
"description": "Create or update a PTR (Pointer) record for a specified virtual machine.\n\nUse this endpoint to configure reverse DNS lookup for VPS IP addresses.",
|
|
2356
2360
|
"method": "POST",
|
|
2357
|
-
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr",
|
|
2361
|
+
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}",
|
|
2358
2362
|
"inputSchema": {
|
|
2359
2363
|
"type": "object",
|
|
2360
2364
|
"properties": {
|
|
2361
2365
|
"virtualMachineId": {
|
|
2362
2366
|
"type": "integer",
|
|
2363
2367
|
"description": "Virtual Machine ID"
|
|
2368
|
+
},
|
|
2369
|
+
"ipAddressId": {
|
|
2370
|
+
"type": "integer",
|
|
2371
|
+
"description": "IP Address ID"
|
|
2372
|
+
},
|
|
2373
|
+
"domain": {
|
|
2374
|
+
"type": "string",
|
|
2375
|
+
"description": "Pointer record domain"
|
|
2364
2376
|
}
|
|
2365
2377
|
},
|
|
2366
2378
|
"required": [
|
|
2367
|
-
"virtualMachineId"
|
|
2379
|
+
"virtualMachineId",
|
|
2380
|
+
"ipAddressId",
|
|
2381
|
+
"domain"
|
|
2368
2382
|
]
|
|
2369
2383
|
},
|
|
2370
2384
|
"security": [
|
|
@@ -2377,17 +2391,22 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2377
2391
|
"name": "VPS_deletePTRRecordV1",
|
|
2378
2392
|
"description": "Delete a PTR (Pointer) record for a specified virtual machine.\n\nOnce deleted, reverse DNS lookups to the virtual machine's IP address will no longer return the previously configured hostname.\n\nUse this endpoint to remove reverse DNS configuration from VPS instances.",
|
|
2379
2393
|
"method": "DELETE",
|
|
2380
|
-
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr",
|
|
2394
|
+
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}",
|
|
2381
2395
|
"inputSchema": {
|
|
2382
2396
|
"type": "object",
|
|
2383
2397
|
"properties": {
|
|
2384
2398
|
"virtualMachineId": {
|
|
2385
2399
|
"type": "integer",
|
|
2386
2400
|
"description": "Virtual Machine ID"
|
|
2401
|
+
},
|
|
2402
|
+
"ipAddressId": {
|
|
2403
|
+
"type": "integer",
|
|
2404
|
+
"description": "IP Address ID"
|
|
2387
2405
|
}
|
|
2388
2406
|
},
|
|
2389
2407
|
"required": [
|
|
2390
|
-
"virtualMachineId"
|
|
2408
|
+
"virtualMachineId",
|
|
2409
|
+
"ipAddressId"
|
|
2391
2410
|
]
|
|
2392
2411
|
},
|
|
2393
2412
|
"security": [
|
|
@@ -2493,11 +2512,15 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2493
2512
|
},
|
|
2494
2513
|
"password": {
|
|
2495
2514
|
"type": "string",
|
|
2496
|
-
"description": "
|
|
2515
|
+
"description": "Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response."
|
|
2516
|
+
},
|
|
2517
|
+
"panel_password": {
|
|
2518
|
+
"type": "string",
|
|
2519
|
+
"description": "Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response."
|
|
2497
2520
|
},
|
|
2498
2521
|
"post_install_script_id": {
|
|
2499
2522
|
"type": "integer",
|
|
2500
|
-
"description": "Post-install script
|
|
2523
|
+
"description": "Post-install script to execute after virtual machine was recreated"
|
|
2501
2524
|
}
|
|
2502
2525
|
},
|
|
2503
2526
|
"required": [
|
|
@@ -2786,7 +2809,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
|
|
|
2786
2809
|
|
|
2787
2810
|
/**
|
|
2788
2811
|
* MCP Server for Hostinger API
|
|
2789
|
-
* Generated from OpenAPI spec version 0.0.
|
|
2812
|
+
* Generated from OpenAPI spec version 0.0.101
|
|
2790
2813
|
*/
|
|
2791
2814
|
class MCPServer {
|
|
2792
2815
|
private server: Server;
|
|
@@ -2808,7 +2831,7 @@ class MCPServer {
|
|
|
2808
2831
|
this.server = new Server(
|
|
2809
2832
|
{
|
|
2810
2833
|
name: "hostinger-api-mcp",
|
|
2811
|
-
version: "0.1.
|
|
2834
|
+
version: "0.1.6",
|
|
2812
2835
|
},
|
|
2813
2836
|
{
|
|
2814
2837
|
capabilities: {
|
|
@@ -2833,7 +2856,7 @@ class MCPServer {
|
|
|
2833
2856
|
});
|
|
2834
2857
|
}
|
|
2835
2858
|
|
|
2836
|
-
headers['User-Agent'] = 'hostinger-mcp-server/0.1.
|
|
2859
|
+
headers['User-Agent'] = 'hostinger-mcp-server/0.1.6';
|
|
2837
2860
|
|
|
2838
2861
|
return headers;
|
|
2839
2862
|
}
|
package/types.d.ts
CHANGED
|
@@ -724,7 +724,9 @@ Use this when you want to permanently remove a project and free up system resour
|
|
|
724
724
|
/**
|
|
725
725
|
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine.
|
|
726
726
|
|
|
727
|
-
This endpoint returns basic information about each project including name, status,
|
|
727
|
+
This endpoint returns basic information about each project including name, status, file path and list of containers with
|
|
728
|
+
details about their names, image, status, health and ports. Container stats are omitted in this endpoint.
|
|
729
|
+
If you need to get detailed information about container with stats included, use the `Get project containers` endpoint.
|
|
728
730
|
|
|
729
731
|
Use this to get an overview of all Docker projects on your VPS instance.
|
|
730
732
|
*/
|
|
@@ -744,7 +746,7 @@ Use this to get an overview of all Docker projects on your VPS instance.
|
|
|
744
746
|
URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to
|
|
745
747
|
docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.
|
|
746
748
|
|
|
747
|
-
If project already exists,
|
|
749
|
+
If project with the same name already exists, existing project will be replaced.
|
|
748
750
|
*/
|
|
749
751
|
"undefined": {
|
|
750
752
|
params: {
|
|
@@ -760,6 +762,10 @@ If project already exists, it will be replaced.
|
|
|
760
762
|
* URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file
|
|
761
763
|
*/
|
|
762
764
|
content: string;
|
|
765
|
+
/**
|
|
766
|
+
* Project environment variables
|
|
767
|
+
*/
|
|
768
|
+
environment?: string;
|
|
763
769
|
};
|
|
764
770
|
response: any; // Response structure will depend on the API
|
|
765
771
|
};
|
|
@@ -1598,6 +1604,14 @@ Use this endpoint to configure reverse DNS lookup for VPS IP addresses.
|
|
|
1598
1604
|
* Virtual Machine ID
|
|
1599
1605
|
*/
|
|
1600
1606
|
virtualMachineId: number;
|
|
1607
|
+
/**
|
|
1608
|
+
* IP Address ID
|
|
1609
|
+
*/
|
|
1610
|
+
ipAddressId: number;
|
|
1611
|
+
/**
|
|
1612
|
+
* Pointer record domain
|
|
1613
|
+
*/
|
|
1614
|
+
domain: string;
|
|
1601
1615
|
};
|
|
1602
1616
|
response: any; // Response structure will depend on the API
|
|
1603
1617
|
};
|
|
@@ -1615,6 +1629,10 @@ Use this endpoint to remove reverse DNS configuration from VPS instances.
|
|
|
1615
1629
|
* Virtual Machine ID
|
|
1616
1630
|
*/
|
|
1617
1631
|
virtualMachineId: number;
|
|
1632
|
+
/**
|
|
1633
|
+
* IP Address ID
|
|
1634
|
+
*/
|
|
1635
|
+
ipAddressId: number;
|
|
1618
1636
|
};
|
|
1619
1637
|
response: any; // Response structure will depend on the API
|
|
1620
1638
|
};
|
|
@@ -1713,11 +1731,15 @@ Use this endpoint to completely rebuild VPS instances with fresh OS installation
|
|
|
1713
1731
|
*/
|
|
1714
1732
|
template_id: number;
|
|
1715
1733
|
/**
|
|
1716
|
-
*
|
|
1734
|
+
* Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response.
|
|
1717
1735
|
*/
|
|
1718
1736
|
password?: string;
|
|
1719
1737
|
/**
|
|
1720
|
-
*
|
|
1738
|
+
* Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response.
|
|
1739
|
+
*/
|
|
1740
|
+
panel_password?: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* Post-install script to execute after virtual machine was recreated
|
|
1721
1743
|
*/
|
|
1722
1744
|
post_install_script_id?: number;
|
|
1723
1745
|
};
|