hostinger-api-mcp 0.1.41 → 0.1.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "description": "MCP server for Hostinger API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -74,7 +74,11 @@ class MCPServer {
74
74
  });
75
75
  }
76
76
 
77
- headers['User-Agent'] = `hostinger-mcp-server/${this.version}`;
77
+ const extensionUa = String(process.env.USER_AGENT ?? "")
78
+ .replace(/\r|\n/g, "")
79
+ .trim();
80
+ const base = `hostinger-mcp-server/${this.version}`;
81
+ headers["User-Agent"] = extensionUa ? `${base} (${extensionUa})` : base;
78
82
 
79
83
  return headers;
80
84
  }
@@ -98,9 +98,13 @@ class MCPServer {
98
98
  if (key && value) headers[key.trim()] = value.trim();
99
99
  });
100
100
  }
101
-
102
- headers['User-Agent'] = `hostinger-mcp-server/${this.version}`;
103
-
101
+
102
+ const extensionUa = String(process.env.USER_AGENT ?? "")
103
+ .replace(/\r|\n/g, "")
104
+ .trim();
105
+ const base = `hostinger-mcp-server/${this.version}`;
106
+ headers["User-Agent"] = extensionUa ? `${base} (${extensionUa})` : base;
107
+
104
108
  return headers;
105
109
  }
106
110
 
@@ -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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '0.1.43', 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: '0.1.41', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '0.1.43', tools });