hostinger-api-mcp 1.5.5 → 1.5.6

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
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": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "mcpName": "io.github.hostinger/hostinger-api-mcp",
5
5
  "description": "MCP server for Hostinger API",
6
6
  "repository": {
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.5.5",
9
+ "version": "1.5.6",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "hostinger-api-mcp",
14
- "version": "1.5.5",
14
+ "version": "1.5.6",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },
@@ -141,8 +141,8 @@ class MCPServer {
141
141
 
142
142
  // Handle tool execution requests
143
143
  this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
144
- const { id, name, arguments: params } = request.params;
145
- this.log('debug', "Handling CallTool request", { id, name, params });
144
+ const { name, arguments: params } = request.params;
145
+ this.log('debug', "Handling CallTool request", { name, params });
146
146
 
147
147
  let toolName;
148
148
  let toolDetails;
@@ -1971,11 +1971,10 @@ class MCPServer {
1971
1971
  * Only sends to MCP if we're connected
1972
1972
  */
1973
1973
  log(level, message, data) {
1974
- // Always log to stderr for visibility
1975
- console.error(`[${level.toUpperCase()}] ${message}${data ? ': ' + JSON.stringify(data) : ''}`);
1976
-
1977
- // Only try to send via MCP if we're in debug mode or it's important
1974
+ // Debug logs (which may include request params) only reach stderr when
1975
+ // DEBUG=true; info/warning/error always log. This gate also guards the MCP send.
1978
1976
  if (this.debug || level !== 'debug') {
1977
+ console.error(`[${level.toUpperCase()}] ${message}${data ? ': ' + JSON.stringify(data) : ''}`);
1979
1978
  try {
1980
1979
  // Only send if server exists and is connected
1981
1980
  if (this.server && this.server.isConnected) {
@@ -25,8 +25,13 @@ dotenvConfig();
25
25
  interface OpenApiTool extends Tool {
26
26
  method: string;
27
27
  path: string;
28
- security: any[];
28
+ security: unknown[];
29
29
  custom?: boolean;
30
+ group?: string;
31
+ topic?: string;
32
+ handlerMethod?: string;
33
+ templateFile?: string;
34
+ templateFileTS?: string;
30
35
  }
31
36
 
32
37
  interface SecurityScheme {
@@ -167,8 +172,8 @@ class MCPServer {
167
172
 
168
173
  // Handle tool execution requests
169
174
  this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
170
- const { id, name, arguments: params } = request.params;
171
- this.log('debug', "Handling CallTool request", { id, name, params });
175
+ const { name, arguments: params } = request.params;
176
+ this.log('debug', "Handling CallTool request", { name, params });
172
177
 
173
178
  let toolName: string | undefined;
174
179
  let toolDetails: OpenApiTool | undefined;
@@ -2009,11 +2014,10 @@ class MCPServer {
2009
2014
  * Only sends to MCP if we're connected
2010
2015
  */
2011
2016
  private log(level: 'debug' | 'info' | 'warning' | 'error', message: string, data?: any): void {
2012
- // Always log to stderr for visibility
2013
- console.error(`[${level.toUpperCase()}] ${message}${data ? ': ' + JSON.stringify(data) : ''}`);
2014
-
2015
- // Only try to send via MCP if we're in debug mode or it's important
2017
+ // Debug logs (which may include request params) only reach stderr when
2018
+ // DEBUG=true; info/warning/error always log. This gate also guards the MCP send.
2016
2019
  if (this.debug || level !== 'debug') {
2020
+ console.error(`[${level.toUpperCase()}] ${message}${data ? ': ' + JSON.stringify(data) : ''}`);
2017
2021
  try {
2018
2022
  // Only send if server exists and is connected
2019
2023
  if (this.server && (this.server as any).isConnected) {
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -7,6 +7,10 @@ export interface OpenApiTool extends Tool {
7
7
  security: unknown[];
8
8
  custom?: boolean;
9
9
  group?: string;
10
+ topic?: string;
11
+ handlerMethod?: string;
12
+ templateFile?: string;
13
+ templateFileTS?: string;
10
14
  }
11
15
 
12
16
  const tools: OpenApiTool[] = [
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/agency-hosting.js';
5
5
 
6
- startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.5.6', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/agency-hosting.js';
5
5
 
6
- startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.5.6', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/all.js';
5
5
 
6
- startServer({ name: 'hostinger-api-mcp', version: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '1.5.6', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/all.js';
5
5
 
6
- startServer({ name: 'hostinger-api-mcp', version: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '1.5.6', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/hosting.js';
5
5
 
6
- startServer({ name: 'hostinger-hosting-mcp', version: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '1.5.6', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/hosting.js';
5
5
 
6
- startServer({ name: 'hostinger-hosting-mcp', version: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '1.5.6', 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: '1.5.5', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '1.5.6', tools });
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "es2022",
4
4
  "module": "esnext",
5
- "moduleResolution": "node",
5
+ "moduleResolution": "bundler",
6
6
  "esModuleInterop": true,
7
7
  "strict": true,
8
8
  "skipLibCheck": true,