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 +10 -0
- package/README.md +1 -1
- package/build.js +0 -6
- package/gemini-extension.json +1 -1
- package/package.json +1 -2
- package/server.json +2 -2
- package/src/core/runtime.js +0 -4
- package/src/core/runtime.ts +0 -4
- 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/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/.env.example +0 -14
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
|
|
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');
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hostinger-api-mcp",
|
|
3
|
-
"version": "3.21.
|
|
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.
|
|
9
|
+
"version": "3.21.1",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@hostinger/mcp",
|
|
14
|
-
"version": "3.21.
|
|
14
|
+
"version": "3.21.1",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
package/src/core/runtime.js
CHANGED
|
@@ -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.
|
package/src/core/runtime.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
6
|
+
startServer({ name: 'hostinger-agent-readiness-mcp', version: '3.21.1', 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: '3.21.
|
|
8
|
+
startServer({ name: 'hostinger-api-mcp', version: '3.21.1', 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: '3.21.
|
|
8
|
+
startServer({ name: 'hostinger-api-mcp', version: '3.21.1', 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/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: '3.21.
|
|
7
|
+
startServer({ name: 'hostinger-hosting-mcp', version: '3.21.1', 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: '3.21.
|
|
7
|
+
startServer({ name: 'hostinger-hosting-mcp', version: '3.21.1', 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/.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
|
-
|