hostinger-api-mcp 0.1.24 → 0.1.25
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 +10 -15
- package/package.json +1 -1
- package/server.js +20 -27
- package/server.ts +20 -27
- package/types.d.ts +11 -17
package/README.md
CHANGED
|
@@ -320,19 +320,6 @@ Use this endpoint to view available payment options before creating orders.
|
|
|
320
320
|
|
|
321
321
|
|
|
322
322
|
|
|
323
|
-
### billing_cancelSubscriptionV1
|
|
324
|
-
|
|
325
|
-
Cancel a subscription and stop any further billing.
|
|
326
|
-
|
|
327
|
-
Use this endpoint when users want to terminate active services.
|
|
328
|
-
|
|
329
|
-
- **Method**: `DELETE`
|
|
330
|
-
- **Path**: `/api/billing/v1/subscriptions/{subscriptionId}`
|
|
331
|
-
|
|
332
|
-
**Parameters**:
|
|
333
|
-
|
|
334
|
-
- `subscriptionId`: Subscription ID (required)
|
|
335
|
-
|
|
336
323
|
### billing_getSubscriptionListV1
|
|
337
324
|
|
|
338
325
|
Retrieve a list of all subscriptions associated with your account.
|
|
@@ -907,9 +894,8 @@ You can filter contacts by group UUID and subscription status.
|
|
|
907
894
|
Create a new contact in the email marketing system.
|
|
908
895
|
|
|
909
896
|
This endpoint allows you to create a new contact with basic information like name, email, and surname.
|
|
910
|
-
You can optionally assign the contact to specific groups and add notes.
|
|
911
897
|
|
|
912
|
-
|
|
898
|
+
If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
913
899
|
|
|
914
900
|
- **Method**: `POST`
|
|
915
901
|
- **Path**: `/api/reach/v1/contacts`
|
|
@@ -978,6 +964,15 @@ Segments are used to organize and group contacts based on specific criteria.
|
|
|
978
964
|
|
|
979
965
|
- `segmentUuid`: Segment uuid parameter (required)
|
|
980
966
|
|
|
967
|
+
### reach_listProfilesV1
|
|
968
|
+
|
|
969
|
+
This endpoint returns all profiles available to the client, including their basic information.
|
|
970
|
+
|
|
971
|
+
- **Method**: `GET`
|
|
972
|
+
- **Path**: `/api/reach/v1/profiles`
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
981
976
|
### VPS_getDataCenterListV1
|
|
982
977
|
|
|
983
978
|
Retrieve all available data centers.
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -416,29 +416,6 @@ const TOOLS = [
|
|
|
416
416
|
}
|
|
417
417
|
]
|
|
418
418
|
},
|
|
419
|
-
{
|
|
420
|
-
"name": "billing_cancelSubscriptionV1",
|
|
421
|
-
"description": "Cancel a subscription and stop any further billing.\n\nUse this endpoint when users want to terminate active services.",
|
|
422
|
-
"method": "DELETE",
|
|
423
|
-
"path": "/api/billing/v1/subscriptions/{subscriptionId}",
|
|
424
|
-
"inputSchema": {
|
|
425
|
-
"type": "object",
|
|
426
|
-
"properties": {
|
|
427
|
-
"subscriptionId": {
|
|
428
|
-
"type": "string",
|
|
429
|
-
"description": "Subscription ID"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
"required": [
|
|
433
|
-
"subscriptionId"
|
|
434
|
-
]
|
|
435
|
-
},
|
|
436
|
-
"security": [
|
|
437
|
-
{
|
|
438
|
-
"apiToken": []
|
|
439
|
-
}
|
|
440
|
-
]
|
|
441
|
-
},
|
|
442
419
|
{
|
|
443
420
|
"name": "billing_getSubscriptionListV1",
|
|
444
421
|
"description": "Retrieve a list of all subscriptions associated with your account.\n\nUse this endpoint to monitor active services and billing status.",
|
|
@@ -1601,7 +1578,7 @@ const TOOLS = [
|
|
|
1601
1578
|
},
|
|
1602
1579
|
{
|
|
1603
1580
|
"name": "reach_createANewContactV1",
|
|
1604
|
-
"description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\
|
|
1581
|
+
"description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.",
|
|
1605
1582
|
"method": "POST",
|
|
1606
1583
|
"path": "/api/reach/v1/contacts",
|
|
1607
1584
|
"inputSchema": {
|
|
@@ -1807,6 +1784,22 @@ const TOOLS = [
|
|
|
1807
1784
|
}
|
|
1808
1785
|
]
|
|
1809
1786
|
},
|
|
1787
|
+
{
|
|
1788
|
+
"name": "reach_listProfilesV1",
|
|
1789
|
+
"description": "This endpoint returns all profiles available to the client, including their basic information.",
|
|
1790
|
+
"method": "GET",
|
|
1791
|
+
"path": "/api/reach/v1/profiles",
|
|
1792
|
+
"inputSchema": {
|
|
1793
|
+
"type": "object",
|
|
1794
|
+
"properties": {},
|
|
1795
|
+
"required": []
|
|
1796
|
+
},
|
|
1797
|
+
"security": [
|
|
1798
|
+
{
|
|
1799
|
+
"apiToken": []
|
|
1800
|
+
}
|
|
1801
|
+
]
|
|
1802
|
+
},
|
|
1810
1803
|
{
|
|
1811
1804
|
"name": "VPS_getDataCenterListV1",
|
|
1812
1805
|
"description": "Retrieve all available data centers.\n\nUse this endpoint to view location options before deploying VPS instances.",
|
|
@@ -3569,7 +3562,7 @@ const SECURITY_SCHEMES = {
|
|
|
3569
3562
|
|
|
3570
3563
|
/**
|
|
3571
3564
|
* MCP Server for Hostinger API
|
|
3572
|
-
* Generated from OpenAPI spec version 0.
|
|
3565
|
+
* Generated from OpenAPI spec version 0.11.3
|
|
3573
3566
|
*/
|
|
3574
3567
|
class MCPServer {
|
|
3575
3568
|
constructor() {
|
|
@@ -3587,7 +3580,7 @@ class MCPServer {
|
|
|
3587
3580
|
this.server = new Server(
|
|
3588
3581
|
{
|
|
3589
3582
|
name: "hostinger-api-mcp",
|
|
3590
|
-
version: "0.1.
|
|
3583
|
+
version: "0.1.25",
|
|
3591
3584
|
},
|
|
3592
3585
|
{
|
|
3593
3586
|
capabilities: {
|
|
@@ -3612,7 +3605,7 @@ class MCPServer {
|
|
|
3612
3605
|
});
|
|
3613
3606
|
}
|
|
3614
3607
|
|
|
3615
|
-
headers['User-Agent'] = 'hostinger-mcp-server/0.1.
|
|
3608
|
+
headers['User-Agent'] = 'hostinger-mcp-server/0.1.25';
|
|
3616
3609
|
|
|
3617
3610
|
return headers;
|
|
3618
3611
|
}
|
package/server.ts
CHANGED
|
@@ -434,29 +434,6 @@ const TOOLS: OpenApiTool[] = [
|
|
|
434
434
|
}
|
|
435
435
|
]
|
|
436
436
|
},
|
|
437
|
-
{
|
|
438
|
-
"name": "billing_cancelSubscriptionV1",
|
|
439
|
-
"description": "Cancel a subscription and stop any further billing.\n\nUse this endpoint when users want to terminate active services.",
|
|
440
|
-
"method": "DELETE",
|
|
441
|
-
"path": "/api/billing/v1/subscriptions/{subscriptionId}",
|
|
442
|
-
"inputSchema": {
|
|
443
|
-
"type": "object",
|
|
444
|
-
"properties": {
|
|
445
|
-
"subscriptionId": {
|
|
446
|
-
"type": "string",
|
|
447
|
-
"description": "Subscription ID"
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
"required": [
|
|
451
|
-
"subscriptionId"
|
|
452
|
-
]
|
|
453
|
-
},
|
|
454
|
-
"security": [
|
|
455
|
-
{
|
|
456
|
-
"apiToken": []
|
|
457
|
-
}
|
|
458
|
-
]
|
|
459
|
-
},
|
|
460
437
|
{
|
|
461
438
|
"name": "billing_getSubscriptionListV1",
|
|
462
439
|
"description": "Retrieve a list of all subscriptions associated with your account.\n\nUse this endpoint to monitor active services and billing status.",
|
|
@@ -1619,7 +1596,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1619
1596
|
},
|
|
1620
1597
|
{
|
|
1621
1598
|
"name": "reach_createANewContactV1",
|
|
1622
|
-
"description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\
|
|
1599
|
+
"description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.",
|
|
1623
1600
|
"method": "POST",
|
|
1624
1601
|
"path": "/api/reach/v1/contacts",
|
|
1625
1602
|
"inputSchema": {
|
|
@@ -1825,6 +1802,22 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1825
1802
|
}
|
|
1826
1803
|
]
|
|
1827
1804
|
},
|
|
1805
|
+
{
|
|
1806
|
+
"name": "reach_listProfilesV1",
|
|
1807
|
+
"description": "This endpoint returns all profiles available to the client, including their basic information.",
|
|
1808
|
+
"method": "GET",
|
|
1809
|
+
"path": "/api/reach/v1/profiles",
|
|
1810
|
+
"inputSchema": {
|
|
1811
|
+
"type": "object",
|
|
1812
|
+
"properties": {},
|
|
1813
|
+
"required": []
|
|
1814
|
+
},
|
|
1815
|
+
"security": [
|
|
1816
|
+
{
|
|
1817
|
+
"apiToken": []
|
|
1818
|
+
}
|
|
1819
|
+
]
|
|
1820
|
+
},
|
|
1828
1821
|
{
|
|
1829
1822
|
"name": "VPS_getDataCenterListV1",
|
|
1830
1823
|
"description": "Retrieve all available data centers.\n\nUse this endpoint to view location options before deploying VPS instances.",
|
|
@@ -3587,7 +3580,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
|
|
|
3587
3580
|
|
|
3588
3581
|
/**
|
|
3589
3582
|
* MCP Server for Hostinger API
|
|
3590
|
-
* Generated from OpenAPI spec version 0.
|
|
3583
|
+
* Generated from OpenAPI spec version 0.11.3
|
|
3591
3584
|
*/
|
|
3592
3585
|
class MCPServer {
|
|
3593
3586
|
private server: Server;
|
|
@@ -3609,7 +3602,7 @@ class MCPServer {
|
|
|
3609
3602
|
this.server = new Server(
|
|
3610
3603
|
{
|
|
3611
3604
|
name: "hostinger-api-mcp",
|
|
3612
|
-
version: "0.1.
|
|
3605
|
+
version: "0.1.25",
|
|
3613
3606
|
},
|
|
3614
3607
|
{
|
|
3615
3608
|
capabilities: {
|
|
@@ -3634,7 +3627,7 @@ class MCPServer {
|
|
|
3634
3627
|
});
|
|
3635
3628
|
}
|
|
3636
3629
|
|
|
3637
|
-
headers['User-Agent'] = 'hostinger-mcp-server/0.1.
|
|
3630
|
+
headers['User-Agent'] = 'hostinger-mcp-server/0.1.25';
|
|
3638
3631
|
|
|
3639
3632
|
return headers;
|
|
3640
3633
|
}
|
package/types.d.ts
CHANGED
|
@@ -260,21 +260,6 @@ Use this endpoint to view available payment options before creating orders.
|
|
|
260
260
|
response: any; // Response structure will depend on the API
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
/**
|
|
264
|
-
* Cancel a subscription and stop any further billing.
|
|
265
|
-
|
|
266
|
-
Use this endpoint when users want to terminate active services.
|
|
267
|
-
*/
|
|
268
|
-
"billing_cancelSubscriptionV1": {
|
|
269
|
-
params: {
|
|
270
|
-
/**
|
|
271
|
-
* Subscription ID
|
|
272
|
-
*/
|
|
273
|
-
subscriptionId: string;
|
|
274
|
-
};
|
|
275
|
-
response: any; // Response structure will depend on the API
|
|
276
|
-
};
|
|
277
|
-
|
|
278
263
|
/**
|
|
279
264
|
* Retrieve a list of all subscriptions associated with your account.
|
|
280
265
|
|
|
@@ -1033,9 +1018,8 @@ You can filter contacts by group UUID and subscription status.
|
|
|
1033
1018
|
* Create a new contact in the email marketing system.
|
|
1034
1019
|
|
|
1035
1020
|
This endpoint allows you to create a new contact with basic information like name, email, and surname.
|
|
1036
|
-
You can optionally assign the contact to specific groups and add notes.
|
|
1037
1021
|
|
|
1038
|
-
|
|
1022
|
+
If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
1039
1023
|
*/
|
|
1040
1024
|
"reach_createANewContactV1": {
|
|
1041
1025
|
params: {
|
|
@@ -1135,6 +1119,16 @@ Segments are used to organize and group contacts based on specific criteria.
|
|
|
1135
1119
|
response: any; // Response structure will depend on the API
|
|
1136
1120
|
};
|
|
1137
1121
|
|
|
1122
|
+
/**
|
|
1123
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
1124
|
+
*/
|
|
1125
|
+
"reach_listProfilesV1": {
|
|
1126
|
+
params: {
|
|
1127
|
+
|
|
1128
|
+
};
|
|
1129
|
+
response: any; // Response structure will depend on the API
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1138
1132
|
/**
|
|
1139
1133
|
* Retrieve all available data centers.
|
|
1140
1134
|
|