hostinger-api-mcp 0.2.4 → 0.2.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 +118 -2
- package/package.json +1 -1
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +397 -0
- package/src/core/tools/all.ts +397 -0
- package/src/core/tools/hosting.js +397 -0
- package/src/core/tools/hosting.ts +397 -0
- 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/hosting.js +1 -1
- package/src/servers/hosting.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/types.d.ts +288 -0
|
@@ -267,6 +267,40 @@ const tools: OpenApiTool[] = [
|
|
|
267
267
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
268
268
|
"group": "hosting"
|
|
269
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"name": "hosting_changeDatabasePasswordV1",
|
|
272
|
+
"description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
|
|
273
|
+
"method": "PATCH",
|
|
274
|
+
"path": "/api/hosting/v1/accounts/{username}/databases/{name}/change-password",
|
|
275
|
+
"inputSchema": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"username": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "username parameter"
|
|
281
|
+
},
|
|
282
|
+
"name": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"description": "Full database name as returned by the list databases endpoint."
|
|
285
|
+
},
|
|
286
|
+
"password": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"description": "New database user password."
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": [
|
|
292
|
+
"username",
|
|
293
|
+
"name",
|
|
294
|
+
"password"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
"security": [
|
|
298
|
+
{
|
|
299
|
+
"apiToken": []
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"group": "hosting"
|
|
303
|
+
},
|
|
270
304
|
{
|
|
271
305
|
"name": "hosting_listAccountDatabasesV1",
|
|
272
306
|
"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.",
|
|
@@ -384,6 +418,64 @@ const tools: OpenApiTool[] = [
|
|
|
384
418
|
],
|
|
385
419
|
"group": "hosting"
|
|
386
420
|
},
|
|
421
|
+
{
|
|
422
|
+
"name": "hosting_repairDatabaseV1",
|
|
423
|
+
"description": "Repairs corrupted database tables asynchronously.\n\nUse when database errors, crashes, or corruption are reported.\nThe database name must be the full name returned by the list databases endpoint.",
|
|
424
|
+
"method": "PATCH",
|
|
425
|
+
"path": "/api/hosting/v1/accounts/{username}/databases/{name}/repair",
|
|
426
|
+
"inputSchema": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"properties": {
|
|
429
|
+
"username": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"description": "username parameter"
|
|
432
|
+
},
|
|
433
|
+
"name": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"description": "Full database name as returned by the list databases endpoint."
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"required": [
|
|
439
|
+
"username",
|
|
440
|
+
"name"
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
"security": [
|
|
444
|
+
{
|
|
445
|
+
"apiToken": []
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"group": "hosting"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "hosting_getPhpMyAdminLinkV1",
|
|
452
|
+
"description": "Returns a direct sign-on link to phpMyAdmin for the specified database.\n\nUse this when a visual database interface is needed for SQL queries, imports, exports, or table management.\nThe database name must be the full name returned by the list databases endpoint.",
|
|
453
|
+
"method": "GET",
|
|
454
|
+
"path": "/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link",
|
|
455
|
+
"inputSchema": {
|
|
456
|
+
"type": "object",
|
|
457
|
+
"properties": {
|
|
458
|
+
"username": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"description": "username parameter"
|
|
461
|
+
},
|
|
462
|
+
"name": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"description": "Full database name as returned by the list databases endpoint."
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"required": [
|
|
468
|
+
"username",
|
|
469
|
+
"name"
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
|
+
"security": [
|
|
473
|
+
{
|
|
474
|
+
"apiToken": []
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"group": "hosting"
|
|
478
|
+
},
|
|
387
479
|
{
|
|
388
480
|
"name": "hosting_listAvailableDatacentersV1",
|
|
389
481
|
"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.",
|
|
@@ -651,6 +743,179 @@ const tools: OpenApiTool[] = [
|
|
|
651
743
|
],
|
|
652
744
|
"group": "hosting"
|
|
653
745
|
},
|
|
746
|
+
{
|
|
747
|
+
"name": "hosting_listNode.jsBuildsV1",
|
|
748
|
+
"description": "Retrieve a paginated list of Node.js build processes for a specific website.\n\nEach build represents a single run of the Node.js build pipeline. Use the `states`\nquery parameter to filter results by build state (pending, running, completed, failed).\nUse the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.",
|
|
749
|
+
"method": "GET",
|
|
750
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
|
|
751
|
+
"inputSchema": {
|
|
752
|
+
"type": "object",
|
|
753
|
+
"properties": {
|
|
754
|
+
"username": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"description": "username parameter"
|
|
757
|
+
},
|
|
758
|
+
"domain": {
|
|
759
|
+
"type": "string",
|
|
760
|
+
"description": "Domain name"
|
|
761
|
+
},
|
|
762
|
+
"page": {
|
|
763
|
+
"type": "integer",
|
|
764
|
+
"description": "Page number"
|
|
765
|
+
},
|
|
766
|
+
"per_page": {
|
|
767
|
+
"type": "integer",
|
|
768
|
+
"description": "Number of items per page"
|
|
769
|
+
},
|
|
770
|
+
"states": {
|
|
771
|
+
"type": "array",
|
|
772
|
+
"description": "Build states to filter by",
|
|
773
|
+
"items": {
|
|
774
|
+
"type": "string",
|
|
775
|
+
"description": "states parameter",
|
|
776
|
+
"enum": [
|
|
777
|
+
"pending",
|
|
778
|
+
"running",
|
|
779
|
+
"completed",
|
|
780
|
+
"failed"
|
|
781
|
+
]
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"required": [
|
|
786
|
+
"username",
|
|
787
|
+
"domain"
|
|
788
|
+
]
|
|
789
|
+
},
|
|
790
|
+
"security": [
|
|
791
|
+
{
|
|
792
|
+
"apiToken": []
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
"group": "hosting"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "hosting_createNode.jsBuildFromArchiveV1",
|
|
799
|
+
"description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
|
|
800
|
+
"method": "POST",
|
|
801
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive",
|
|
802
|
+
"inputSchema": {
|
|
803
|
+
"type": "object",
|
|
804
|
+
"properties": {
|
|
805
|
+
"username": {
|
|
806
|
+
"type": "string",
|
|
807
|
+
"description": "username parameter"
|
|
808
|
+
},
|
|
809
|
+
"domain": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"description": "Domain name"
|
|
812
|
+
},
|
|
813
|
+
"archive": {
|
|
814
|
+
"type": "string",
|
|
815
|
+
"description": "Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB"
|
|
816
|
+
},
|
|
817
|
+
"node_version": {
|
|
818
|
+
"type": "integer",
|
|
819
|
+
"description": "Node.js version override (auto-detected from package.json if omitted)",
|
|
820
|
+
"enum": [
|
|
821
|
+
18,
|
|
822
|
+
20,
|
|
823
|
+
22,
|
|
824
|
+
24
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
"app_type": {
|
|
828
|
+
"type": "string",
|
|
829
|
+
"description": "Node.js application type override",
|
|
830
|
+
"enum": [
|
|
831
|
+
"create-react-app",
|
|
832
|
+
"vite",
|
|
833
|
+
"angular",
|
|
834
|
+
"react",
|
|
835
|
+
"vue",
|
|
836
|
+
"parcel",
|
|
837
|
+
"express",
|
|
838
|
+
"fastify",
|
|
839
|
+
"nest"
|
|
840
|
+
]
|
|
841
|
+
},
|
|
842
|
+
"root_directory": {
|
|
843
|
+
"type": "string",
|
|
844
|
+
"description": "Application root directory override (where package.json is located) relative to public_html"
|
|
845
|
+
},
|
|
846
|
+
"output_directory": {
|
|
847
|
+
"type": "string",
|
|
848
|
+
"description": "Build output directory override relative to the root directory"
|
|
849
|
+
},
|
|
850
|
+
"build_script": {
|
|
851
|
+
"type": "string",
|
|
852
|
+
"description": "Build script override"
|
|
853
|
+
},
|
|
854
|
+
"entry_file": {
|
|
855
|
+
"type": "string",
|
|
856
|
+
"description": "Main entry point file override"
|
|
857
|
+
},
|
|
858
|
+
"package_manager": {
|
|
859
|
+
"type": "string",
|
|
860
|
+
"description": "Package manager override",
|
|
861
|
+
"enum": [
|
|
862
|
+
"npm",
|
|
863
|
+
"yarn",
|
|
864
|
+
"pnpm"
|
|
865
|
+
]
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"required": [
|
|
869
|
+
"username",
|
|
870
|
+
"domain",
|
|
871
|
+
"archive"
|
|
872
|
+
]
|
|
873
|
+
},
|
|
874
|
+
"security": [
|
|
875
|
+
{
|
|
876
|
+
"apiToken": []
|
|
877
|
+
}
|
|
878
|
+
],
|
|
879
|
+
"group": "hosting"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "hosting_getNode.jsBuildLogsV1",
|
|
883
|
+
"description": "Retrieve logs from a specific Node.js build process.\n\nTo stream live output while a build is running, poll this endpoint repeatedly\nwhile the build state is `running`, passing the previously returned `lines` count\nas `from_line` to fetch only new output since the last call.\nLog content may contain ANSI escape sequences (color codes).",
|
|
884
|
+
"method": "GET",
|
|
885
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs",
|
|
886
|
+
"inputSchema": {
|
|
887
|
+
"type": "object",
|
|
888
|
+
"properties": {
|
|
889
|
+
"username": {
|
|
890
|
+
"type": "string",
|
|
891
|
+
"description": "username parameter"
|
|
892
|
+
},
|
|
893
|
+
"domain": {
|
|
894
|
+
"type": "string",
|
|
895
|
+
"description": "Domain name"
|
|
896
|
+
},
|
|
897
|
+
"uuid": {
|
|
898
|
+
"type": "string",
|
|
899
|
+
"description": "Build UUID"
|
|
900
|
+
},
|
|
901
|
+
"from_line": {
|
|
902
|
+
"type": "integer",
|
|
903
|
+
"description": "Line from which to start retrieving logs"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"required": [
|
|
907
|
+
"username",
|
|
908
|
+
"domain",
|
|
909
|
+
"uuid"
|
|
910
|
+
]
|
|
911
|
+
},
|
|
912
|
+
"security": [
|
|
913
|
+
{
|
|
914
|
+
"apiToken": []
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"group": "hosting"
|
|
918
|
+
},
|
|
654
919
|
{
|
|
655
920
|
"name": "hosting_listOrdersV1",
|
|
656
921
|
"description": "Retrieve a paginated list of orders accessible to the authenticated client.\n\nThis endpoint returns orders of your hosting accounts as well as orders\nof other client hosting accounts that have shared access with you.\n\nUse the available query parameters to filter results by order statuses\nor specific order IDs for more targeted results.",
|
|
@@ -773,6 +1038,138 @@ const tools: OpenApiTool[] = [
|
|
|
773
1038
|
}
|
|
774
1039
|
],
|
|
775
1040
|
"group": "hosting"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"name": "hosting_installWordPressV1",
|
|
1044
|
+
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
|
|
1045
|
+
"method": "POST",
|
|
1046
|
+
"path": "/api/hosting/v1/accounts/{username}/wordpress/installations",
|
|
1047
|
+
"inputSchema": {
|
|
1048
|
+
"type": "object",
|
|
1049
|
+
"properties": {
|
|
1050
|
+
"username": {
|
|
1051
|
+
"type": "string",
|
|
1052
|
+
"description": "username parameter"
|
|
1053
|
+
},
|
|
1054
|
+
"domain": {
|
|
1055
|
+
"type": "string",
|
|
1056
|
+
"description": "Domain of the existing website where WordPress will be installed"
|
|
1057
|
+
},
|
|
1058
|
+
"site_title": {
|
|
1059
|
+
"type": "string",
|
|
1060
|
+
"description": "Title of the WordPress site"
|
|
1061
|
+
},
|
|
1062
|
+
"language": {
|
|
1063
|
+
"type": "string",
|
|
1064
|
+
"description": "WordPress locale. Defaults to en_US when omitted."
|
|
1065
|
+
},
|
|
1066
|
+
"directory": {
|
|
1067
|
+
"type": "string",
|
|
1068
|
+
"description": "Relative directory to install WordPress into. Defaults to the website root when omitted."
|
|
1069
|
+
},
|
|
1070
|
+
"overwrite": {
|
|
1071
|
+
"type": "boolean",
|
|
1072
|
+
"description": "When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true."
|
|
1073
|
+
},
|
|
1074
|
+
"auto_updates": {
|
|
1075
|
+
"type": "string",
|
|
1076
|
+
"description": "WordPress core auto-update policy",
|
|
1077
|
+
"enum": [
|
|
1078
|
+
"all",
|
|
1079
|
+
"none",
|
|
1080
|
+
"minor"
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
"version": {
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
"description": "WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected."
|
|
1086
|
+
},
|
|
1087
|
+
"credentials": {
|
|
1088
|
+
"type": "object",
|
|
1089
|
+
"description": "WordPress admin credentials",
|
|
1090
|
+
"properties": {
|
|
1091
|
+
"email": {
|
|
1092
|
+
"type": "string",
|
|
1093
|
+
"description": "email parameter"
|
|
1094
|
+
},
|
|
1095
|
+
"login": {
|
|
1096
|
+
"type": "string",
|
|
1097
|
+
"description": "WordPress admin username"
|
|
1098
|
+
},
|
|
1099
|
+
"password": {
|
|
1100
|
+
"type": "string",
|
|
1101
|
+
"description": "password parameter"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"required": [
|
|
1105
|
+
"email",
|
|
1106
|
+
"login",
|
|
1107
|
+
"password"
|
|
1108
|
+
]
|
|
1109
|
+
},
|
|
1110
|
+
"database": {
|
|
1111
|
+
"type": "object",
|
|
1112
|
+
"description": "Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.",
|
|
1113
|
+
"properties": {
|
|
1114
|
+
"name": {
|
|
1115
|
+
"type": "string",
|
|
1116
|
+
"description": "Database name (username prefix added if missing)"
|
|
1117
|
+
},
|
|
1118
|
+
"password": {
|
|
1119
|
+
"type": "string",
|
|
1120
|
+
"description": "password parameter"
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
"required": [
|
|
1126
|
+
"username",
|
|
1127
|
+
"domain",
|
|
1128
|
+
"site_title",
|
|
1129
|
+
"credentials"
|
|
1130
|
+
]
|
|
1131
|
+
},
|
|
1132
|
+
"security": [
|
|
1133
|
+
{
|
|
1134
|
+
"apiToken": []
|
|
1135
|
+
}
|
|
1136
|
+
],
|
|
1137
|
+
"group": "hosting"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"name": "hosting_listWordPressInstallationsV1",
|
|
1141
|
+
"description": "List WordPress installations accessible to the authenticated client.\n\nUse this endpoint to discover existing WordPress installations and to poll\nfor installation status after calling the install endpoint. When a newly\nrequested installation appears in this list, WordPress is ready. Filter by\nusername and domain to narrow results to a specific website.\n\nEach installation includes a `valid` flag and, when invalid, a\n`validationError` describing why.",
|
|
1142
|
+
"method": "GET",
|
|
1143
|
+
"path": "/api/hosting/v1/wordpress/installations",
|
|
1144
|
+
"inputSchema": {
|
|
1145
|
+
"type": "object",
|
|
1146
|
+
"properties": {
|
|
1147
|
+
"username": {
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"description": "Filter by specific username"
|
|
1150
|
+
},
|
|
1151
|
+
"domain": {
|
|
1152
|
+
"type": "string",
|
|
1153
|
+
"description": "Filter by domain name (exact match)"
|
|
1154
|
+
},
|
|
1155
|
+
"ownership": {
|
|
1156
|
+
"type": "string",
|
|
1157
|
+
"description": "Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.",
|
|
1158
|
+
"enum": [
|
|
1159
|
+
"owned",
|
|
1160
|
+
"managed",
|
|
1161
|
+
"all"
|
|
1162
|
+
]
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
"required": []
|
|
1166
|
+
},
|
|
1167
|
+
"security": [
|
|
1168
|
+
{
|
|
1169
|
+
"apiToken": []
|
|
1170
|
+
}
|
|
1171
|
+
],
|
|
1172
|
+
"group": "hosting"
|
|
776
1173
|
}
|
|
777
1174
|
];
|
|
778
1175
|
export default 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/hosting.js
CHANGED
package/src/servers/hosting.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