hostinger-api-mcp 1.7.1 → 1.8.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/README.md +45 -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 +82 -0
- package/src/core/tools/all.ts +82 -0
- package/src/core/tools/hosting.js +82 -0
- package/src/core/tools/hosting.ts +82 -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/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 +71 -0
package/README.md
CHANGED
|
@@ -49,14 +49,14 @@ pnpm update -g hostinger-api-mcp
|
|
|
49
49
|
|
|
50
50
|
This package installs the following MCP server commands:
|
|
51
51
|
|
|
52
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
52
|
+
- `hostinger-api-mcp` — unified server with every tool (219 total)
|
|
53
53
|
- `hostinger-agency-hosting-mcp` — 14 tools for agency-hosting
|
|
54
54
|
- `hostinger-billing-mcp` — 7 tools for billing
|
|
55
55
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
56
56
|
- `hostinger-domains-mcp` — 19 tools for domains
|
|
57
57
|
- `hostinger-ecommerce-mcp` — 12 tools for ecommerce
|
|
58
58
|
- `hostinger-horizons-mcp` — 2 tools for horizons
|
|
59
|
-
- `hostinger-hosting-mcp` —
|
|
59
|
+
- `hostinger-hosting-mcp` — 48 tools for hosting
|
|
60
60
|
- `hostinger-reach-mcp` — 12 tools for reach
|
|
61
61
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
62
62
|
- `hostinger-wordpress-mcp` — 35 tools for wordpress
|
|
@@ -1211,6 +1211,49 @@ has no effect. Returns success even when the website has no server process to re
|
|
|
1211
1211
|
- **Method**: `POST`
|
|
1212
1212
|
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart`
|
|
1213
1213
|
|
|
1214
|
+
#### hosting_listNode_jsVulnerabilitiesV1
|
|
1215
|
+
|
|
1216
|
+
Lists known npm package vulnerabilities detected on a Node.js website, enriched with
|
|
1217
|
+
advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from
|
|
1218
|
+
the most severe to the least severe, then by publish date (newest first). Use the
|
|
1219
|
+
`severities` query parameter to filter.
|
|
1220
|
+
|
|
1221
|
+
Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the
|
|
1222
|
+
`Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with
|
|
1223
|
+
updated package versions. Auto-fix is only available for websites deployed from a
|
|
1224
|
+
connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to
|
|
1225
|
+
`true` are already included in an open patch pull request; while any patch pull
|
|
1226
|
+
request is open, new patch requests for this website are rejected until it is merged
|
|
1227
|
+
or closed.
|
|
1228
|
+
|
|
1229
|
+
Data comes from periodic dependency scans, so it may lag behind the latest deployment.
|
|
1230
|
+
An empty list means the most recent scan found no vulnerabilities; it does not
|
|
1231
|
+
guarantee the current deployment is vulnerability-free. Available on Business and
|
|
1232
|
+
Cloud Hosting plans.
|
|
1233
|
+
|
|
1234
|
+
- **Method**: `GET`
|
|
1235
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities`
|
|
1236
|
+
|
|
1237
|
+
#### hosting_patchNode_jsVulnerabilitiesV1
|
|
1238
|
+
|
|
1239
|
+
Patches the selected Node.js vulnerabilities by updating the affected package versions
|
|
1240
|
+
in `package.json` and opening a GitHub pull request in the connected repository. The
|
|
1241
|
+
customer reviews and merges the pull request; merging triggers the automatic deployment.
|
|
1242
|
+
|
|
1243
|
+
Auto-fix is only available for websites deployed from a connected GitHub repository.
|
|
1244
|
+
Websites deployed from an archive have no auto-fix path and return a 404. The Hostinger
|
|
1245
|
+
GitHub App needs write access to the repository; without it the request fails with a
|
|
1246
|
+
403 explaining the missing permission.
|
|
1247
|
+
|
|
1248
|
+
Only vulnerabilities with `is_patchable` set to `true` can be patched. Non-patchable
|
|
1249
|
+
IDs in the selection are skipped; the pull request covers the patchable subset, listed
|
|
1250
|
+
in `patched_vulnerability_ids`. Selections without any patchable vulnerability are
|
|
1251
|
+
rejected with a 422. Only one patch pull request can be open at a time per website;
|
|
1252
|
+
close or merge it before patching again. Available on Business and Cloud Hosting plans.
|
|
1253
|
+
|
|
1254
|
+
- **Method**: `POST`
|
|
1255
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities/patch`
|
|
1256
|
+
|
|
1214
1257
|
#### hosting_listOrdersV1
|
|
1215
1258
|
|
|
1216
1259
|
Retrieve a paginated list of orders accessible to the authenticated client.
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/hostinger/api-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.8.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.8.0",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
package/src/core/runtime.js
CHANGED
package/src/core/runtime.ts
CHANGED
package/src/core/tools/all.js
CHANGED
|
@@ -3288,6 +3288,88 @@ export default [
|
|
|
3288
3288
|
],
|
|
3289
3289
|
"group": "hosting"
|
|
3290
3290
|
},
|
|
3291
|
+
{
|
|
3292
|
+
"name": "hosting_listNode_jsVulnerabilitiesV1",
|
|
3293
|
+
"description": "Lists known npm package vulnerabilities detected on a Node.js website, enriched with\nadvisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from\nthe most severe to the least severe, then by publish date (newest first). Use the\n`severities` query parameter to filter.\n\nVulnerabilities with `is_patchable` set to `true` can be auto-fixed via the\n`Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with\nupdated package versions. Auto-fix is only available for websites deployed from a\nconnected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to\n`true` are already included in an open patch pull request; while any patch pull\nrequest is open, new patch requests for this website are rejected until it is merged\nor closed.\n\nData comes from periodic dependency scans, so it may lag behind the latest deployment.\nAn empty list means the most recent scan found no vulnerabilities; it does not\nguarantee the current deployment is vulnerability-free. Available on Business and\nCloud Hosting plans.",
|
|
3294
|
+
"method": "GET",
|
|
3295
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities",
|
|
3296
|
+
"inputSchema": {
|
|
3297
|
+
"type": "object",
|
|
3298
|
+
"properties": {
|
|
3299
|
+
"username": {
|
|
3300
|
+
"type": "string",
|
|
3301
|
+
"description": "username parameter"
|
|
3302
|
+
},
|
|
3303
|
+
"domain": {
|
|
3304
|
+
"type": "string",
|
|
3305
|
+
"description": "Domain name"
|
|
3306
|
+
},
|
|
3307
|
+
"severities": {
|
|
3308
|
+
"type": "array",
|
|
3309
|
+
"description": "Severities to filter by",
|
|
3310
|
+
"items": {
|
|
3311
|
+
"type": "string",
|
|
3312
|
+
"description": "severities parameter",
|
|
3313
|
+
"enum": [
|
|
3314
|
+
"low",
|
|
3315
|
+
"moderate",
|
|
3316
|
+
"high",
|
|
3317
|
+
"critical",
|
|
3318
|
+
"unknown"
|
|
3319
|
+
]
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
},
|
|
3323
|
+
"required": [
|
|
3324
|
+
"username",
|
|
3325
|
+
"domain"
|
|
3326
|
+
]
|
|
3327
|
+
},
|
|
3328
|
+
"security": [
|
|
3329
|
+
{
|
|
3330
|
+
"apiToken": []
|
|
3331
|
+
}
|
|
3332
|
+
],
|
|
3333
|
+
"group": "hosting"
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"name": "hosting_patchNode_jsVulnerabilitiesV1",
|
|
3337
|
+
"description": "Patches the selected Node.js vulnerabilities by updating the affected package versions\nin `package.json` and opening a GitHub pull request in the connected repository. The\ncustomer reviews and merges the pull request; merging triggers the automatic deployment.\n\nAuto-fix is only available for websites deployed from a connected GitHub repository.\nWebsites deployed from an archive have no auto-fix path and return a 404. The Hostinger\nGitHub App needs write access to the repository; without it the request fails with a\n403 explaining the missing permission.\n\nOnly vulnerabilities with `is_patchable` set to `true` can be patched. Non-patchable\nIDs in the selection are skipped; the pull request covers the patchable subset, listed\nin `patched_vulnerability_ids`. Selections without any patchable vulnerability are\nrejected with a 422. Only one patch pull request can be open at a time per website;\nclose or merge it before patching again. Available on Business and Cloud Hosting plans.",
|
|
3338
|
+
"method": "POST",
|
|
3339
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities/patch",
|
|
3340
|
+
"inputSchema": {
|
|
3341
|
+
"type": "object",
|
|
3342
|
+
"properties": {
|
|
3343
|
+
"username": {
|
|
3344
|
+
"type": "string",
|
|
3345
|
+
"description": "username parameter"
|
|
3346
|
+
},
|
|
3347
|
+
"domain": {
|
|
3348
|
+
"type": "string",
|
|
3349
|
+
"description": "Domain name"
|
|
3350
|
+
},
|
|
3351
|
+
"vulnerability_ids": {
|
|
3352
|
+
"type": "array",
|
|
3353
|
+
"description": "List of vulnerability IDs to patch, as returned by the list vulnerabilities endpoint.",
|
|
3354
|
+
"items": {
|
|
3355
|
+
"type": "string",
|
|
3356
|
+
"description": "vulnerability_ids parameter"
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
},
|
|
3360
|
+
"required": [
|
|
3361
|
+
"username",
|
|
3362
|
+
"domain",
|
|
3363
|
+
"vulnerability_ids"
|
|
3364
|
+
]
|
|
3365
|
+
},
|
|
3366
|
+
"security": [
|
|
3367
|
+
{
|
|
3368
|
+
"apiToken": []
|
|
3369
|
+
}
|
|
3370
|
+
],
|
|
3371
|
+
"group": "hosting"
|
|
3372
|
+
},
|
|
3291
3373
|
{
|
|
3292
3374
|
"name": "hosting_listOrdersV1",
|
|
3293
3375
|
"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.",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -3302,6 +3302,88 @@ const tools: OpenApiTool[] = [
|
|
|
3302
3302
|
],
|
|
3303
3303
|
"group": "hosting"
|
|
3304
3304
|
},
|
|
3305
|
+
{
|
|
3306
|
+
"name": "hosting_listNode_jsVulnerabilitiesV1",
|
|
3307
|
+
"description": "Lists known npm package vulnerabilities detected on a Node.js website, enriched with\nadvisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from\nthe most severe to the least severe, then by publish date (newest first). Use the\n`severities` query parameter to filter.\n\nVulnerabilities with `is_patchable` set to `true` can be auto-fixed via the\n`Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with\nupdated package versions. Auto-fix is only available for websites deployed from a\nconnected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to\n`true` are already included in an open patch pull request; while any patch pull\nrequest is open, new patch requests for this website are rejected until it is merged\nor closed.\n\nData comes from periodic dependency scans, so it may lag behind the latest deployment.\nAn empty list means the most recent scan found no vulnerabilities; it does not\nguarantee the current deployment is vulnerability-free. Available on Business and\nCloud Hosting plans.",
|
|
3308
|
+
"method": "GET",
|
|
3309
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities",
|
|
3310
|
+
"inputSchema": {
|
|
3311
|
+
"type": "object",
|
|
3312
|
+
"properties": {
|
|
3313
|
+
"username": {
|
|
3314
|
+
"type": "string",
|
|
3315
|
+
"description": "username parameter"
|
|
3316
|
+
},
|
|
3317
|
+
"domain": {
|
|
3318
|
+
"type": "string",
|
|
3319
|
+
"description": "Domain name"
|
|
3320
|
+
},
|
|
3321
|
+
"severities": {
|
|
3322
|
+
"type": "array",
|
|
3323
|
+
"description": "Severities to filter by",
|
|
3324
|
+
"items": {
|
|
3325
|
+
"type": "string",
|
|
3326
|
+
"description": "severities parameter",
|
|
3327
|
+
"enum": [
|
|
3328
|
+
"low",
|
|
3329
|
+
"moderate",
|
|
3330
|
+
"high",
|
|
3331
|
+
"critical",
|
|
3332
|
+
"unknown"
|
|
3333
|
+
]
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
},
|
|
3337
|
+
"required": [
|
|
3338
|
+
"username",
|
|
3339
|
+
"domain"
|
|
3340
|
+
]
|
|
3341
|
+
},
|
|
3342
|
+
"security": [
|
|
3343
|
+
{
|
|
3344
|
+
"apiToken": []
|
|
3345
|
+
}
|
|
3346
|
+
],
|
|
3347
|
+
"group": "hosting"
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
"name": "hosting_patchNode_jsVulnerabilitiesV1",
|
|
3351
|
+
"description": "Patches the selected Node.js vulnerabilities by updating the affected package versions\nin `package.json` and opening a GitHub pull request in the connected repository. The\ncustomer reviews and merges the pull request; merging triggers the automatic deployment.\n\nAuto-fix is only available for websites deployed from a connected GitHub repository.\nWebsites deployed from an archive have no auto-fix path and return a 404. The Hostinger\nGitHub App needs write access to the repository; without it the request fails with a\n403 explaining the missing permission.\n\nOnly vulnerabilities with `is_patchable` set to `true` can be patched. Non-patchable\nIDs in the selection are skipped; the pull request covers the patchable subset, listed\nin `patched_vulnerability_ids`. Selections without any patchable vulnerability are\nrejected with a 422. Only one patch pull request can be open at a time per website;\nclose or merge it before patching again. Available on Business and Cloud Hosting plans.",
|
|
3352
|
+
"method": "POST",
|
|
3353
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities/patch",
|
|
3354
|
+
"inputSchema": {
|
|
3355
|
+
"type": "object",
|
|
3356
|
+
"properties": {
|
|
3357
|
+
"username": {
|
|
3358
|
+
"type": "string",
|
|
3359
|
+
"description": "username parameter"
|
|
3360
|
+
},
|
|
3361
|
+
"domain": {
|
|
3362
|
+
"type": "string",
|
|
3363
|
+
"description": "Domain name"
|
|
3364
|
+
},
|
|
3365
|
+
"vulnerability_ids": {
|
|
3366
|
+
"type": "array",
|
|
3367
|
+
"description": "List of vulnerability IDs to patch, as returned by the list vulnerabilities endpoint.",
|
|
3368
|
+
"items": {
|
|
3369
|
+
"type": "string",
|
|
3370
|
+
"description": "vulnerability_ids parameter"
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
},
|
|
3374
|
+
"required": [
|
|
3375
|
+
"username",
|
|
3376
|
+
"domain",
|
|
3377
|
+
"vulnerability_ids"
|
|
3378
|
+
]
|
|
3379
|
+
},
|
|
3380
|
+
"security": [
|
|
3381
|
+
{
|
|
3382
|
+
"apiToken": []
|
|
3383
|
+
}
|
|
3384
|
+
],
|
|
3385
|
+
"group": "hosting"
|
|
3386
|
+
},
|
|
3305
3387
|
{
|
|
3306
3388
|
"name": "hosting_listOrdersV1",
|
|
3307
3389
|
"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.",
|
|
@@ -1248,6 +1248,88 @@ export default [
|
|
|
1248
1248
|
],
|
|
1249
1249
|
"group": "hosting"
|
|
1250
1250
|
},
|
|
1251
|
+
{
|
|
1252
|
+
"name": "hosting_listNode_jsVulnerabilitiesV1",
|
|
1253
|
+
"description": "Lists known npm package vulnerabilities detected on a Node.js website, enriched with\nadvisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from\nthe most severe to the least severe, then by publish date (newest first). Use the\n`severities` query parameter to filter.\n\nVulnerabilities with `is_patchable` set to `true` can be auto-fixed via the\n`Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with\nupdated package versions. Auto-fix is only available for websites deployed from a\nconnected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to\n`true` are already included in an open patch pull request; while any patch pull\nrequest is open, new patch requests for this website are rejected until it is merged\nor closed.\n\nData comes from periodic dependency scans, so it may lag behind the latest deployment.\nAn empty list means the most recent scan found no vulnerabilities; it does not\nguarantee the current deployment is vulnerability-free. Available on Business and\nCloud Hosting plans.",
|
|
1254
|
+
"method": "GET",
|
|
1255
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities",
|
|
1256
|
+
"inputSchema": {
|
|
1257
|
+
"type": "object",
|
|
1258
|
+
"properties": {
|
|
1259
|
+
"username": {
|
|
1260
|
+
"type": "string",
|
|
1261
|
+
"description": "username parameter"
|
|
1262
|
+
},
|
|
1263
|
+
"domain": {
|
|
1264
|
+
"type": "string",
|
|
1265
|
+
"description": "Domain name"
|
|
1266
|
+
},
|
|
1267
|
+
"severities": {
|
|
1268
|
+
"type": "array",
|
|
1269
|
+
"description": "Severities to filter by",
|
|
1270
|
+
"items": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"description": "severities parameter",
|
|
1273
|
+
"enum": [
|
|
1274
|
+
"low",
|
|
1275
|
+
"moderate",
|
|
1276
|
+
"high",
|
|
1277
|
+
"critical",
|
|
1278
|
+
"unknown"
|
|
1279
|
+
]
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
},
|
|
1283
|
+
"required": [
|
|
1284
|
+
"username",
|
|
1285
|
+
"domain"
|
|
1286
|
+
]
|
|
1287
|
+
},
|
|
1288
|
+
"security": [
|
|
1289
|
+
{
|
|
1290
|
+
"apiToken": []
|
|
1291
|
+
}
|
|
1292
|
+
],
|
|
1293
|
+
"group": "hosting"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "hosting_patchNode_jsVulnerabilitiesV1",
|
|
1297
|
+
"description": "Patches the selected Node.js vulnerabilities by updating the affected package versions\nin `package.json` and opening a GitHub pull request in the connected repository. The\ncustomer reviews and merges the pull request; merging triggers the automatic deployment.\n\nAuto-fix is only available for websites deployed from a connected GitHub repository.\nWebsites deployed from an archive have no auto-fix path and return a 404. The Hostinger\nGitHub App needs write access to the repository; without it the request fails with a\n403 explaining the missing permission.\n\nOnly vulnerabilities with `is_patchable` set to `true` can be patched. Non-patchable\nIDs in the selection are skipped; the pull request covers the patchable subset, listed\nin `patched_vulnerability_ids`. Selections without any patchable vulnerability are\nrejected with a 422. Only one patch pull request can be open at a time per website;\nclose or merge it before patching again. Available on Business and Cloud Hosting plans.",
|
|
1298
|
+
"method": "POST",
|
|
1299
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities/patch",
|
|
1300
|
+
"inputSchema": {
|
|
1301
|
+
"type": "object",
|
|
1302
|
+
"properties": {
|
|
1303
|
+
"username": {
|
|
1304
|
+
"type": "string",
|
|
1305
|
+
"description": "username parameter"
|
|
1306
|
+
},
|
|
1307
|
+
"domain": {
|
|
1308
|
+
"type": "string",
|
|
1309
|
+
"description": "Domain name"
|
|
1310
|
+
},
|
|
1311
|
+
"vulnerability_ids": {
|
|
1312
|
+
"type": "array",
|
|
1313
|
+
"description": "List of vulnerability IDs to patch, as returned by the list vulnerabilities endpoint.",
|
|
1314
|
+
"items": {
|
|
1315
|
+
"type": "string",
|
|
1316
|
+
"description": "vulnerability_ids parameter"
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
"required": [
|
|
1321
|
+
"username",
|
|
1322
|
+
"domain",
|
|
1323
|
+
"vulnerability_ids"
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
"security": [
|
|
1327
|
+
{
|
|
1328
|
+
"apiToken": []
|
|
1329
|
+
}
|
|
1330
|
+
],
|
|
1331
|
+
"group": "hosting"
|
|
1332
|
+
},
|
|
1251
1333
|
{
|
|
1252
1334
|
"name": "hosting_listOrdersV1",
|
|
1253
1335
|
"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.",
|
|
@@ -1262,6 +1262,88 @@ const tools: OpenApiTool[] = [
|
|
|
1262
1262
|
],
|
|
1263
1263
|
"group": "hosting"
|
|
1264
1264
|
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "hosting_listNode_jsVulnerabilitiesV1",
|
|
1267
|
+
"description": "Lists known npm package vulnerabilities detected on a Node.js website, enriched with\nadvisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from\nthe most severe to the least severe, then by publish date (newest first). Use the\n`severities` query parameter to filter.\n\nVulnerabilities with `is_patchable` set to `true` can be auto-fixed via the\n`Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with\nupdated package versions. Auto-fix is only available for websites deployed from a\nconnected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to\n`true` are already included in an open patch pull request; while any patch pull\nrequest is open, new patch requests for this website are rejected until it is merged\nor closed.\n\nData comes from periodic dependency scans, so it may lag behind the latest deployment.\nAn empty list means the most recent scan found no vulnerabilities; it does not\nguarantee the current deployment is vulnerability-free. Available on Business and\nCloud Hosting plans.",
|
|
1268
|
+
"method": "GET",
|
|
1269
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities",
|
|
1270
|
+
"inputSchema": {
|
|
1271
|
+
"type": "object",
|
|
1272
|
+
"properties": {
|
|
1273
|
+
"username": {
|
|
1274
|
+
"type": "string",
|
|
1275
|
+
"description": "username parameter"
|
|
1276
|
+
},
|
|
1277
|
+
"domain": {
|
|
1278
|
+
"type": "string",
|
|
1279
|
+
"description": "Domain name"
|
|
1280
|
+
},
|
|
1281
|
+
"severities": {
|
|
1282
|
+
"type": "array",
|
|
1283
|
+
"description": "Severities to filter by",
|
|
1284
|
+
"items": {
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"description": "severities parameter",
|
|
1287
|
+
"enum": [
|
|
1288
|
+
"low",
|
|
1289
|
+
"moderate",
|
|
1290
|
+
"high",
|
|
1291
|
+
"critical",
|
|
1292
|
+
"unknown"
|
|
1293
|
+
]
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
"required": [
|
|
1298
|
+
"username",
|
|
1299
|
+
"domain"
|
|
1300
|
+
]
|
|
1301
|
+
},
|
|
1302
|
+
"security": [
|
|
1303
|
+
{
|
|
1304
|
+
"apiToken": []
|
|
1305
|
+
}
|
|
1306
|
+
],
|
|
1307
|
+
"group": "hosting"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"name": "hosting_patchNode_jsVulnerabilitiesV1",
|
|
1311
|
+
"description": "Patches the selected Node.js vulnerabilities by updating the affected package versions\nin `package.json` and opening a GitHub pull request in the connected repository. The\ncustomer reviews and merges the pull request; merging triggers the automatic deployment.\n\nAuto-fix is only available for websites deployed from a connected GitHub repository.\nWebsites deployed from an archive have no auto-fix path and return a 404. The Hostinger\nGitHub App needs write access to the repository; without it the request fails with a\n403 explaining the missing permission.\n\nOnly vulnerabilities with `is_patchable` set to `true` can be patched. Non-patchable\nIDs in the selection are skipped; the pull request covers the patchable subset, listed\nin `patched_vulnerability_ids`. Selections without any patchable vulnerability are\nrejected with a 422. Only one patch pull request can be open at a time per website;\nclose or merge it before patching again. Available on Business and Cloud Hosting plans.",
|
|
1312
|
+
"method": "POST",
|
|
1313
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities/patch",
|
|
1314
|
+
"inputSchema": {
|
|
1315
|
+
"type": "object",
|
|
1316
|
+
"properties": {
|
|
1317
|
+
"username": {
|
|
1318
|
+
"type": "string",
|
|
1319
|
+
"description": "username parameter"
|
|
1320
|
+
},
|
|
1321
|
+
"domain": {
|
|
1322
|
+
"type": "string",
|
|
1323
|
+
"description": "Domain name"
|
|
1324
|
+
},
|
|
1325
|
+
"vulnerability_ids": {
|
|
1326
|
+
"type": "array",
|
|
1327
|
+
"description": "List of vulnerability IDs to patch, as returned by the list vulnerabilities endpoint.",
|
|
1328
|
+
"items": {
|
|
1329
|
+
"type": "string",
|
|
1330
|
+
"description": "vulnerability_ids parameter"
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
"required": [
|
|
1335
|
+
"username",
|
|
1336
|
+
"domain",
|
|
1337
|
+
"vulnerability_ids"
|
|
1338
|
+
]
|
|
1339
|
+
},
|
|
1340
|
+
"security": [
|
|
1341
|
+
{
|
|
1342
|
+
"apiToken": []
|
|
1343
|
+
}
|
|
1344
|
+
],
|
|
1345
|
+
"group": "hosting"
|
|
1346
|
+
},
|
|
1265
1347
|
{
|
|
1266
1348
|
"name": "hosting_listOrdersV1",
|
|
1267
1349
|
"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.",
|
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/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
package/types.d.ts
CHANGED
|
@@ -2153,6 +2153,77 @@ has no effect. Returns success even when the website has no server process to re
|
|
|
2153
2153
|
response: any; // Response structure will depend on the API
|
|
2154
2154
|
};
|
|
2155
2155
|
|
|
2156
|
+
/**
|
|
2157
|
+
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with
|
|
2158
|
+
advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from
|
|
2159
|
+
the most severe to the least severe, then by publish date (newest first). Use the
|
|
2160
|
+
`severities` query parameter to filter.
|
|
2161
|
+
|
|
2162
|
+
Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the
|
|
2163
|
+
`Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with
|
|
2164
|
+
updated package versions. Auto-fix is only available for websites deployed from a
|
|
2165
|
+
connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to
|
|
2166
|
+
`true` are already included in an open patch pull request; while any patch pull
|
|
2167
|
+
request is open, new patch requests for this website are rejected until it is merged
|
|
2168
|
+
or closed.
|
|
2169
|
+
|
|
2170
|
+
Data comes from periodic dependency scans, so it may lag behind the latest deployment.
|
|
2171
|
+
An empty list means the most recent scan found no vulnerabilities; it does not
|
|
2172
|
+
guarantee the current deployment is vulnerability-free. Available on Business and
|
|
2173
|
+
Cloud Hosting plans.
|
|
2174
|
+
*/
|
|
2175
|
+
"hosting_listNode_jsVulnerabilitiesV1": {
|
|
2176
|
+
params: {
|
|
2177
|
+
/**
|
|
2178
|
+
* username parameter
|
|
2179
|
+
*/
|
|
2180
|
+
username: string;
|
|
2181
|
+
/**
|
|
2182
|
+
* Domain name
|
|
2183
|
+
*/
|
|
2184
|
+
domain: string;
|
|
2185
|
+
/**
|
|
2186
|
+
* Severities to filter by
|
|
2187
|
+
*/
|
|
2188
|
+
severities?: array;
|
|
2189
|
+
};
|
|
2190
|
+
response: any; // Response structure will depend on the API
|
|
2191
|
+
};
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* Patches the selected Node.js vulnerabilities by updating the affected package versions
|
|
2195
|
+
in `package.json` and opening a GitHub pull request in the connected repository. The
|
|
2196
|
+
customer reviews and merges the pull request; merging triggers the automatic deployment.
|
|
2197
|
+
|
|
2198
|
+
Auto-fix is only available for websites deployed from a connected GitHub repository.
|
|
2199
|
+
Websites deployed from an archive have no auto-fix path and return a 404. The Hostinger
|
|
2200
|
+
GitHub App needs write access to the repository; without it the request fails with a
|
|
2201
|
+
403 explaining the missing permission.
|
|
2202
|
+
|
|
2203
|
+
Only vulnerabilities with `is_patchable` set to `true` can be patched. Non-patchable
|
|
2204
|
+
IDs in the selection are skipped; the pull request covers the patchable subset, listed
|
|
2205
|
+
in `patched_vulnerability_ids`. Selections without any patchable vulnerability are
|
|
2206
|
+
rejected with a 422. Only one patch pull request can be open at a time per website;
|
|
2207
|
+
close or merge it before patching again. Available on Business and Cloud Hosting plans.
|
|
2208
|
+
*/
|
|
2209
|
+
"hosting_patchNode_jsVulnerabilitiesV1": {
|
|
2210
|
+
params: {
|
|
2211
|
+
/**
|
|
2212
|
+
* username parameter
|
|
2213
|
+
*/
|
|
2214
|
+
username: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* Domain name
|
|
2217
|
+
*/
|
|
2218
|
+
domain: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* List of vulnerability IDs to patch, as returned by the list vulnerabilities endpoint.
|
|
2221
|
+
*/
|
|
2222
|
+
vulnerability_ids: array;
|
|
2223
|
+
};
|
|
2224
|
+
response: any; // Response structure will depend on the API
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2156
2227
|
/**
|
|
2157
2228
|
* Retrieve a paginated list of orders accessible to the authenticated client.
|
|
2158
2229
|
|