@hostinger/mcp 3.38.1 → 3.38.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.
@@ -7,10 +7,13 @@ on:
7
7
  - main
8
8
 
9
9
  jobs:
10
+ # npm trusted publishing trusts this whole workflow file, so any job here holding id-token: write can publish
11
+ # the package. Only the publish jobs hold it, and besides GitHub's own actions they run no downloaded code:
12
+ # no npm update and no dependency install (npm publish packs the files and runs no scripts), and a pinned,
13
+ # checksummed mcp-publisher.
10
14
  release:
11
15
  runs-on: ubuntu-latest
12
16
  permissions:
13
- id-token: write
14
17
  contents: write
15
18
  outputs:
16
19
  new_version: ${{ steps.version.outputs.version }}
@@ -77,12 +80,6 @@ jobs:
77
80
  node-version: '24.x'
78
81
  registry-url: 'https://registry.npmjs.org'
79
82
 
80
- - name: Update NPM
81
- run: npm install -g npm@latest
82
-
83
- - name: Install dependencies
84
- run: npm install
85
-
86
83
  - name: Publish package
87
84
  run: npm publish --provenance --access public
88
85
 
@@ -119,9 +116,6 @@ jobs:
119
116
  registry-url: 'https://npm.pkg.github.com'
120
117
  scope: '@hostinger'
121
118
 
122
- - name: Install dependencies
123
- run: npm install
124
-
125
119
  - name: Publish package
126
120
  run: |
127
121
  sed -i 's+"name": ".*+"name": "@${{ github.repository }}",+gI' ./package.json
@@ -145,9 +139,16 @@ jobs:
145
139
  with:
146
140
  node-version: '24.x'
147
141
 
142
+ # Pinned and checksummed: this job can mint the npm publishing identity. To upgrade, take the
143
+ # sha256 digest of mcp-publisher_linux_amd64.tar.gz from the registry release's assets.
148
144
  - name: Install MCP Publisher
145
+ env:
146
+ MCP_PUBLISHER_VERSION: v1.8.7
147
+ MCP_PUBLISHER_SHA256: 00b21004149a4ce66f0782508ae4a2bce67d1bea395a8da0bd8028159fb59579
149
148
  run: |
150
- curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
149
+ curl -fsSL -o mcp-publisher.tar.gz "https://github.com/modelcontextprotocol/registry/releases/download/$MCP_PUBLISHER_VERSION/mcp-publisher_linux_amd64.tar.gz"
150
+ echo "$MCP_PUBLISHER_SHA256 mcp-publisher.tar.gz" | sha256sum -c -
151
+ tar xzf mcp-publisher.tar.gz mcp-publisher
151
152
  chmod +x ./mcp-publisher
152
153
 
153
154
  - name: Login to MCP Registry using GitHub OIDC
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ 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
+ ## v3.38.2 — 2026-11-11
8
+
9
+ ### Also in this release
10
+
11
+ - Release automation: `.github/workflows/build-release.yaml`
12
+ - Bundled agent skills: `skills/headless/VERSION`
13
+ - OAuth sign-in flow: `src/core/oauth.js`, `src/core/oauth.ts`
14
+ - Request handling and authentication: `src/core/runtime.js`, `src/core/runtime.ts`
15
+
7
16
  ## v3.38.1 — 2026-11-11
8
17
 
9
18
  ### Also in this release
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "3.38.1",
3
+ "version": "3.38.2",
4
4
  "description": "Hostinger API — manage domains, DNS, hosting, VPS, billing and more from Gemini CLI.",
5
5
  "mcpServers": {
6
6
  "hostinger": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostinger/mcp",
3
- "version": "3.38.1",
3
+ "version": "3.38.2",
4
4
  "mcpName": "io.github.hostinger/hostinger-api-mcp",
5
5
  "description": "MCP server for Hostinger API",
6
6
  "repository": {
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": "3.38.1",
20
+ "version": "3.38.2",
21
21
  "packages": [
22
22
  {
23
23
  "registryType": "npm",
24
24
  "identifier": "@hostinger/mcp",
25
- "version": "3.38.1",
25
+ "version": "3.38.2",
26
26
  "transport": {
27
27
  "type": "stdio"
28
28
  },
@@ -1,3 +1,3 @@
1
- version=3.38.1
2
- commit=0c534731bebc
1
+ version=3.38.2
2
+ commit=df3ce7a7bae2
3
3
  built=2026-11-11
package/src/core/oauth.js CHANGED
@@ -348,8 +348,15 @@ export class OAuthProvider {
348
348
  _listenForCallback(expectedState, port) {
349
349
  return new Promise((resolve, reject) => {
350
350
  const server = createServer((req, res) => {
351
- const url = new URL(req.url, `http://127.0.0.1:${port}`);
352
- if (url.pathname !== CALLBACK_PATH) {
351
+ // Any local process or web page can reach this port: a request target that does not parse (GET //)
352
+ // gets a 404 instead of an exception, which would crash the server.
353
+ let url;
354
+ try {
355
+ url = new URL(req.url, `http://127.0.0.1:${port}`);
356
+ } catch {
357
+ url = null;
358
+ }
359
+ if (url?.pathname !== CALLBACK_PATH) {
353
360
  res.writeHead(404);
354
361
  res.end();
355
362
  return;
package/src/core/oauth.ts CHANGED
@@ -320,8 +320,15 @@ export class OAuthProvider {
320
320
  private _listenForCallback(expectedState: string, port: number): Promise<{ code: string; port: number }> {
321
321
  return new Promise((resolve, reject) => {
322
322
  const server: Server = createServer((req, res) => {
323
- const url = new URL(req.url || '/', `http://127.0.0.1:${port}`);
324
- if (url.pathname !== CALLBACK_PATH) {
323
+ // Any local process or web page can reach this port: a request target that does not parse (GET //)
324
+ // gets a 404 instead of an exception, which would crash the server.
325
+ let url: URL | null;
326
+ try {
327
+ url = new URL(req.url || '/', `http://127.0.0.1:${port}`);
328
+ } catch {
329
+ url = null;
330
+ }
331
+ if (!url || url.pathname !== CALLBACK_PATH) {
325
332
  res.writeHead(404);
326
333
  res.end();
327
334
  return;
@@ -350,7 +350,9 @@ class MCPServer {
350
350
  // Container secrets (Docker's /run/secrets, the Kubernetes service-account token under /var/run/secrets) and runtime state.
351
351
  '/run', '/var/run', '/private/var/run',
352
352
  // Every user's home directory, whatever the current home is (root's is /root, a container's can be /).
353
- '/home', '/Users', ...(process.platform === 'win32' ? [path.join(process.env.SystemDrive || 'C:', 'Users')] : [])];
353
+ '/home', '/Users',
354
+ // Windows: the profiles, the system, installed programs and their machine-wide data.
355
+ ...(process.platform === 'win32' ? [path.join(process.env.SystemDrive || 'C:', 'Users'), process.env.SystemRoot, process.env.ProgramData, process.env.ProgramFiles, process.env['ProgramFiles(x86)']].filter(Boolean) : [])];
354
356
 
355
357
  // A deploy publishes what it reads, and the path comes from the model, so prompt-injected arguments could
356
358
  // publish any readable file. Refused, before anything is read or sent: the home directory and every directory
@@ -360,6 +362,11 @@ class MCPServer {
360
362
  // os is imported by deploy.template: the JS generator dedupes import blocks by their whole text, and this block
361
363
  // must stay identical to agency-hosting/shared's, or tus and fs are imported twice.
362
364
  assertDeployablePath(localPath) {
365
+ // A UNC or device path (\\host\share, //host/share, \\?\UNC\…) is opened over SMB by the realpath below, which on
366
+ // Windows sends the user's NTLM credentials to that host: refused before anything touches it.
367
+ if (/^[\\/]{2}/.test(localPath)) {
368
+ throw new Error('Refusing to deploy ' + localPath + ': it is a network path. Pass a local project directory or archive.');
369
+ }
363
370
  let real;
364
371
  try {
365
372
  real = fs.realpathSync.native(localPath);
@@ -413,7 +420,8 @@ class MCPServer {
413
420
  const inSystem = !inHome && this.systemDirectories.some((dir) => inside(dir, real) || inside(real, dir));
414
421
  // Windows drops trailing dots and spaces from a name: .ssh. is .ssh.
415
422
  const inCredentials = real.split(path.sep).some((segment) => this.credentialDirectories.includes((process.platform === 'win32' ? segment.replace(/[. ]+$/, '') : segment).toLowerCase()));
416
- if (inside(real, home) || otherHome || inHomeData || inProfile || inSystem || inCredentials || (fs.statSync(real).isFile() && this.isSecretFile(path.basename(real)))) {
423
+ // A drive or filesystem root (D:\ on Windows) holds everything on it.
424
+ if (real === path.parse(real).root || /^[\\/]{2}/.test(real) || inside(real, home) || otherHome || inHomeData || inProfile || inSystem || inCredentials || (fs.statSync(real).isFile() && this.isSecretFile(path.basename(real)))) {
417
425
  throw new Error('Refusing to deploy ' + localPath + ': it is, or contains, a home, system or credentials location. Pass the project directory or archive.');
418
426
  }
419
427
  }
@@ -384,7 +384,9 @@ class MCPServer {
384
384
  // Container secrets (Docker's /run/secrets, the Kubernetes service-account token under /var/run/secrets) and runtime state.
385
385
  '/run', '/var/run', '/private/var/run',
386
386
  // Every user's home directory, whatever the current home is (root's is /root, a container's can be /).
387
- '/home', '/Users', ...(process.platform === 'win32' ? [path.join(process.env.SystemDrive || 'C:', 'Users')] : [])];
387
+ '/home', '/Users',
388
+ // Windows: the profiles, the system, installed programs and their machine-wide data.
389
+ ...(process.platform === 'win32' ? [path.join(process.env.SystemDrive || 'C:', 'Users'), process.env.SystemRoot, process.env.ProgramData, process.env.ProgramFiles, process.env['ProgramFiles(x86)']].filter((dir): dir is string => !!dir) : [])];
388
390
 
389
391
  // A deploy publishes what it reads, and the path comes from the model, so prompt-injected arguments could
390
392
  // publish any readable file. Refused, before anything is read or sent: the home directory and every directory
@@ -394,6 +396,11 @@ class MCPServer {
394
396
  // os is imported by deploy.template: the JS generator dedupes import blocks by their whole text, and this block
395
397
  // must stay identical to agency-hosting/shared's, or tus and fs are imported twice.
396
398
  private assertDeployablePath(localPath: string): void {
399
+ // A UNC or device path (\\host\share, //host/share, \\?\UNC\…) is opened over SMB by the realpath below, which on
400
+ // Windows sends the user's NTLM credentials to that host: refused before anything touches it.
401
+ if (/^[\\/]{2}/.test(localPath)) {
402
+ throw new Error('Refusing to deploy ' + localPath + ': it is a network path. Pass a local project directory or archive.');
403
+ }
397
404
  let real: string;
398
405
  try {
399
406
  real = fs.realpathSync.native(localPath);
@@ -447,7 +454,8 @@ class MCPServer {
447
454
  const inSystem = !inHome && this.systemDirectories.some((dir: string) => inside(dir, real) || inside(real, dir));
448
455
  // Windows drops trailing dots and spaces from a name: .ssh. is .ssh.
449
456
  const inCredentials = real.split(path.sep).some((segment: string) => this.credentialDirectories.includes((process.platform === 'win32' ? segment.replace(/[. ]+$/, '') : segment).toLowerCase()));
450
- if (inside(real, home) || otherHome || inHomeData || inProfile || inSystem || inCredentials || (fs.statSync(real).isFile() && this.isSecretFile(path.basename(real)))) {
457
+ // A drive or filesystem root (D:\ on Windows) holds everything on it.
458
+ if (real === path.parse(real).root || /^[\\/]{2}/.test(real) || inside(real, home) || otherHome || inHomeData || inProfile || inSystem || inCredentials || (fs.statSync(real).isFile() && this.isSecretFile(path.basename(real)))) {
451
459
  throw new Error('Refusing to deploy ' + localPath + ': it is, or contains, a home, system or credentials location. Pass the project directory or archive.');
452
460
  }
453
461
  }
@@ -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: '3.38.1', tools, instructions });
7
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.38.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.agency-hosting.js';
6
6
 
7
- startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.38.1', tools, instructions });
7
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.38.2', 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: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.38.2', 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: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.38.2', tools });
@@ -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: '3.38.1', tools, instructions, skills });
8
+ startServer({ name: 'hostinger-api-mcp', version: '3.38.2', tools, instructions, skills });
@@ -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: '3.38.1', tools, instructions, skills });
8
+ startServer({ name: 'hostinger-api-mcp', version: '3.38.2', tools, instructions, skills });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/billing.js';
5
5
 
6
- startServer({ name: 'hostinger-billing-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/billing.js';
5
5
 
6
- startServer({ name: 'hostinger-billing-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/dns.js';
5
5
 
6
- startServer({ name: 'hostinger-dns-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/dns.js';
5
5
 
6
- startServer({ name: 'hostinger-dns-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/domains.js';
5
5
 
6
- startServer({ name: 'hostinger-domains-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/domains.js';
5
5
 
6
- startServer({ name: 'hostinger-domains-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/ecommerce.js';
5
5
 
6
- startServer({ name: 'hostinger-ecommerce-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/ecommerce.js';
5
5
 
6
- startServer({ name: 'hostinger-ecommerce-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/gpu.js';
5
5
 
6
- startServer({ name: 'hostinger-gpu-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-gpu-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/gpu.js';
5
5
 
6
- startServer({ name: 'hostinger-gpu-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-gpu-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/horizons.js';
5
5
 
6
- startServer({ name: 'hostinger-horizons-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/horizons.js';
5
5
 
6
- startServer({ name: 'hostinger-horizons-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '3.38.2', tools });
@@ -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: '3.38.1', tools, instructions });
7
+ startServer({ name: 'hostinger-hosting-mcp', version: '3.38.2', tools, instructions });
@@ -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: '3.38.1', tools, instructions });
7
+ startServer({ name: 'hostinger-hosting-mcp', version: '3.38.2', tools, instructions });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/mail.js';
5
5
 
6
- startServer({ name: 'hostinger-mail-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-mail-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/mail.js';
5
5
 
6
- startServer({ name: 'hostinger-mail-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-mail-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/reach.js';
5
5
 
6
- startServer({ name: 'hostinger-reach-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/reach.js';
5
5
 
6
- startServer({ name: 'hostinger-reach-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/vps.js';
5
5
 
6
- startServer({ name: 'hostinger-vps-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/vps.js';
5
5
 
6
- startServer({ name: 'hostinger-vps-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/wordpress.js';
5
5
 
6
- startServer({ name: 'hostinger-wordpress-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '3.38.2', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/wordpress.js';
5
5
 
6
- startServer({ name: 'hostinger-wordpress-mcp', version: '3.38.1', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '3.38.2', tools });