hostinger-api-mcp 1.47.0 → 1.49.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 +36 -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 +81 -0
- package/src/core/tools/all.ts +81 -0
- package/src/core/tools/hosting.js +81 -0
- package/src/core/tools/hosting.ts +81 -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 +59 -0
package/README.md
CHANGED
|
@@ -69,14 +69,14 @@ pnpm update -g hostinger-api-mcp
|
|
|
69
69
|
|
|
70
70
|
This package installs the following MCP server commands:
|
|
71
71
|
|
|
72
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
72
|
+
- `hostinger-api-mcp` — unified server with every tool (371 total)
|
|
73
73
|
- `hostinger-agency-hosting-mcp` — 38 tools for agency-hosting
|
|
74
74
|
- `hostinger-billing-mcp` — 9 tools for billing
|
|
75
75
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
76
76
|
- `hostinger-domains-mcp` — 40 tools for domains
|
|
77
77
|
- `hostinger-ecommerce-mcp` — 29 tools for ecommerce
|
|
78
78
|
- `hostinger-horizons-mcp` — 2 tools for horizons
|
|
79
|
-
- `hostinger-hosting-mcp` —
|
|
79
|
+
- `hostinger-hosting-mcp` — 58 tools for hosting
|
|
80
80
|
- `hostinger-mail-mcp` — 38 tools for mail
|
|
81
81
|
- `hostinger-reach-mcp` — 49 tools for reach
|
|
82
82
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
@@ -1983,6 +1983,40 @@ The archive must already be present on the website's file storage. Use the
|
|
|
1983
1983
|
- **Method**: `GET`
|
|
1984
1984
|
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive`
|
|
1985
1985
|
|
|
1986
|
+
#### hosting_listNode_jsEnvironmentVariablesV1
|
|
1987
|
+
|
|
1988
|
+
Lists the Node.js environment variables currently set for the website. Values are always
|
|
1989
|
+
masked as `********` and cannot be read back through this API. Use this endpoint to see
|
|
1990
|
+
which keys are configured or to verify a change, not to read values.
|
|
1991
|
+
|
|
1992
|
+
To change variables, use the `Replace Node.js environment variables` endpoint. It replaces
|
|
1993
|
+
the whole set, so never copy the masked values from this response into that request; send
|
|
1994
|
+
the full desired set with real values taken from the project `.env` file or the user
|
|
1995
|
+
prompt instead.
|
|
1996
|
+
|
|
1997
|
+
- **Method**: `GET`
|
|
1998
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env`
|
|
1999
|
+
|
|
2000
|
+
#### hosting_replaceNode_jsEnvironmentVariablesV1
|
|
2001
|
+
|
|
2002
|
+
Replaces the website's Node.js environment variables with the ones provided. This is a
|
|
2003
|
+
full replace: any variable not in the request is deleted, and sending an empty `env_vars`
|
|
2004
|
+
array deletes every variable. Saving writes the values and restarts the running Node.js
|
|
2005
|
+
process.
|
|
2006
|
+
|
|
2007
|
+
A restart is enough for apps that read environment variables at process start, such as
|
|
2008
|
+
Express or NestJS. It is not enough for frameworks that bake variables into the build.
|
|
2009
|
+
Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a
|
|
2010
|
+
fresh build. After this call, use the `Start Node.js build` endpoint so those apps
|
|
2011
|
+
pick up the new values.
|
|
2012
|
+
|
|
2013
|
+
The `List Node.js environment variables` endpoint returns masked values (`********`), so
|
|
2014
|
+
never copy values from it into this request. Always send the full desired set with real
|
|
2015
|
+
values taken from the project `.env` file or the user prompt.
|
|
2016
|
+
|
|
2017
|
+
- **Method**: `PUT`
|
|
2018
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env`
|
|
2019
|
+
|
|
1986
2020
|
#### hosting_getNodeJSBuildLogsV1
|
|
1987
2021
|
|
|
1988
2022
|
Retrieve logs from a specific Node.js build process.
|
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.49.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.49.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
|
@@ -5746,6 +5746,87 @@ export default [
|
|
|
5746
5746
|
],
|
|
5747
5747
|
"group": "hosting"
|
|
5748
5748
|
},
|
|
5749
|
+
{
|
|
5750
|
+
"name": "hosting_listNode_jsEnvironmentVariablesV1",
|
|
5751
|
+
"description": "Lists the Node.js environment variables currently set for the website. Values are always\nmasked as `********` and cannot be read back through this API. Use this endpoint to see\nwhich keys are configured or to verify a change, not to read values.\n\nTo change variables, use the `Replace Node.js environment variables` endpoint. It replaces\nthe whole set, so never copy the masked values from this response into that request; send\nthe full desired set with real values taken from the project `.env` file or the user\nprompt instead.",
|
|
5752
|
+
"method": "GET",
|
|
5753
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env",
|
|
5754
|
+
"inputSchema": {
|
|
5755
|
+
"type": "object",
|
|
5756
|
+
"properties": {
|
|
5757
|
+
"username": {
|
|
5758
|
+
"type": "string",
|
|
5759
|
+
"description": "username parameter"
|
|
5760
|
+
},
|
|
5761
|
+
"domain": {
|
|
5762
|
+
"type": "string",
|
|
5763
|
+
"description": "Domain name"
|
|
5764
|
+
}
|
|
5765
|
+
},
|
|
5766
|
+
"required": [
|
|
5767
|
+
"username",
|
|
5768
|
+
"domain"
|
|
5769
|
+
]
|
|
5770
|
+
},
|
|
5771
|
+
"security": [
|
|
5772
|
+
{
|
|
5773
|
+
"apiToken": []
|
|
5774
|
+
}
|
|
5775
|
+
],
|
|
5776
|
+
"group": "hosting"
|
|
5777
|
+
},
|
|
5778
|
+
{
|
|
5779
|
+
"name": "hosting_replaceNode_jsEnvironmentVariablesV1",
|
|
5780
|
+
"description": "Replaces the website's Node.js environment variables with the ones provided. This is a\nfull replace: any variable not in the request is deleted, and sending an empty `env_vars`\narray deletes every variable. Saving writes the values and restarts the running Node.js\nprocess.\n\nA restart is enough for apps that read environment variables at process start, such as\nExpress or NestJS. It is not enough for frameworks that bake variables into the build.\nNext.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a\nfresh build. After this call, use the `Start Node.js build` endpoint so those apps\npick up the new values.\n\nThe `List Node.js environment variables` endpoint returns masked values (`********`), so\nnever copy values from it into this request. Always send the full desired set with real\nvalues taken from the project `.env` file or the user prompt.",
|
|
5781
|
+
"method": "PUT",
|
|
5782
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env",
|
|
5783
|
+
"inputSchema": {
|
|
5784
|
+
"type": "object",
|
|
5785
|
+
"properties": {
|
|
5786
|
+
"username": {
|
|
5787
|
+
"type": "string",
|
|
5788
|
+
"description": "username parameter"
|
|
5789
|
+
},
|
|
5790
|
+
"domain": {
|
|
5791
|
+
"type": "string",
|
|
5792
|
+
"description": "Domain name"
|
|
5793
|
+
},
|
|
5794
|
+
"env_vars": {
|
|
5795
|
+
"type": "array",
|
|
5796
|
+
"description": "Environment variables to set. This is the full desired set: any variable not in\nthis list is deleted, and an empty array deletes every variable.",
|
|
5797
|
+
"items": {
|
|
5798
|
+
"type": "object",
|
|
5799
|
+
"description": "env_vars parameter",
|
|
5800
|
+
"properties": {
|
|
5801
|
+
"key": {
|
|
5802
|
+
"type": "string",
|
|
5803
|
+
"description": "Environment variable name. Must start with an uppercase letter or\nunderscore, followed by uppercase letters, digits or underscores."
|
|
5804
|
+
},
|
|
5805
|
+
"value": {
|
|
5806
|
+
"type": "string",
|
|
5807
|
+
"description": "Environment variable value."
|
|
5808
|
+
}
|
|
5809
|
+
},
|
|
5810
|
+
"required": [
|
|
5811
|
+
"key",
|
|
5812
|
+
"value"
|
|
5813
|
+
]
|
|
5814
|
+
}
|
|
5815
|
+
}
|
|
5816
|
+
},
|
|
5817
|
+
"required": [
|
|
5818
|
+
"username",
|
|
5819
|
+
"domain",
|
|
5820
|
+
"env_vars"
|
|
5821
|
+
]
|
|
5822
|
+
},
|
|
5823
|
+
"security": [
|
|
5824
|
+
{
|
|
5825
|
+
"apiToken": []
|
|
5826
|
+
}
|
|
5827
|
+
],
|
|
5828
|
+
"group": "hosting"
|
|
5829
|
+
},
|
|
5749
5830
|
{
|
|
5750
5831
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
5751
5832
|
"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).",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -5760,6 +5760,87 @@ const tools: OpenApiTool[] = [
|
|
|
5760
5760
|
],
|
|
5761
5761
|
"group": "hosting"
|
|
5762
5762
|
},
|
|
5763
|
+
{
|
|
5764
|
+
"name": "hosting_listNode_jsEnvironmentVariablesV1",
|
|
5765
|
+
"description": "Lists the Node.js environment variables currently set for the website. Values are always\nmasked as `********` and cannot be read back through this API. Use this endpoint to see\nwhich keys are configured or to verify a change, not to read values.\n\nTo change variables, use the `Replace Node.js environment variables` endpoint. It replaces\nthe whole set, so never copy the masked values from this response into that request; send\nthe full desired set with real values taken from the project `.env` file or the user\nprompt instead.",
|
|
5766
|
+
"method": "GET",
|
|
5767
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env",
|
|
5768
|
+
"inputSchema": {
|
|
5769
|
+
"type": "object",
|
|
5770
|
+
"properties": {
|
|
5771
|
+
"username": {
|
|
5772
|
+
"type": "string",
|
|
5773
|
+
"description": "username parameter"
|
|
5774
|
+
},
|
|
5775
|
+
"domain": {
|
|
5776
|
+
"type": "string",
|
|
5777
|
+
"description": "Domain name"
|
|
5778
|
+
}
|
|
5779
|
+
},
|
|
5780
|
+
"required": [
|
|
5781
|
+
"username",
|
|
5782
|
+
"domain"
|
|
5783
|
+
]
|
|
5784
|
+
},
|
|
5785
|
+
"security": [
|
|
5786
|
+
{
|
|
5787
|
+
"apiToken": []
|
|
5788
|
+
}
|
|
5789
|
+
],
|
|
5790
|
+
"group": "hosting"
|
|
5791
|
+
},
|
|
5792
|
+
{
|
|
5793
|
+
"name": "hosting_replaceNode_jsEnvironmentVariablesV1",
|
|
5794
|
+
"description": "Replaces the website's Node.js environment variables with the ones provided. This is a\nfull replace: any variable not in the request is deleted, and sending an empty `env_vars`\narray deletes every variable. Saving writes the values and restarts the running Node.js\nprocess.\n\nA restart is enough for apps that read environment variables at process start, such as\nExpress or NestJS. It is not enough for frameworks that bake variables into the build.\nNext.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a\nfresh build. After this call, use the `Start Node.js build` endpoint so those apps\npick up the new values.\n\nThe `List Node.js environment variables` endpoint returns masked values (`********`), so\nnever copy values from it into this request. Always send the full desired set with real\nvalues taken from the project `.env` file or the user prompt.",
|
|
5795
|
+
"method": "PUT",
|
|
5796
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env",
|
|
5797
|
+
"inputSchema": {
|
|
5798
|
+
"type": "object",
|
|
5799
|
+
"properties": {
|
|
5800
|
+
"username": {
|
|
5801
|
+
"type": "string",
|
|
5802
|
+
"description": "username parameter"
|
|
5803
|
+
},
|
|
5804
|
+
"domain": {
|
|
5805
|
+
"type": "string",
|
|
5806
|
+
"description": "Domain name"
|
|
5807
|
+
},
|
|
5808
|
+
"env_vars": {
|
|
5809
|
+
"type": "array",
|
|
5810
|
+
"description": "Environment variables to set. This is the full desired set: any variable not in\nthis list is deleted, and an empty array deletes every variable.",
|
|
5811
|
+
"items": {
|
|
5812
|
+
"type": "object",
|
|
5813
|
+
"description": "env_vars parameter",
|
|
5814
|
+
"properties": {
|
|
5815
|
+
"key": {
|
|
5816
|
+
"type": "string",
|
|
5817
|
+
"description": "Environment variable name. Must start with an uppercase letter or\nunderscore, followed by uppercase letters, digits or underscores."
|
|
5818
|
+
},
|
|
5819
|
+
"value": {
|
|
5820
|
+
"type": "string",
|
|
5821
|
+
"description": "Environment variable value."
|
|
5822
|
+
}
|
|
5823
|
+
},
|
|
5824
|
+
"required": [
|
|
5825
|
+
"key",
|
|
5826
|
+
"value"
|
|
5827
|
+
]
|
|
5828
|
+
}
|
|
5829
|
+
}
|
|
5830
|
+
},
|
|
5831
|
+
"required": [
|
|
5832
|
+
"username",
|
|
5833
|
+
"domain",
|
|
5834
|
+
"env_vars"
|
|
5835
|
+
]
|
|
5836
|
+
},
|
|
5837
|
+
"security": [
|
|
5838
|
+
{
|
|
5839
|
+
"apiToken": []
|
|
5840
|
+
}
|
|
5841
|
+
],
|
|
5842
|
+
"group": "hosting"
|
|
5843
|
+
},
|
|
5763
5844
|
{
|
|
5764
5845
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
5765
5846
|
"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).",
|
|
@@ -1374,6 +1374,87 @@ export default [
|
|
|
1374
1374
|
],
|
|
1375
1375
|
"group": "hosting"
|
|
1376
1376
|
},
|
|
1377
|
+
{
|
|
1378
|
+
"name": "hosting_listNode_jsEnvironmentVariablesV1",
|
|
1379
|
+
"description": "Lists the Node.js environment variables currently set for the website. Values are always\nmasked as `********` and cannot be read back through this API. Use this endpoint to see\nwhich keys are configured or to verify a change, not to read values.\n\nTo change variables, use the `Replace Node.js environment variables` endpoint. It replaces\nthe whole set, so never copy the masked values from this response into that request; send\nthe full desired set with real values taken from the project `.env` file or the user\nprompt instead.",
|
|
1380
|
+
"method": "GET",
|
|
1381
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env",
|
|
1382
|
+
"inputSchema": {
|
|
1383
|
+
"type": "object",
|
|
1384
|
+
"properties": {
|
|
1385
|
+
"username": {
|
|
1386
|
+
"type": "string",
|
|
1387
|
+
"description": "username parameter"
|
|
1388
|
+
},
|
|
1389
|
+
"domain": {
|
|
1390
|
+
"type": "string",
|
|
1391
|
+
"description": "Domain name"
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
"required": [
|
|
1395
|
+
"username",
|
|
1396
|
+
"domain"
|
|
1397
|
+
]
|
|
1398
|
+
},
|
|
1399
|
+
"security": [
|
|
1400
|
+
{
|
|
1401
|
+
"apiToken": []
|
|
1402
|
+
}
|
|
1403
|
+
],
|
|
1404
|
+
"group": "hosting"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"name": "hosting_replaceNode_jsEnvironmentVariablesV1",
|
|
1408
|
+
"description": "Replaces the website's Node.js environment variables with the ones provided. This is a\nfull replace: any variable not in the request is deleted, and sending an empty `env_vars`\narray deletes every variable. Saving writes the values and restarts the running Node.js\nprocess.\n\nA restart is enough for apps that read environment variables at process start, such as\nExpress or NestJS. It is not enough for frameworks that bake variables into the build.\nNext.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a\nfresh build. After this call, use the `Start Node.js build` endpoint so those apps\npick up the new values.\n\nThe `List Node.js environment variables` endpoint returns masked values (`********`), so\nnever copy values from it into this request. Always send the full desired set with real\nvalues taken from the project `.env` file or the user prompt.",
|
|
1409
|
+
"method": "PUT",
|
|
1410
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env",
|
|
1411
|
+
"inputSchema": {
|
|
1412
|
+
"type": "object",
|
|
1413
|
+
"properties": {
|
|
1414
|
+
"username": {
|
|
1415
|
+
"type": "string",
|
|
1416
|
+
"description": "username parameter"
|
|
1417
|
+
},
|
|
1418
|
+
"domain": {
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
"description": "Domain name"
|
|
1421
|
+
},
|
|
1422
|
+
"env_vars": {
|
|
1423
|
+
"type": "array",
|
|
1424
|
+
"description": "Environment variables to set. This is the full desired set: any variable not in\nthis list is deleted, and an empty array deletes every variable.",
|
|
1425
|
+
"items": {
|
|
1426
|
+
"type": "object",
|
|
1427
|
+
"description": "env_vars parameter",
|
|
1428
|
+
"properties": {
|
|
1429
|
+
"key": {
|
|
1430
|
+
"type": "string",
|
|
1431
|
+
"description": "Environment variable name. Must start with an uppercase letter or\nunderscore, followed by uppercase letters, digits or underscores."
|
|
1432
|
+
},
|
|
1433
|
+
"value": {
|
|
1434
|
+
"type": "string",
|
|
1435
|
+
"description": "Environment variable value."
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"required": [
|
|
1439
|
+
"key",
|
|
1440
|
+
"value"
|
|
1441
|
+
]
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
"required": [
|
|
1446
|
+
"username",
|
|
1447
|
+
"domain",
|
|
1448
|
+
"env_vars"
|
|
1449
|
+
]
|
|
1450
|
+
},
|
|
1451
|
+
"security": [
|
|
1452
|
+
{
|
|
1453
|
+
"apiToken": []
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"group": "hosting"
|
|
1457
|
+
},
|
|
1377
1458
|
{
|
|
1378
1459
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
1379
1460
|
"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).",
|
|
@@ -1388,6 +1388,87 @@ const tools: OpenApiTool[] = [
|
|
|
1388
1388
|
],
|
|
1389
1389
|
"group": "hosting"
|
|
1390
1390
|
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "hosting_listNode_jsEnvironmentVariablesV1",
|
|
1393
|
+
"description": "Lists the Node.js environment variables currently set for the website. Values are always\nmasked as `********` and cannot be read back through this API. Use this endpoint to see\nwhich keys are configured or to verify a change, not to read values.\n\nTo change variables, use the `Replace Node.js environment variables` endpoint. It replaces\nthe whole set, so never copy the masked values from this response into that request; send\nthe full desired set with real values taken from the project `.env` file or the user\nprompt instead.",
|
|
1394
|
+
"method": "GET",
|
|
1395
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env",
|
|
1396
|
+
"inputSchema": {
|
|
1397
|
+
"type": "object",
|
|
1398
|
+
"properties": {
|
|
1399
|
+
"username": {
|
|
1400
|
+
"type": "string",
|
|
1401
|
+
"description": "username parameter"
|
|
1402
|
+
},
|
|
1403
|
+
"domain": {
|
|
1404
|
+
"type": "string",
|
|
1405
|
+
"description": "Domain name"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
"required": [
|
|
1409
|
+
"username",
|
|
1410
|
+
"domain"
|
|
1411
|
+
]
|
|
1412
|
+
},
|
|
1413
|
+
"security": [
|
|
1414
|
+
{
|
|
1415
|
+
"apiToken": []
|
|
1416
|
+
}
|
|
1417
|
+
],
|
|
1418
|
+
"group": "hosting"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"name": "hosting_replaceNode_jsEnvironmentVariablesV1",
|
|
1422
|
+
"description": "Replaces the website's Node.js environment variables with the ones provided. This is a\nfull replace: any variable not in the request is deleted, and sending an empty `env_vars`\narray deletes every variable. Saving writes the values and restarts the running Node.js\nprocess.\n\nA restart is enough for apps that read environment variables at process start, such as\nExpress or NestJS. It is not enough for frameworks that bake variables into the build.\nNext.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a\nfresh build. After this call, use the `Start Node.js build` endpoint so those apps\npick up the new values.\n\nThe `List Node.js environment variables` endpoint returns masked values (`********`), so\nnever copy values from it into this request. Always send the full desired set with real\nvalues taken from the project `.env` file or the user prompt.",
|
|
1423
|
+
"method": "PUT",
|
|
1424
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env",
|
|
1425
|
+
"inputSchema": {
|
|
1426
|
+
"type": "object",
|
|
1427
|
+
"properties": {
|
|
1428
|
+
"username": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"description": "username parameter"
|
|
1431
|
+
},
|
|
1432
|
+
"domain": {
|
|
1433
|
+
"type": "string",
|
|
1434
|
+
"description": "Domain name"
|
|
1435
|
+
},
|
|
1436
|
+
"env_vars": {
|
|
1437
|
+
"type": "array",
|
|
1438
|
+
"description": "Environment variables to set. This is the full desired set: any variable not in\nthis list is deleted, and an empty array deletes every variable.",
|
|
1439
|
+
"items": {
|
|
1440
|
+
"type": "object",
|
|
1441
|
+
"description": "env_vars parameter",
|
|
1442
|
+
"properties": {
|
|
1443
|
+
"key": {
|
|
1444
|
+
"type": "string",
|
|
1445
|
+
"description": "Environment variable name. Must start with an uppercase letter or\nunderscore, followed by uppercase letters, digits or underscores."
|
|
1446
|
+
},
|
|
1447
|
+
"value": {
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"description": "Environment variable value."
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
"required": [
|
|
1453
|
+
"key",
|
|
1454
|
+
"value"
|
|
1455
|
+
]
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
"required": [
|
|
1460
|
+
"username",
|
|
1461
|
+
"domain",
|
|
1462
|
+
"env_vars"
|
|
1463
|
+
]
|
|
1464
|
+
},
|
|
1465
|
+
"security": [
|
|
1466
|
+
{
|
|
1467
|
+
"apiToken": []
|
|
1468
|
+
}
|
|
1469
|
+
],
|
|
1470
|
+
"group": "hosting"
|
|
1471
|
+
},
|
|
1391
1472
|
{
|
|
1392
1473
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
1393
1474
|
"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).",
|
|
@@ -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.49.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.49.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
package/types.d.ts
CHANGED
|
@@ -3763,6 +3763,65 @@ The archive must already be present on the website's file storage. Use the
|
|
|
3763
3763
|
response: any; // Response structure will depend on the API
|
|
3764
3764
|
};
|
|
3765
3765
|
|
|
3766
|
+
/**
|
|
3767
|
+
* Lists the Node.js environment variables currently set for the website. Values are always
|
|
3768
|
+
masked as `********` and cannot be read back through this API. Use this endpoint to see
|
|
3769
|
+
which keys are configured or to verify a change, not to read values.
|
|
3770
|
+
|
|
3771
|
+
To change variables, use the `Replace Node.js environment variables` endpoint. It replaces
|
|
3772
|
+
the whole set, so never copy the masked values from this response into that request; send
|
|
3773
|
+
the full desired set with real values taken from the project `.env` file or the user
|
|
3774
|
+
prompt instead.
|
|
3775
|
+
*/
|
|
3776
|
+
"hosting_listNode_jsEnvironmentVariablesV1": {
|
|
3777
|
+
params: {
|
|
3778
|
+
/**
|
|
3779
|
+
* username parameter
|
|
3780
|
+
*/
|
|
3781
|
+
username: string;
|
|
3782
|
+
/**
|
|
3783
|
+
* Domain name
|
|
3784
|
+
*/
|
|
3785
|
+
domain: string;
|
|
3786
|
+
};
|
|
3787
|
+
response: any; // Response structure will depend on the API
|
|
3788
|
+
};
|
|
3789
|
+
|
|
3790
|
+
/**
|
|
3791
|
+
* Replaces the website's Node.js environment variables with the ones provided. This is a
|
|
3792
|
+
full replace: any variable not in the request is deleted, and sending an empty `env_vars`
|
|
3793
|
+
array deletes every variable. Saving writes the values and restarts the running Node.js
|
|
3794
|
+
process.
|
|
3795
|
+
|
|
3796
|
+
A restart is enough for apps that read environment variables at process start, such as
|
|
3797
|
+
Express or NestJS. It is not enough for frameworks that bake variables into the build.
|
|
3798
|
+
Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a
|
|
3799
|
+
fresh build. After this call, use the `Start Node.js build` endpoint so those apps
|
|
3800
|
+
pick up the new values.
|
|
3801
|
+
|
|
3802
|
+
The `List Node.js environment variables` endpoint returns masked values (`********`), so
|
|
3803
|
+
never copy values from it into this request. Always send the full desired set with real
|
|
3804
|
+
values taken from the project `.env` file or the user prompt.
|
|
3805
|
+
*/
|
|
3806
|
+
"hosting_replaceNode_jsEnvironmentVariablesV1": {
|
|
3807
|
+
params: {
|
|
3808
|
+
/**
|
|
3809
|
+
* username parameter
|
|
3810
|
+
*/
|
|
3811
|
+
username: string;
|
|
3812
|
+
/**
|
|
3813
|
+
* Domain name
|
|
3814
|
+
*/
|
|
3815
|
+
domain: string;
|
|
3816
|
+
/**
|
|
3817
|
+
* Environment variables to set. This is the full desired set: any variable not in
|
|
3818
|
+
this list is deleted, and an empty array deletes every variable.
|
|
3819
|
+
*/
|
|
3820
|
+
env_vars: array;
|
|
3821
|
+
};
|
|
3822
|
+
response: any; // Response structure will depend on the API
|
|
3823
|
+
};
|
|
3824
|
+
|
|
3766
3825
|
/**
|
|
3767
3826
|
* Retrieve logs from a specific Node.js build process.
|
|
3768
3827
|
|