hostinger-api-mcp 0.2.2 → 0.2.4

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.
@@ -1297,6 +1297,123 @@ const tools: OpenApiTool[] = [
1297
1297
  ],
1298
1298
  "group": "domains"
1299
1299
  },
1300
+ {
1301
+ "name": "hosting_listAccountDatabasesV1",
1302
+ "description": "Returns a paginated list of databases for the specified account.\n\nUse the domain and is_assigned filters to find databases assigned to a specific domain.",
1303
+ "method": "GET",
1304
+ "path": "/api/hosting/v1/accounts/{username}/databases",
1305
+ "inputSchema": {
1306
+ "type": "object",
1307
+ "properties": {
1308
+ "username": {
1309
+ "type": "string",
1310
+ "description": "username parameter"
1311
+ },
1312
+ "page": {
1313
+ "type": "integer",
1314
+ "description": "Page number"
1315
+ },
1316
+ "per_page": {
1317
+ "type": "integer",
1318
+ "description": "Number of items per page"
1319
+ },
1320
+ "domain": {
1321
+ "type": "string",
1322
+ "description": "Filter by domain name (exact match)"
1323
+ },
1324
+ "is_assigned": {
1325
+ "type": "boolean",
1326
+ "description": "When used with domain, return only databases assigned to that domain."
1327
+ },
1328
+ "search": {
1329
+ "type": "string",
1330
+ "description": "Search databases by name, user, or creation date."
1331
+ }
1332
+ },
1333
+ "required": [
1334
+ "username"
1335
+ ]
1336
+ },
1337
+ "security": [
1338
+ {
1339
+ "apiToken": []
1340
+ }
1341
+ ],
1342
+ "group": "hosting"
1343
+ },
1344
+ {
1345
+ "name": "hosting_createAccountDatabaseV1",
1346
+ "description": "Creates a database with a database user and password for the specified account.\n\nThe database name and user are automatically prefixed with the account username when needed.",
1347
+ "method": "POST",
1348
+ "path": "/api/hosting/v1/accounts/{username}/databases",
1349
+ "inputSchema": {
1350
+ "type": "object",
1351
+ "properties": {
1352
+ "username": {
1353
+ "type": "string",
1354
+ "description": "username parameter"
1355
+ },
1356
+ "name": {
1357
+ "type": "string",
1358
+ "description": "Database name. If the account username prefix is omitted, it is added automatically."
1359
+ },
1360
+ "user": {
1361
+ "type": "string",
1362
+ "description": "Database user. If the account username prefix is omitted, it is added automatically."
1363
+ },
1364
+ "password": {
1365
+ "type": "string",
1366
+ "description": "Database user password."
1367
+ },
1368
+ "website_domain": {
1369
+ "type": "string",
1370
+ "description": "Website domain assigned to the database."
1371
+ }
1372
+ },
1373
+ "required": [
1374
+ "username",
1375
+ "name",
1376
+ "user",
1377
+ "password",
1378
+ "website_domain"
1379
+ ]
1380
+ },
1381
+ "security": [
1382
+ {
1383
+ "apiToken": []
1384
+ }
1385
+ ],
1386
+ "group": "hosting"
1387
+ },
1388
+ {
1389
+ "name": "hosting_deleteAccountDatabaseV1",
1390
+ "description": "Permanently deletes a database and its remote connections.\n\nThe database name must be the full name returned by the list databases endpoint.",
1391
+ "method": "DELETE",
1392
+ "path": "/api/hosting/v1/accounts/{username}/databases/{name}",
1393
+ "inputSchema": {
1394
+ "type": "object",
1395
+ "properties": {
1396
+ "username": {
1397
+ "type": "string",
1398
+ "description": "username parameter"
1399
+ },
1400
+ "name": {
1401
+ "type": "string",
1402
+ "description": "Full database name as returned by the list databases endpoint."
1403
+ }
1404
+ },
1405
+ "required": [
1406
+ "username",
1407
+ "name"
1408
+ ]
1409
+ },
1410
+ "security": [
1411
+ {
1412
+ "apiToken": []
1413
+ }
1414
+ ],
1415
+ "group": "hosting"
1416
+ },
1300
1417
  {
1301
1418
  "name": "hosting_listAvailableDatacentersV1",
1302
1419
  "description": "Retrieve a list of datacenters available for setting up hosting plans\nbased on available datacenter capacity and hosting plan of your order.\nThe first item in the list is the best match for your specific order\nrequirements.",
@@ -1338,6 +1455,208 @@ const tools: OpenApiTool[] = [
1338
1455
  ],
1339
1456
  "group": "hosting"
1340
1457
  },
1458
+ {
1459
+ "name": "hosting_listWebsiteParkedDomainsV1",
1460
+ "description": "Retrieve all parked or alias domains created under the selected website.\n\nUse this endpoint to inspect parked domain configuration for a specific website,\nincluding the parent domain and root directory assigned to each parked domain.",
1461
+ "method": "GET",
1462
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains",
1463
+ "inputSchema": {
1464
+ "type": "object",
1465
+ "properties": {
1466
+ "username": {
1467
+ "type": "string",
1468
+ "description": "username parameter"
1469
+ },
1470
+ "domain": {
1471
+ "type": "string",
1472
+ "description": "Domain name"
1473
+ }
1474
+ },
1475
+ "required": [
1476
+ "username",
1477
+ "domain"
1478
+ ]
1479
+ },
1480
+ "security": [
1481
+ {
1482
+ "apiToken": []
1483
+ }
1484
+ ],
1485
+ "group": "hosting"
1486
+ },
1487
+ {
1488
+ "name": "hosting_createWebsiteParkedDomainV1",
1489
+ "description": "Create a parked or alias domain for the selected website.\n\nProvide a domain name or IP address to park on the website so it serves the same content\nas the parent domain.",
1490
+ "method": "POST",
1491
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains",
1492
+ "inputSchema": {
1493
+ "type": "object",
1494
+ "properties": {
1495
+ "username": {
1496
+ "type": "string",
1497
+ "description": "username parameter"
1498
+ },
1499
+ "domain": {
1500
+ "type": "string",
1501
+ "description": "Domain name"
1502
+ },
1503
+ "parked_domain": {
1504
+ "type": "string",
1505
+ "description": "Domain name or IP address to park on the selected website"
1506
+ }
1507
+ },
1508
+ "required": [
1509
+ "username",
1510
+ "domain",
1511
+ "parked_domain"
1512
+ ]
1513
+ },
1514
+ "security": [
1515
+ {
1516
+ "apiToken": []
1517
+ }
1518
+ ],
1519
+ "group": "hosting"
1520
+ },
1521
+ {
1522
+ "name": "hosting_deleteWebsiteParkedDomainV1",
1523
+ "description": "Delete an existing parked or alias domain from the selected website.\n\nUse this endpoint to remove parked domains that are no longer needed.",
1524
+ "method": "DELETE",
1525
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains/{parkedDomain}",
1526
+ "inputSchema": {
1527
+ "type": "object",
1528
+ "properties": {
1529
+ "username": {
1530
+ "type": "string",
1531
+ "description": "username parameter"
1532
+ },
1533
+ "domain": {
1534
+ "type": "string",
1535
+ "description": "Domain name"
1536
+ },
1537
+ "parkedDomain": {
1538
+ "type": "string",
1539
+ "description": "parkedDomain parameter"
1540
+ }
1541
+ },
1542
+ "required": [
1543
+ "username",
1544
+ "domain",
1545
+ "parkedDomain"
1546
+ ]
1547
+ },
1548
+ "security": [
1549
+ {
1550
+ "apiToken": []
1551
+ }
1552
+ ],
1553
+ "group": "hosting"
1554
+ },
1555
+ {
1556
+ "name": "hosting_listWebsiteSubdomainsV1",
1557
+ "description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
1558
+ "method": "GET",
1559
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
1560
+ "inputSchema": {
1561
+ "type": "object",
1562
+ "properties": {
1563
+ "username": {
1564
+ "type": "string",
1565
+ "description": "username parameter"
1566
+ },
1567
+ "domain": {
1568
+ "type": "string",
1569
+ "description": "Domain name"
1570
+ }
1571
+ },
1572
+ "required": [
1573
+ "username",
1574
+ "domain"
1575
+ ]
1576
+ },
1577
+ "security": [
1578
+ {
1579
+ "apiToken": []
1580
+ }
1581
+ ],
1582
+ "group": "hosting"
1583
+ },
1584
+ {
1585
+ "name": "hosting_createWebsiteSubdomainV1",
1586
+ "description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
1587
+ "method": "POST",
1588
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
1589
+ "inputSchema": {
1590
+ "type": "object",
1591
+ "properties": {
1592
+ "username": {
1593
+ "type": "string",
1594
+ "description": "username parameter"
1595
+ },
1596
+ "domain": {
1597
+ "type": "string",
1598
+ "description": "Domain name"
1599
+ },
1600
+ "subdomain": {
1601
+ "type": "string",
1602
+ "description": "Subdomain prefix to create under the selected website"
1603
+ },
1604
+ "directory": {
1605
+ "type": "string",
1606
+ "description": "Directory name for the subdomain relative to the website root"
1607
+ },
1608
+ "is_using_public_directory": {
1609
+ "type": "boolean",
1610
+ "description": "Use the website public directory as the subdomain root directory"
1611
+ }
1612
+ },
1613
+ "required": [
1614
+ "username",
1615
+ "domain",
1616
+ "subdomain"
1617
+ ]
1618
+ },
1619
+ "security": [
1620
+ {
1621
+ "apiToken": []
1622
+ }
1623
+ ],
1624
+ "group": "hosting"
1625
+ },
1626
+ {
1627
+ "name": "hosting_deleteWebsiteSubdomainV1",
1628
+ "description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
1629
+ "method": "DELETE",
1630
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
1631
+ "inputSchema": {
1632
+ "type": "object",
1633
+ "properties": {
1634
+ "username": {
1635
+ "type": "string",
1636
+ "description": "username parameter"
1637
+ },
1638
+ "domain": {
1639
+ "type": "string",
1640
+ "description": "Domain name"
1641
+ },
1642
+ "subdomain": {
1643
+ "type": "string",
1644
+ "description": "subdomain parameter"
1645
+ }
1646
+ },
1647
+ "required": [
1648
+ "username",
1649
+ "domain",
1650
+ "subdomain"
1651
+ ]
1652
+ },
1653
+ "security": [
1654
+ {
1655
+ "apiToken": []
1656
+ }
1657
+ ],
1658
+ "group": "hosting"
1659
+ },
1341
1660
  {
1342
1661
  "name": "hosting_verifyDomainOwnershipV1",
1343
1662
  "description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
@@ -257,6 +257,123 @@ export default [
257
257
  "handlerMethod": "handleShowJsDeploymentLogs",
258
258
  "group": "hosting"
259
259
  },
260
+ {
261
+ "name": "hosting_listAccountDatabasesV1",
262
+ "description": "Returns a paginated list of databases for the specified account.\n\nUse the domain and is_assigned filters to find databases assigned to a specific domain.",
263
+ "method": "GET",
264
+ "path": "/api/hosting/v1/accounts/{username}/databases",
265
+ "inputSchema": {
266
+ "type": "object",
267
+ "properties": {
268
+ "username": {
269
+ "type": "string",
270
+ "description": "username parameter"
271
+ },
272
+ "page": {
273
+ "type": "integer",
274
+ "description": "Page number"
275
+ },
276
+ "per_page": {
277
+ "type": "integer",
278
+ "description": "Number of items per page"
279
+ },
280
+ "domain": {
281
+ "type": "string",
282
+ "description": "Filter by domain name (exact match)"
283
+ },
284
+ "is_assigned": {
285
+ "type": "boolean",
286
+ "description": "When used with domain, return only databases assigned to that domain."
287
+ },
288
+ "search": {
289
+ "type": "string",
290
+ "description": "Search databases by name, user, or creation date."
291
+ }
292
+ },
293
+ "required": [
294
+ "username"
295
+ ]
296
+ },
297
+ "security": [
298
+ {
299
+ "apiToken": []
300
+ }
301
+ ],
302
+ "group": "hosting"
303
+ },
304
+ {
305
+ "name": "hosting_createAccountDatabaseV1",
306
+ "description": "Creates a database with a database user and password for the specified account.\n\nThe database name and user are automatically prefixed with the account username when needed.",
307
+ "method": "POST",
308
+ "path": "/api/hosting/v1/accounts/{username}/databases",
309
+ "inputSchema": {
310
+ "type": "object",
311
+ "properties": {
312
+ "username": {
313
+ "type": "string",
314
+ "description": "username parameter"
315
+ },
316
+ "name": {
317
+ "type": "string",
318
+ "description": "Database name. If the account username prefix is omitted, it is added automatically."
319
+ },
320
+ "user": {
321
+ "type": "string",
322
+ "description": "Database user. If the account username prefix is omitted, it is added automatically."
323
+ },
324
+ "password": {
325
+ "type": "string",
326
+ "description": "Database user password."
327
+ },
328
+ "website_domain": {
329
+ "type": "string",
330
+ "description": "Website domain assigned to the database."
331
+ }
332
+ },
333
+ "required": [
334
+ "username",
335
+ "name",
336
+ "user",
337
+ "password",
338
+ "website_domain"
339
+ ]
340
+ },
341
+ "security": [
342
+ {
343
+ "apiToken": []
344
+ }
345
+ ],
346
+ "group": "hosting"
347
+ },
348
+ {
349
+ "name": "hosting_deleteAccountDatabaseV1",
350
+ "description": "Permanently deletes a database and its remote connections.\n\nThe database name must be the full name returned by the list databases endpoint.",
351
+ "method": "DELETE",
352
+ "path": "/api/hosting/v1/accounts/{username}/databases/{name}",
353
+ "inputSchema": {
354
+ "type": "object",
355
+ "properties": {
356
+ "username": {
357
+ "type": "string",
358
+ "description": "username parameter"
359
+ },
360
+ "name": {
361
+ "type": "string",
362
+ "description": "Full database name as returned by the list databases endpoint."
363
+ }
364
+ },
365
+ "required": [
366
+ "username",
367
+ "name"
368
+ ]
369
+ },
370
+ "security": [
371
+ {
372
+ "apiToken": []
373
+ }
374
+ ],
375
+ "group": "hosting"
376
+ },
260
377
  {
261
378
  "name": "hosting_listAvailableDatacentersV1",
262
379
  "description": "Retrieve a list of datacenters available for setting up hosting plans\nbased on available datacenter capacity and hosting plan of your order.\nThe first item in the list is the best match for your specific order\nrequirements.",
@@ -298,6 +415,208 @@ export default [
298
415
  ],
299
416
  "group": "hosting"
300
417
  },
418
+ {
419
+ "name": "hosting_listWebsiteParkedDomainsV1",
420
+ "description": "Retrieve all parked or alias domains created under the selected website.\n\nUse this endpoint to inspect parked domain configuration for a specific website,\nincluding the parent domain and root directory assigned to each parked domain.",
421
+ "method": "GET",
422
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains",
423
+ "inputSchema": {
424
+ "type": "object",
425
+ "properties": {
426
+ "username": {
427
+ "type": "string",
428
+ "description": "username parameter"
429
+ },
430
+ "domain": {
431
+ "type": "string",
432
+ "description": "Domain name"
433
+ }
434
+ },
435
+ "required": [
436
+ "username",
437
+ "domain"
438
+ ]
439
+ },
440
+ "security": [
441
+ {
442
+ "apiToken": []
443
+ }
444
+ ],
445
+ "group": "hosting"
446
+ },
447
+ {
448
+ "name": "hosting_createWebsiteParkedDomainV1",
449
+ "description": "Create a parked or alias domain for the selected website.\n\nProvide a domain name or IP address to park on the website so it serves the same content\nas the parent domain.",
450
+ "method": "POST",
451
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains",
452
+ "inputSchema": {
453
+ "type": "object",
454
+ "properties": {
455
+ "username": {
456
+ "type": "string",
457
+ "description": "username parameter"
458
+ },
459
+ "domain": {
460
+ "type": "string",
461
+ "description": "Domain name"
462
+ },
463
+ "parked_domain": {
464
+ "type": "string",
465
+ "description": "Domain name or IP address to park on the selected website"
466
+ }
467
+ },
468
+ "required": [
469
+ "username",
470
+ "domain",
471
+ "parked_domain"
472
+ ]
473
+ },
474
+ "security": [
475
+ {
476
+ "apiToken": []
477
+ }
478
+ ],
479
+ "group": "hosting"
480
+ },
481
+ {
482
+ "name": "hosting_deleteWebsiteParkedDomainV1",
483
+ "description": "Delete an existing parked or alias domain from the selected website.\n\nUse this endpoint to remove parked domains that are no longer needed.",
484
+ "method": "DELETE",
485
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains/{parkedDomain}",
486
+ "inputSchema": {
487
+ "type": "object",
488
+ "properties": {
489
+ "username": {
490
+ "type": "string",
491
+ "description": "username parameter"
492
+ },
493
+ "domain": {
494
+ "type": "string",
495
+ "description": "Domain name"
496
+ },
497
+ "parkedDomain": {
498
+ "type": "string",
499
+ "description": "parkedDomain parameter"
500
+ }
501
+ },
502
+ "required": [
503
+ "username",
504
+ "domain",
505
+ "parkedDomain"
506
+ ]
507
+ },
508
+ "security": [
509
+ {
510
+ "apiToken": []
511
+ }
512
+ ],
513
+ "group": "hosting"
514
+ },
515
+ {
516
+ "name": "hosting_listWebsiteSubdomainsV1",
517
+ "description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
518
+ "method": "GET",
519
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
520
+ "inputSchema": {
521
+ "type": "object",
522
+ "properties": {
523
+ "username": {
524
+ "type": "string",
525
+ "description": "username parameter"
526
+ },
527
+ "domain": {
528
+ "type": "string",
529
+ "description": "Domain name"
530
+ }
531
+ },
532
+ "required": [
533
+ "username",
534
+ "domain"
535
+ ]
536
+ },
537
+ "security": [
538
+ {
539
+ "apiToken": []
540
+ }
541
+ ],
542
+ "group": "hosting"
543
+ },
544
+ {
545
+ "name": "hosting_createWebsiteSubdomainV1",
546
+ "description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
547
+ "method": "POST",
548
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
549
+ "inputSchema": {
550
+ "type": "object",
551
+ "properties": {
552
+ "username": {
553
+ "type": "string",
554
+ "description": "username parameter"
555
+ },
556
+ "domain": {
557
+ "type": "string",
558
+ "description": "Domain name"
559
+ },
560
+ "subdomain": {
561
+ "type": "string",
562
+ "description": "Subdomain prefix to create under the selected website"
563
+ },
564
+ "directory": {
565
+ "type": "string",
566
+ "description": "Directory name for the subdomain relative to the website root"
567
+ },
568
+ "is_using_public_directory": {
569
+ "type": "boolean",
570
+ "description": "Use the website public directory as the subdomain root directory"
571
+ }
572
+ },
573
+ "required": [
574
+ "username",
575
+ "domain",
576
+ "subdomain"
577
+ ]
578
+ },
579
+ "security": [
580
+ {
581
+ "apiToken": []
582
+ }
583
+ ],
584
+ "group": "hosting"
585
+ },
586
+ {
587
+ "name": "hosting_deleteWebsiteSubdomainV1",
588
+ "description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
589
+ "method": "DELETE",
590
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
591
+ "inputSchema": {
592
+ "type": "object",
593
+ "properties": {
594
+ "username": {
595
+ "type": "string",
596
+ "description": "username parameter"
597
+ },
598
+ "domain": {
599
+ "type": "string",
600
+ "description": "Domain name"
601
+ },
602
+ "subdomain": {
603
+ "type": "string",
604
+ "description": "subdomain parameter"
605
+ }
606
+ },
607
+ "required": [
608
+ "username",
609
+ "domain",
610
+ "subdomain"
611
+ ]
612
+ },
613
+ "security": [
614
+ {
615
+ "apiToken": []
616
+ }
617
+ ],
618
+ "group": "hosting"
619
+ },
301
620
  {
302
621
  "name": "hosting_verifyDomainOwnershipV1",
303
622
  "description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",