hostinger-api-mcp 1.63.1 → 1.63.2
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/CHANGELOG.md +12 -0
- package/README.md +28 -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 +43 -0
- package/src/core/tools/all.ts +43 -0
- package/src/core/tools/hosting.js +43 -0
- package/src/core/tools/hosting.ts +43 -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 +50 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ Generated at release time from the diff between the previous and current
|
|
|
4
4
|
build. Tool changes are listed individually; everything else is summarised
|
|
5
5
|
by area.
|
|
6
6
|
|
|
7
|
+
## v1.63.2 — 2026-09-21
|
|
8
|
+
|
|
9
|
+
### Tools
|
|
10
|
+
|
|
11
|
+
- Added `hosting_setupWebsiteDatabaseV1` — Setup website database
|
|
12
|
+
|
|
13
|
+
### Also in this release
|
|
14
|
+
|
|
15
|
+
- Documentation: `README.md`
|
|
16
|
+
- Request handling and authentication: `src/core/runtime.js`, `src/core/runtime.ts`
|
|
17
|
+
- Build and packaging: `types.d.ts`
|
|
18
|
+
|
|
7
19
|
## v1.63.1 — 2026-09-21
|
|
8
20
|
|
|
9
21
|
### Also in this release
|
package/README.md
CHANGED
|
@@ -69,14 +69,14 @@ pnpm update -g @hostinger/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 (401 total)
|
|
73
73
|
- `hostinger-agency-hosting-mcp` — 42 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` — 41 tools for domains
|
|
77
77
|
- `hostinger-ecommerce-mcp` — 29 tools for ecommerce
|
|
78
78
|
- `hostinger-horizons-mcp` — 6 tools for horizons
|
|
79
|
-
- `hostinger-hosting-mcp` —
|
|
79
|
+
- `hostinger-hosting-mcp` — 74 tools for hosting
|
|
80
80
|
- `hostinger-mail-mcp` — 38 tools for mail
|
|
81
81
|
- `hostinger-reach-mcp` — 52 tools for reach
|
|
82
82
|
- `hostinger-vps-mcp` — 64 tools for vps
|
|
@@ -1932,6 +1932,32 @@ The database name must be the full name returned by the list databases endpoint.
|
|
|
1932
1932
|
- **Method**: `PATCH`
|
|
1933
1933
|
- **Path**: `/api/hosting/v1/accounts/{username}/databases/{name}/repair`
|
|
1934
1934
|
|
|
1935
|
+
#### hosting_setupWebsiteDatabaseV1
|
|
1936
|
+
|
|
1937
|
+
Creates a new MySQL database for the website and writes its connection details into the
|
|
1938
|
+
website's environment variables, then restarts the application. The platform generates the
|
|
1939
|
+
password (and the database name and user, unless supplied). The password is never returned;
|
|
1940
|
+
the application reads it from the environment.
|
|
1941
|
+
|
|
1942
|
+
Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and
|
|
1943
|
+
`DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded).
|
|
1944
|
+
Existing variables are kept. If the website already has any variable with one of these
|
|
1945
|
+
names the call fails with 422 and nothing is created; the `Replace Node.js environment
|
|
1946
|
+
variables` endpoint removes them.
|
|
1947
|
+
|
|
1948
|
+
After this call the variables are ordinary environment variables: the
|
|
1949
|
+
`Replace Node.js environment variables` endpoint changes or removes them like any other.
|
|
1950
|
+
|
|
1951
|
+
A restart is enough for apps that read environment variables at process start, such as
|
|
1952
|
+
Express or NestJS. Frameworks that bake variables into the build output (Next.js,
|
|
1953
|
+
`NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint).
|
|
1954
|
+
|
|
1955
|
+
A password in the request is ignored; the platform always generates it. The optional `name`
|
|
1956
|
+
and `user` are identifiers, not secrets.
|
|
1957
|
+
|
|
1958
|
+
- **Method**: `POST`
|
|
1959
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup`
|
|
1960
|
+
|
|
1935
1961
|
#### hosting_getPhpMyAdminLinkV1
|
|
1936
1962
|
|
|
1937
1963
|
Returns a direct sign-on link to phpMyAdmin for the specified database.
|
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.63.
|
|
9
|
+
"version": "1.63.2",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@hostinger/mcp",
|
|
14
|
-
"version": "1.63.
|
|
14
|
+
"version": "1.63.2",
|
|
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
|
@@ -6351,6 +6351,49 @@ export default [
|
|
|
6351
6351
|
],
|
|
6352
6352
|
"group": "hosting"
|
|
6353
6353
|
},
|
|
6354
|
+
{
|
|
6355
|
+
"name": "hosting_setupWebsiteDatabaseV1",
|
|
6356
|
+
"title": "Setup website database",
|
|
6357
|
+
"annotations": {
|
|
6358
|
+
"title": "Setup website database",
|
|
6359
|
+
"readOnlyHint": false,
|
|
6360
|
+
"destructiveHint": false
|
|
6361
|
+
},
|
|
6362
|
+
"description": "Creates a new MySQL database for the website and writes its connection details into the\nwebsite's environment variables, then restarts the application. The platform generates the\npassword (and the database name and user, unless supplied). The password is never returned;\nthe application reads it from the environment.\n\nWritten variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and\n`DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded).\nExisting variables are kept. If the website already has any variable with one of these\nnames the call fails with 422 and nothing is created; the `Replace Node.js environment\nvariables` endpoint removes them.\n\nAfter this call the variables are ordinary environment variables: the\n`Replace Node.js environment variables` endpoint changes or removes them like any other.\n\nA restart is enough for apps that read environment variables at process start, such as\nExpress or NestJS. Frameworks that bake variables into the build output (Next.js,\n`NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint).\n\nA password in the request is ignored; the platform always generates it. The optional `name`\nand `user` are identifiers, not secrets.",
|
|
6363
|
+
"method": "POST",
|
|
6364
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup",
|
|
6365
|
+
"inputSchema": {
|
|
6366
|
+
"type": "object",
|
|
6367
|
+
"properties": {
|
|
6368
|
+
"username": {
|
|
6369
|
+
"type": "string",
|
|
6370
|
+
"description": "username parameter"
|
|
6371
|
+
},
|
|
6372
|
+
"domain": {
|
|
6373
|
+
"type": "string",
|
|
6374
|
+
"description": "Domain name"
|
|
6375
|
+
},
|
|
6376
|
+
"name": {
|
|
6377
|
+
"type": "string",
|
|
6378
|
+
"description": "Optional database name. Generated when omitted. Letters, digits and underscores;\nmust not start with an underscore. Up to 14 characters without the account username\nprefix (`u123456789_`), which is added automatically when missing. With the prefix\nthe full name is 12 to 25 characters."
|
|
6379
|
+
},
|
|
6380
|
+
"user": {
|
|
6381
|
+
"type": "string",
|
|
6382
|
+
"description": "Optional database user. Generated when omitted. Letters, digits and underscores;\nmust not start with an underscore. Up to 14 characters without the account username\nprefix (`u123456789_`), which is added automatically when missing. With the prefix\nthe full user is 12 to 25 characters."
|
|
6383
|
+
}
|
|
6384
|
+
},
|
|
6385
|
+
"required": [
|
|
6386
|
+
"username",
|
|
6387
|
+
"domain"
|
|
6388
|
+
]
|
|
6389
|
+
},
|
|
6390
|
+
"security": [
|
|
6391
|
+
{
|
|
6392
|
+
"apiToken": []
|
|
6393
|
+
}
|
|
6394
|
+
],
|
|
6395
|
+
"group": "hosting"
|
|
6396
|
+
},
|
|
6354
6397
|
{
|
|
6355
6398
|
"name": "hosting_getPhpMyAdminLinkV1",
|
|
6356
6399
|
"title": "Get phpMyAdmin link",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -6365,6 +6365,49 @@ const tools: OpenApiTool[] = [
|
|
|
6365
6365
|
],
|
|
6366
6366
|
"group": "hosting"
|
|
6367
6367
|
},
|
|
6368
|
+
{
|
|
6369
|
+
"name": "hosting_setupWebsiteDatabaseV1",
|
|
6370
|
+
"title": "Setup website database",
|
|
6371
|
+
"annotations": {
|
|
6372
|
+
"title": "Setup website database",
|
|
6373
|
+
"readOnlyHint": false,
|
|
6374
|
+
"destructiveHint": false
|
|
6375
|
+
},
|
|
6376
|
+
"description": "Creates a new MySQL database for the website and writes its connection details into the\nwebsite's environment variables, then restarts the application. The platform generates the\npassword (and the database name and user, unless supplied). The password is never returned;\nthe application reads it from the environment.\n\nWritten variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and\n`DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded).\nExisting variables are kept. If the website already has any variable with one of these\nnames the call fails with 422 and nothing is created; the `Replace Node.js environment\nvariables` endpoint removes them.\n\nAfter this call the variables are ordinary environment variables: the\n`Replace Node.js environment variables` endpoint changes or removes them like any other.\n\nA restart is enough for apps that read environment variables at process start, such as\nExpress or NestJS. Frameworks that bake variables into the build output (Next.js,\n`NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint).\n\nA password in the request is ignored; the platform always generates it. The optional `name`\nand `user` are identifiers, not secrets.",
|
|
6377
|
+
"method": "POST",
|
|
6378
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup",
|
|
6379
|
+
"inputSchema": {
|
|
6380
|
+
"type": "object",
|
|
6381
|
+
"properties": {
|
|
6382
|
+
"username": {
|
|
6383
|
+
"type": "string",
|
|
6384
|
+
"description": "username parameter"
|
|
6385
|
+
},
|
|
6386
|
+
"domain": {
|
|
6387
|
+
"type": "string",
|
|
6388
|
+
"description": "Domain name"
|
|
6389
|
+
},
|
|
6390
|
+
"name": {
|
|
6391
|
+
"type": "string",
|
|
6392
|
+
"description": "Optional database name. Generated when omitted. Letters, digits and underscores;\nmust not start with an underscore. Up to 14 characters without the account username\nprefix (`u123456789_`), which is added automatically when missing. With the prefix\nthe full name is 12 to 25 characters."
|
|
6393
|
+
},
|
|
6394
|
+
"user": {
|
|
6395
|
+
"type": "string",
|
|
6396
|
+
"description": "Optional database user. Generated when omitted. Letters, digits and underscores;\nmust not start with an underscore. Up to 14 characters without the account username\nprefix (`u123456789_`), which is added automatically when missing. With the prefix\nthe full user is 12 to 25 characters."
|
|
6397
|
+
}
|
|
6398
|
+
},
|
|
6399
|
+
"required": [
|
|
6400
|
+
"username",
|
|
6401
|
+
"domain"
|
|
6402
|
+
]
|
|
6403
|
+
},
|
|
6404
|
+
"security": [
|
|
6405
|
+
{
|
|
6406
|
+
"apiToken": []
|
|
6407
|
+
}
|
|
6408
|
+
],
|
|
6409
|
+
"group": "hosting"
|
|
6410
|
+
},
|
|
6368
6411
|
{
|
|
6369
6412
|
"name": "hosting_getPhpMyAdminLinkV1",
|
|
6370
6413
|
"title": "Get phpMyAdmin link",
|
|
@@ -890,6 +890,49 @@ export default [
|
|
|
890
890
|
],
|
|
891
891
|
"group": "hosting"
|
|
892
892
|
},
|
|
893
|
+
{
|
|
894
|
+
"name": "hosting_setupWebsiteDatabaseV1",
|
|
895
|
+
"title": "Setup website database",
|
|
896
|
+
"annotations": {
|
|
897
|
+
"title": "Setup website database",
|
|
898
|
+
"readOnlyHint": false,
|
|
899
|
+
"destructiveHint": false
|
|
900
|
+
},
|
|
901
|
+
"description": "Creates a new MySQL database for the website and writes its connection details into the\nwebsite's environment variables, then restarts the application. The platform generates the\npassword (and the database name and user, unless supplied). The password is never returned;\nthe application reads it from the environment.\n\nWritten variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and\n`DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded).\nExisting variables are kept. If the website already has any variable with one of these\nnames the call fails with 422 and nothing is created; the `Replace Node.js environment\nvariables` endpoint removes them.\n\nAfter this call the variables are ordinary environment variables: the\n`Replace Node.js environment variables` endpoint changes or removes them like any other.\n\nA restart is enough for apps that read environment variables at process start, such as\nExpress or NestJS. Frameworks that bake variables into the build output (Next.js,\n`NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint).\n\nA password in the request is ignored; the platform always generates it. The optional `name`\nand `user` are identifiers, not secrets.",
|
|
902
|
+
"method": "POST",
|
|
903
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup",
|
|
904
|
+
"inputSchema": {
|
|
905
|
+
"type": "object",
|
|
906
|
+
"properties": {
|
|
907
|
+
"username": {
|
|
908
|
+
"type": "string",
|
|
909
|
+
"description": "username parameter"
|
|
910
|
+
},
|
|
911
|
+
"domain": {
|
|
912
|
+
"type": "string",
|
|
913
|
+
"description": "Domain name"
|
|
914
|
+
},
|
|
915
|
+
"name": {
|
|
916
|
+
"type": "string",
|
|
917
|
+
"description": "Optional database name. Generated when omitted. Letters, digits and underscores;\nmust not start with an underscore. Up to 14 characters without the account username\nprefix (`u123456789_`), which is added automatically when missing. With the prefix\nthe full name is 12 to 25 characters."
|
|
918
|
+
},
|
|
919
|
+
"user": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"description": "Optional database user. Generated when omitted. Letters, digits and underscores;\nmust not start with an underscore. Up to 14 characters without the account username\nprefix (`u123456789_`), which is added automatically when missing. With the prefix\nthe full user is 12 to 25 characters."
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"required": [
|
|
925
|
+
"username",
|
|
926
|
+
"domain"
|
|
927
|
+
]
|
|
928
|
+
},
|
|
929
|
+
"security": [
|
|
930
|
+
{
|
|
931
|
+
"apiToken": []
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
"group": "hosting"
|
|
935
|
+
},
|
|
893
936
|
{
|
|
894
937
|
"name": "hosting_getPhpMyAdminLinkV1",
|
|
895
938
|
"title": "Get phpMyAdmin link",
|
|
@@ -904,6 +904,49 @@ const tools: OpenApiTool[] = [
|
|
|
904
904
|
],
|
|
905
905
|
"group": "hosting"
|
|
906
906
|
},
|
|
907
|
+
{
|
|
908
|
+
"name": "hosting_setupWebsiteDatabaseV1",
|
|
909
|
+
"title": "Setup website database",
|
|
910
|
+
"annotations": {
|
|
911
|
+
"title": "Setup website database",
|
|
912
|
+
"readOnlyHint": false,
|
|
913
|
+
"destructiveHint": false
|
|
914
|
+
},
|
|
915
|
+
"description": "Creates a new MySQL database for the website and writes its connection details into the\nwebsite's environment variables, then restarts the application. The platform generates the\npassword (and the database name and user, unless supplied). The password is never returned;\nthe application reads it from the environment.\n\nWritten variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and\n`DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded).\nExisting variables are kept. If the website already has any variable with one of these\nnames the call fails with 422 and nothing is created; the `Replace Node.js environment\nvariables` endpoint removes them.\n\nAfter this call the variables are ordinary environment variables: the\n`Replace Node.js environment variables` endpoint changes or removes them like any other.\n\nA restart is enough for apps that read environment variables at process start, such as\nExpress or NestJS. Frameworks that bake variables into the build output (Next.js,\n`NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint).\n\nA password in the request is ignored; the platform always generates it. The optional `name`\nand `user` are identifiers, not secrets.",
|
|
916
|
+
"method": "POST",
|
|
917
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setup",
|
|
918
|
+
"inputSchema": {
|
|
919
|
+
"type": "object",
|
|
920
|
+
"properties": {
|
|
921
|
+
"username": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"description": "username parameter"
|
|
924
|
+
},
|
|
925
|
+
"domain": {
|
|
926
|
+
"type": "string",
|
|
927
|
+
"description": "Domain name"
|
|
928
|
+
},
|
|
929
|
+
"name": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"description": "Optional database name. Generated when omitted. Letters, digits and underscores;\nmust not start with an underscore. Up to 14 characters without the account username\nprefix (`u123456789_`), which is added automatically when missing. With the prefix\nthe full name is 12 to 25 characters."
|
|
932
|
+
},
|
|
933
|
+
"user": {
|
|
934
|
+
"type": "string",
|
|
935
|
+
"description": "Optional database user. Generated when omitted. Letters, digits and underscores;\nmust not start with an underscore. Up to 14 characters without the account username\nprefix (`u123456789_`), which is added automatically when missing. With the prefix\nthe full user is 12 to 25 characters."
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
"required": [
|
|
939
|
+
"username",
|
|
940
|
+
"domain"
|
|
941
|
+
]
|
|
942
|
+
},
|
|
943
|
+
"security": [
|
|
944
|
+
{
|
|
945
|
+
"apiToken": []
|
|
946
|
+
}
|
|
947
|
+
],
|
|
948
|
+
"group": "hosting"
|
|
949
|
+
},
|
|
907
950
|
{
|
|
908
951
|
"name": "hosting_getPhpMyAdminLinkV1",
|
|
909
952
|
"title": "Get phpMyAdmin link",
|
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.63.
|
|
7
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.63.2', tools, instructions });
|
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.63.
|
|
7
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.63.2', tools, instructions });
|
package/src/servers/all.js
CHANGED
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/all.js';
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-api-mcp', version: '1.63.
|
|
7
|
+
startServer({ name: 'hostinger-api-mcp', version: '1.63.2', tools, instructions });
|
package/src/servers/all.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/all.js';
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-api-mcp', version: '1.63.
|
|
7
|
+
startServer({ name: 'hostinger-api-mcp', version: '1.63.2', tools, instructions });
|
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
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/hosting.js';
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-hosting-mcp', version: '1.63.
|
|
7
|
+
startServer({ name: 'hostinger-hosting-mcp', version: '1.63.2', tools, instructions });
|
package/src/servers/hosting.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { startServer } from '../core/runtime.js';
|
|
|
4
4
|
import tools from '../core/tools/hosting.js';
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-hosting-mcp', version: '1.63.
|
|
7
|
+
startServer({ name: 'hostinger-hosting-mcp', version: '1.63.2', tools, instructions });
|
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
|
@@ -3533,6 +3533,56 @@ The database name must be the full name returned by the list databases endpoint.
|
|
|
3533
3533
|
response: any; // Response structure will depend on the API
|
|
3534
3534
|
};
|
|
3535
3535
|
|
|
3536
|
+
/**
|
|
3537
|
+
* Creates a new MySQL database for the website and writes its connection details into the
|
|
3538
|
+
website's environment variables, then restarts the application. The platform generates the
|
|
3539
|
+
password (and the database name and user, unless supplied). The password is never returned;
|
|
3540
|
+
the application reads it from the environment.
|
|
3541
|
+
|
|
3542
|
+
Written variables: `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER`, `DB_PASSWORD` and
|
|
3543
|
+
`DATABASE_URL` (`mysql://user:password@host:port/name`, user and password percent-encoded).
|
|
3544
|
+
Existing variables are kept. If the website already has any variable with one of these
|
|
3545
|
+
names the call fails with 422 and nothing is created; the `Replace Node.js environment
|
|
3546
|
+
variables` endpoint removes them.
|
|
3547
|
+
|
|
3548
|
+
After this call the variables are ordinary environment variables: the
|
|
3549
|
+
`Replace Node.js environment variables` endpoint changes or removes them like any other.
|
|
3550
|
+
|
|
3551
|
+
A restart is enough for apps that read environment variables at process start, such as
|
|
3552
|
+
Express or NestJS. Frameworks that bake variables into the build output (Next.js,
|
|
3553
|
+
`NEXT_PUBLIC_*`) see the new values only after a fresh build (`Start Node.js build` endpoint).
|
|
3554
|
+
|
|
3555
|
+
A password in the request is ignored; the platform always generates it. The optional `name`
|
|
3556
|
+
and `user` are identifiers, not secrets.
|
|
3557
|
+
*/
|
|
3558
|
+
"hosting_setupWebsiteDatabaseV1": {
|
|
3559
|
+
params: {
|
|
3560
|
+
/**
|
|
3561
|
+
* username parameter
|
|
3562
|
+
*/
|
|
3563
|
+
username: string;
|
|
3564
|
+
/**
|
|
3565
|
+
* Domain name
|
|
3566
|
+
*/
|
|
3567
|
+
domain: string;
|
|
3568
|
+
/**
|
|
3569
|
+
* Optional database name. Generated when omitted. Letters, digits and underscores;
|
|
3570
|
+
must not start with an underscore. Up to 14 characters without the account username
|
|
3571
|
+
prefix (`u123456789_`), which is added automatically when missing. With the prefix
|
|
3572
|
+
the full name is 12 to 25 characters.
|
|
3573
|
+
*/
|
|
3574
|
+
name?: string;
|
|
3575
|
+
/**
|
|
3576
|
+
* Optional database user. Generated when omitted. Letters, digits and underscores;
|
|
3577
|
+
must not start with an underscore. Up to 14 characters without the account username
|
|
3578
|
+
prefix (`u123456789_`), which is added automatically when missing. With the prefix
|
|
3579
|
+
the full user is 12 to 25 characters.
|
|
3580
|
+
*/
|
|
3581
|
+
user?: string;
|
|
3582
|
+
};
|
|
3583
|
+
response: any; // Response structure will depend on the API
|
|
3584
|
+
};
|
|
3585
|
+
|
|
3536
3586
|
/**
|
|
3537
3587
|
* Returns a direct sign-on link to phpMyAdmin for the specified database.
|
|
3538
3588
|
|