hostinger-api-mcp 3.21.0 → 3.21.1

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 CHANGED
@@ -4,6 +4,16 @@ 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.21.1 — 2026-10-28
8
+
9
+ ### Also in this release
10
+
11
+ - Other files: `.env.example`, `.gitignore`
12
+ - Documentation: `README.md`
13
+ - Build and packaging: `build.js`
14
+ - Dependencies: `package-lock.json`, `package.json`
15
+ - Request handling and authentication: `src/core/runtime.js`, `src/core/runtime.ts`
16
+
7
17
  ## v3.21.0 — 2026-10-28
8
18
 
9
19
  ### Also in this release
package/README.md CHANGED
@@ -99,7 +99,7 @@ The server supports two authentication methods:
99
99
 
100
100
  ### API Token (recommended for CI/scripts)
101
101
 
102
- Set `HOSTINGER_API_TOKEN` in the environment or `.env` file. When present it always takes precedence — no OAuth code runs.
102
+ Set `HOSTINGER_API_TOKEN` in the environment (the MCP client's `env` block). When present it always takes precedence — no OAuth code runs.
103
103
 
104
104
  ### OAuth 2.0 with PKCE (interactive sign-in)
105
105
 
package/build.js CHANGED
@@ -29,13 +29,7 @@ exec('npx tsc', (error, stdout, stderr) => {
29
29
 
30
30
  console.log('TypeScript compilation successful');
31
31
 
32
- // Copy .env.example to dist
33
32
  try {
34
- if (fs.existsSync('./.env.example')) {
35
- fs.copyFileSync('./.env.example', './dist/.env.example');
36
- console.log('Copied .env.example to dist directory');
37
- }
38
-
39
33
  if (fs.existsSync('./README.md')) {
40
34
  fs.copyFileSync('./README.md', './dist/README.md');
41
35
  console.log('Copied README.md to dist directory');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "3.21.0",
3
+ "version": "3.21.1",
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-api-mcp",
3
- "version": "3.21.0",
3
+ "version": "3.21.1",
4
4
  "mcpName": "io.github.hostinger/hostinger-api-mcp",
5
5
  "description": "MCP server for Hostinger API",
6
6
  "repository": {
@@ -42,7 +42,6 @@
42
42
  "@modelcontextprotocol/sdk": "^1.30.0",
43
43
  "axios": "^1.8.0",
44
44
  "cors": "^2.8.5",
45
- "dotenv": "^18.0.1",
46
45
  "express": "^5.2.1",
47
46
  "fflate": "^0.8.3",
48
47
  "minimist": "^1.2.8",
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": "3.21.0",
9
+ "version": "3.21.1",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@hostinger/mcp",
14
- "version": "3.21.0",
14
+ "version": "3.21.1",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },
@@ -6,7 +6,6 @@ import minimist from 'minimist';
6
6
  import cors from "cors";
7
7
  import express from "express";
8
8
  import axios from "axios";
9
- import { config as dotenvConfig } from "dotenv";
10
9
  import {
11
10
  ListToolsRequestSchema,
12
11
  CallToolRequestSchema,
@@ -25,9 +24,6 @@ import os from "os";
25
24
  import { Zip, ZipDeflate } from "fflate";
26
25
  import { META_TOOLS, searchOperations, renderSearch, findOperation, runSteps } from "./catalog.js";
27
26
 
28
- // Load environment variables
29
- dotenvConfig({ quiet: true });
30
-
31
27
  /**
32
28
  * An upstream API call that came back as a failure. Carries the status and the
33
29
  * API's own response body so the CallTool handler can hand both to the model.
@@ -6,7 +6,6 @@ import minimist from 'minimist';
6
6
  import cors from "cors";
7
7
  import express from "express";
8
8
  import {Request, Response} from "express";
9
- import { config as dotenvConfig } from "dotenv";
10
9
  import {
11
10
  ListToolsRequestSchema,
12
11
  CallToolRequestSchema,
@@ -28,9 +27,6 @@ import { Zip, ZipDeflate } from "fflate";
28
27
  import { META_TOOLS, searchOperations, renderSearch, findOperation, runSteps } from "./catalog.js";
29
28
  import type { CatalogOperation } from "./catalog.js";
30
29
 
31
- // Load environment variables
32
- dotenvConfig({ quiet: true });
33
-
34
30
  // Define tool and security scheme types
35
31
  interface OpenApiTool extends Tool {
36
32
  method: string;
@@ -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.21.0', tools, instructions });
7
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.21.1', 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.21.0', tools, instructions });
7
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.21.1', 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.21.0', tools, instructions, skills });
8
+ startServer({ name: 'hostinger-api-mcp', version: '3.21.1', 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.21.0', tools, instructions, skills });
8
+ startServer({ name: 'hostinger-api-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '3.21.1', 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.21.0', tools, instructions });
7
+ startServer({ name: 'hostinger-hosting-mcp', version: '3.21.1', 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.21.0', tools, instructions });
7
+ startServer({ name: 'hostinger-hosting-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-mail-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-mail-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '3.21.1', 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.21.0', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '3.21.1', tools });
package/.env.example DELETED
@@ -1,14 +0,0 @@
1
- # API Configuration
2
- TRANSPORT=stdio # Fixed to stdio
3
-
4
- # Debug
5
- DEBUG=false
6
-
7
- # OAuth Configuration (used when HOSTINGER_API_TOKEN is not set — stdio mode only)
8
- # Uncomment to override the default OAuth issuer:
9
- # OAUTH_ISSUER=https://auth.hostinger.com
10
-
11
- # --- Authorization Configuration ---
12
- # Example for HTTP Bearer Token "apiToken"
13
- APITOKEN=YOUR_TOKEN_VALUE
14
-