hostinger-api-mcp 4.1.0 → 4.2.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/CHANGELOG.md +8 -0
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/headless/VERSION +2 -2
- package/src/core/runtime.js +9 -2
- package/src/core/runtime.ts +9 -2
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/agent-readiness.js +1 -1
- package/src/servers/agent-readiness.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/gpu.js +1 -1
- package/src/servers/gpu.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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ 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
|
+
## v4.2.0 — 2026-11-16
|
|
8
|
+
|
|
9
|
+
### Also in this release
|
|
10
|
+
|
|
11
|
+
- Dependencies: `package-lock.json`
|
|
12
|
+
- Bundled agent skills: `skills/headless/VERSION`
|
|
13
|
+
- Request handling and authentication: `src/core/runtime.js`, `src/core/runtime.ts`
|
|
14
|
+
|
|
7
15
|
## v4.1.0 — 2026-11-16
|
|
8
16
|
|
|
9
17
|
### Also in this release
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"url": "https://github.com/hostinger/api-mcp-server",
|
|
18
18
|
"source": "github"
|
|
19
19
|
},
|
|
20
|
-
"version": "4.
|
|
20
|
+
"version": "4.2.0",
|
|
21
21
|
"packages": [
|
|
22
22
|
{
|
|
23
23
|
"registryType": "npm",
|
|
24
24
|
"identifier": "@hostinger/mcp",
|
|
25
|
-
"version": "4.
|
|
25
|
+
"version": "4.2.0",
|
|
26
26
|
"transport": {
|
|
27
27
|
"type": "stdio"
|
|
28
28
|
},
|
package/skills/headless/VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
version=4.
|
|
2
|
-
commit=
|
|
1
|
+
version=4.2.0
|
|
2
|
+
commit=669ccb12e0bd
|
|
3
3
|
built=2026-11-16
|
package/src/core/runtime.js
CHANGED
|
@@ -149,14 +149,21 @@ class MCPServer {
|
|
|
149
149
|
*/
|
|
150
150
|
setupHandlers() {
|
|
151
151
|
// Capture the connecting MCP client's identity once the initialize handshake completes.
|
|
152
|
-
// The name
|
|
152
|
+
// The name and version are client-controlled input, so strip CR/LF to prevent header injection.
|
|
153
153
|
this.server.oninitialized = () => {
|
|
154
|
-
const
|
|
154
|
+
const clientInfo = this.server.getClientVersion();
|
|
155
|
+
const clientName = String(clientInfo?.name ?? "")
|
|
155
156
|
.replace(/\r|\n/g, "")
|
|
156
157
|
.trim();
|
|
157
158
|
if (clientName) {
|
|
158
159
|
this.headers["X-MCP-Client"] = clientName;
|
|
159
160
|
}
|
|
161
|
+
const clientVersion = String(clientInfo?.version ?? "")
|
|
162
|
+
.replace(/\r|\n/g, "")
|
|
163
|
+
.trim();
|
|
164
|
+
if (clientVersion) {
|
|
165
|
+
this.headers["X-MCP-Client-Version"] = clientVersion;
|
|
166
|
+
}
|
|
160
167
|
};
|
|
161
168
|
|
|
162
169
|
// Handle tool listing requests
|
package/src/core/runtime.ts
CHANGED
|
@@ -194,14 +194,21 @@ class MCPServer {
|
|
|
194
194
|
*/
|
|
195
195
|
private setupHandlers(): void {
|
|
196
196
|
// Capture the connecting MCP client's identity once the initialize handshake completes.
|
|
197
|
-
// The name
|
|
197
|
+
// The name and version are client-controlled input, so strip CR/LF to prevent header injection.
|
|
198
198
|
this.server.oninitialized = () => {
|
|
199
|
-
const
|
|
199
|
+
const clientInfo = this.server.getClientVersion();
|
|
200
|
+
const clientName = String(clientInfo?.name ?? "")
|
|
200
201
|
.replace(/\r|\n/g, "")
|
|
201
202
|
.trim();
|
|
202
203
|
if (clientName) {
|
|
203
204
|
this.headers["X-MCP-Client"] = clientName;
|
|
204
205
|
}
|
|
206
|
+
const clientVersion = String(clientInfo?.version ?? "")
|
|
207
|
+
.replace(/\r|\n/g, "")
|
|
208
|
+
.trim();
|
|
209
|
+
if (clientVersion) {
|
|
210
|
+
this.headers["X-MCP-Client-Version"] = clientVersion;
|
|
211
|
+
}
|
|
205
212
|
};
|
|
206
213
|
|
|
207
214
|
// Handle tool listing requests
|
|
@@ -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.agency-hosting.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '4.
|
|
7
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '4.2.0', 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.agency-hosting.js';
|
|
6
6
|
|
|
7
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '4.
|
|
7
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '4.2.0', tools, instructions });
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agent-readiness.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agent-readiness-mcp', version: '4.
|
|
6
|
+
startServer({ name: 'hostinger-agent-readiness-mcp', version: '4.2.0', tools });
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agent-readiness.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agent-readiness-mcp', version: '4.
|
|
6
|
+
startServer({ name: 'hostinger-agent-readiness-mcp', version: '4.2.0', tools });
|
package/src/servers/all.js
CHANGED
|
@@ -5,4 +5,4 @@ import tools from '../core/tools/all.js';
|
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
import skills from '../core/skills.js';
|
|
7
7
|
|
|
8
|
-
startServer({ name: 'hostinger-api-mcp', version: '4.
|
|
8
|
+
startServer({ name: 'hostinger-api-mcp', version: '4.2.0', tools, instructions, skills });
|
package/src/servers/all.ts
CHANGED
|
@@ -5,4 +5,4 @@ import tools from '../core/tools/all.js';
|
|
|
5
5
|
import instructions from '../core/instructions.js';
|
|
6
6
|
import skills from '../core/skills.js';
|
|
7
7
|
|
|
8
|
-
startServer({ name: 'hostinger-api-mcp', version: '4.
|
|
8
|
+
startServer({ name: 'hostinger-api-mcp', version: '4.2.0', tools, instructions, skills });
|
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/gpu.js
CHANGED
package/src/servers/gpu.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: '4.
|
|
7
|
+
startServer({ name: 'hostinger-hosting-mcp', version: '4.2.0', 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: '4.
|
|
7
|
+
startServer({ name: 'hostinger-hosting-mcp', version: '4.2.0', 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