hostinger-api-mcp 1.22.1 → 1.24.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/.github/workflows/build-release.yaml +28 -0
- package/README.md +61 -2
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +191 -1
- package/src/core/tools/all.ts +191 -1
- package/src/core/tools/billing.js +2 -1
- package/src/core/tools/billing.ts +2 -1
- package/src/core/tools/mail.js +189 -0
- package/src/core/tools/mail.ts +189 -0
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/mail.js +1 -1
- package/src/servers/mail.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +121 -0
package/src/core/tools/mail.js
CHANGED
|
@@ -1,5 +1,90 @@
|
|
|
1
1
|
// Auto-generated tool list for group: mail
|
|
2
2
|
export default [
|
|
3
|
+
{
|
|
4
|
+
"name": "mail_createAliasV1",
|
|
5
|
+
"description": "Create an alias for the given mailbox. The alias address is formed\nfrom the given local part and the domain of the mailbox. Messages\nsent to the alias are delivered to the mailbox.",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"path": "/api/mail/v1/mailboxes/{mailboxId}/aliases",
|
|
8
|
+
"inputSchema": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"mailboxId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Mailbox resource ID"
|
|
14
|
+
},
|
|
15
|
+
"local_part": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Local part of the alias address (the part before the @). The domain is taken from the mailbox. Case-insensitive and stored lowercase; must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"mailboxId",
|
|
22
|
+
"local_part"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"security": [
|
|
26
|
+
{
|
|
27
|
+
"apiToken": []
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"group": "mail"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "mail_deleteAliasV1",
|
|
34
|
+
"description": "Delete an alias. Messages sent to the alias address are no longer\ndelivered to the mailbox.",
|
|
35
|
+
"method": "DELETE",
|
|
36
|
+
"path": "/api/mail/v1/aliases/{aliasId}",
|
|
37
|
+
"inputSchema": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"aliasId": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Alias resource ID"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"aliasId"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"security": [
|
|
50
|
+
{
|
|
51
|
+
"apiToken": []
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"group": "mail"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "mail_listAliasesV1",
|
|
58
|
+
"description": "Retrieve a paginated list of aliases across all mailboxes of a mail\norder.",
|
|
59
|
+
"method": "GET",
|
|
60
|
+
"path": "/api/mail/v1/orders/{orderId}/aliases",
|
|
61
|
+
"inputSchema": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"orderId": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Order resource ID"
|
|
67
|
+
},
|
|
68
|
+
"page": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"description": "Page number"
|
|
71
|
+
},
|
|
72
|
+
"per_page": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"description": "Number of items per page"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"orderId"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"security": [
|
|
82
|
+
{
|
|
83
|
+
"apiToken": []
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"group": "mail"
|
|
87
|
+
},
|
|
3
88
|
{
|
|
4
89
|
"name": "mail_createAPITokenV1",
|
|
5
90
|
"description": "Create an API token for the given mail order. The token grants access\nto the [Hostinger Email API](https://api.mail.hostinger.com/), where\nyou can provision and manage the mailboxes it is scoped to.\n\nThe plaintext token is returned only in this response, never again.\nA maximum of 10 tokens can exist per order. Use\n`scope.has_all_mailboxes` to cover all current and future mailboxes,\nor list specific mailboxes in `scope.mailbox_ids`.",
|
|
@@ -253,6 +338,110 @@ export default [
|
|
|
253
338
|
],
|
|
254
339
|
"group": "mail"
|
|
255
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"name": "mail_createCatchAllV1",
|
|
343
|
+
"description": "Create a catch-all that routes all messages sent to unknown addresses\nof the domain to the given mailbox. The mailbox address receives a\nconfirmation email and the catch-all becomes active only after it is\nconfirmed. A domain can have only one catch-all.",
|
|
344
|
+
"method": "POST",
|
|
345
|
+
"path": "/api/mail/v1/mailboxes/{mailboxId}/catchalls",
|
|
346
|
+
"inputSchema": {
|
|
347
|
+
"type": "object",
|
|
348
|
+
"properties": {
|
|
349
|
+
"mailboxId": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "Mailbox resource ID"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"required": [
|
|
355
|
+
"mailboxId"
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
"security": [
|
|
359
|
+
{
|
|
360
|
+
"apiToken": []
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"group": "mail"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "mail_deleteCatchAllV1",
|
|
367
|
+
"description": "Delete a catch-all. Messages sent to unknown addresses of the domain\nare no longer routed to the mailbox.",
|
|
368
|
+
"method": "DELETE",
|
|
369
|
+
"path": "/api/mail/v1/catchalls/{catchallId}",
|
|
370
|
+
"inputSchema": {
|
|
371
|
+
"type": "object",
|
|
372
|
+
"properties": {
|
|
373
|
+
"catchallId": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"description": "Catch-all resource ID"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"required": [
|
|
379
|
+
"catchallId"
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
"security": [
|
|
383
|
+
{
|
|
384
|
+
"apiToken": []
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"group": "mail"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "mail_listCatchAllsV1",
|
|
391
|
+
"description": "Retrieve a paginated list of catch-alls across all mailboxes of a\nmail order.",
|
|
392
|
+
"method": "GET",
|
|
393
|
+
"path": "/api/mail/v1/orders/{orderId}/catchalls",
|
|
394
|
+
"inputSchema": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {
|
|
397
|
+
"orderId": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"description": "Order resource ID"
|
|
400
|
+
},
|
|
401
|
+
"page": {
|
|
402
|
+
"type": "integer",
|
|
403
|
+
"description": "Page number"
|
|
404
|
+
},
|
|
405
|
+
"per_page": {
|
|
406
|
+
"type": "integer",
|
|
407
|
+
"description": "Number of items per page"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"required": [
|
|
411
|
+
"orderId"
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
"security": [
|
|
415
|
+
{
|
|
416
|
+
"apiToken": []
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"group": "mail"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "mail_resendCatchAllConfirmationV1",
|
|
423
|
+
"description": "Resend the confirmation email to the mailbox address of an\nunconfirmed catch-all.",
|
|
424
|
+
"method": "POST",
|
|
425
|
+
"path": "/api/mail/v1/catchalls/{catchallId}/confirmation/resend",
|
|
426
|
+
"inputSchema": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"properties": {
|
|
429
|
+
"catchallId": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"description": "Catch-all resource ID"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"required": [
|
|
435
|
+
"catchallId"
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
"security": [
|
|
439
|
+
{
|
|
440
|
+
"apiToken": []
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
"group": "mail"
|
|
444
|
+
},
|
|
256
445
|
{
|
|
257
446
|
"name": "mail_createForwarderV1",
|
|
258
447
|
"description": "Create a forwarder from the given mailbox to the destination address.\nThe destination receives a confirmation email and forwarding becomes\nactive only after it is confirmed.",
|
package/src/core/tools/mail.ts
CHANGED
|
@@ -14,6 +14,91 @@ export interface OpenApiTool extends Tool {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const tools: OpenApiTool[] = [
|
|
17
|
+
{
|
|
18
|
+
"name": "mail_createAliasV1",
|
|
19
|
+
"description": "Create an alias for the given mailbox. The alias address is formed\nfrom the given local part and the domain of the mailbox. Messages\nsent to the alias are delivered to the mailbox.",
|
|
20
|
+
"method": "POST",
|
|
21
|
+
"path": "/api/mail/v1/mailboxes/{mailboxId}/aliases",
|
|
22
|
+
"inputSchema": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"mailboxId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Mailbox resource ID"
|
|
28
|
+
},
|
|
29
|
+
"local_part": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Local part of the alias address (the part before the @). The domain is taken from the mailbox. Case-insensitive and stored lowercase; must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"mailboxId",
|
|
36
|
+
"local_part"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"security": [
|
|
40
|
+
{
|
|
41
|
+
"apiToken": []
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"group": "mail"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "mail_deleteAliasV1",
|
|
48
|
+
"description": "Delete an alias. Messages sent to the alias address are no longer\ndelivered to the mailbox.",
|
|
49
|
+
"method": "DELETE",
|
|
50
|
+
"path": "/api/mail/v1/aliases/{aliasId}",
|
|
51
|
+
"inputSchema": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"aliasId": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Alias resource ID"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"aliasId"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"security": [
|
|
64
|
+
{
|
|
65
|
+
"apiToken": []
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"group": "mail"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "mail_listAliasesV1",
|
|
72
|
+
"description": "Retrieve a paginated list of aliases across all mailboxes of a mail\norder.",
|
|
73
|
+
"method": "GET",
|
|
74
|
+
"path": "/api/mail/v1/orders/{orderId}/aliases",
|
|
75
|
+
"inputSchema": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"orderId": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "Order resource ID"
|
|
81
|
+
},
|
|
82
|
+
"page": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"description": "Page number"
|
|
85
|
+
},
|
|
86
|
+
"per_page": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"description": "Number of items per page"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": [
|
|
92
|
+
"orderId"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"security": [
|
|
96
|
+
{
|
|
97
|
+
"apiToken": []
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"group": "mail"
|
|
101
|
+
},
|
|
17
102
|
{
|
|
18
103
|
"name": "mail_createAPITokenV1",
|
|
19
104
|
"description": "Create an API token for the given mail order. The token grants access\nto the [Hostinger Email API](https://api.mail.hostinger.com/), where\nyou can provision and manage the mailboxes it is scoped to.\n\nThe plaintext token is returned only in this response, never again.\nA maximum of 10 tokens can exist per order. Use\n`scope.has_all_mailboxes` to cover all current and future mailboxes,\nor list specific mailboxes in `scope.mailbox_ids`.",
|
|
@@ -267,6 +352,110 @@ const tools: OpenApiTool[] = [
|
|
|
267
352
|
],
|
|
268
353
|
"group": "mail"
|
|
269
354
|
},
|
|
355
|
+
{
|
|
356
|
+
"name": "mail_createCatchAllV1",
|
|
357
|
+
"description": "Create a catch-all that routes all messages sent to unknown addresses\nof the domain to the given mailbox. The mailbox address receives a\nconfirmation email and the catch-all becomes active only after it is\nconfirmed. A domain can have only one catch-all.",
|
|
358
|
+
"method": "POST",
|
|
359
|
+
"path": "/api/mail/v1/mailboxes/{mailboxId}/catchalls",
|
|
360
|
+
"inputSchema": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"mailboxId": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"description": "Mailbox resource ID"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"required": [
|
|
369
|
+
"mailboxId"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
"security": [
|
|
373
|
+
{
|
|
374
|
+
"apiToken": []
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"group": "mail"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "mail_deleteCatchAllV1",
|
|
381
|
+
"description": "Delete a catch-all. Messages sent to unknown addresses of the domain\nare no longer routed to the mailbox.",
|
|
382
|
+
"method": "DELETE",
|
|
383
|
+
"path": "/api/mail/v1/catchalls/{catchallId}",
|
|
384
|
+
"inputSchema": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"properties": {
|
|
387
|
+
"catchallId": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"description": "Catch-all resource ID"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"required": [
|
|
393
|
+
"catchallId"
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
"security": [
|
|
397
|
+
{
|
|
398
|
+
"apiToken": []
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"group": "mail"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "mail_listCatchAllsV1",
|
|
405
|
+
"description": "Retrieve a paginated list of catch-alls across all mailboxes of a\nmail order.",
|
|
406
|
+
"method": "GET",
|
|
407
|
+
"path": "/api/mail/v1/orders/{orderId}/catchalls",
|
|
408
|
+
"inputSchema": {
|
|
409
|
+
"type": "object",
|
|
410
|
+
"properties": {
|
|
411
|
+
"orderId": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"description": "Order resource ID"
|
|
414
|
+
},
|
|
415
|
+
"page": {
|
|
416
|
+
"type": "integer",
|
|
417
|
+
"description": "Page number"
|
|
418
|
+
},
|
|
419
|
+
"per_page": {
|
|
420
|
+
"type": "integer",
|
|
421
|
+
"description": "Number of items per page"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"required": [
|
|
425
|
+
"orderId"
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
"security": [
|
|
429
|
+
{
|
|
430
|
+
"apiToken": []
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
"group": "mail"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "mail_resendCatchAllConfirmationV1",
|
|
437
|
+
"description": "Resend the confirmation email to the mailbox address of an\nunconfirmed catch-all.",
|
|
438
|
+
"method": "POST",
|
|
439
|
+
"path": "/api/mail/v1/catchalls/{catchallId}/confirmation/resend",
|
|
440
|
+
"inputSchema": {
|
|
441
|
+
"type": "object",
|
|
442
|
+
"properties": {
|
|
443
|
+
"catchallId": {
|
|
444
|
+
"type": "string",
|
|
445
|
+
"description": "Catch-all resource ID"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"required": [
|
|
449
|
+
"catchallId"
|
|
450
|
+
]
|
|
451
|
+
},
|
|
452
|
+
"security": [
|
|
453
|
+
{
|
|
454
|
+
"apiToken": []
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"group": "mail"
|
|
458
|
+
},
|
|
270
459
|
{
|
|
271
460
|
"name": "mail_createForwarderV1",
|
|
272
461
|
"description": "Create a forwarder from the given mailbox to the destination address.\nThe destination receives a confirmation email and forwarding becomes\nactive only after it is confirmed.",
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.24.0', tools });
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.24.0', tools });
|
package/src/servers/all.js
CHANGED
package/src/servers/all.ts
CHANGED
package/src/servers/billing.js
CHANGED
package/src/servers/billing.ts
CHANGED
package/src/servers/dns.js
CHANGED
package/src/servers/dns.ts
CHANGED
package/src/servers/domains.js
CHANGED
package/src/servers/domains.ts
CHANGED
package/src/servers/ecommerce.js
CHANGED
package/src/servers/ecommerce.ts
CHANGED
package/src/servers/horizons.js
CHANGED
package/src/servers/horizons.ts
CHANGED
package/src/servers/hosting.js
CHANGED
package/src/servers/hosting.ts
CHANGED
package/src/servers/mail.js
CHANGED
package/src/servers/mail.ts
CHANGED
package/src/servers/reach.js
CHANGED
package/src/servers/reach.ts
CHANGED
package/src/servers/vps.js
CHANGED
package/src/servers/vps.ts
CHANGED
package/src/servers/wordpress.js
CHANGED
package/src/servers/wordpress.ts
CHANGED