hostinger-api-mcp 0.2.7 → 0.2.9

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.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "MCP server for Hostinger API",
5
5
  "repository": {
6
6
  "type": "git",
package/server.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
3
+ "name": "io.github.hostinger/hostinger-api-mcp",
4
+ "description": "MCP server for Hostinger API",
5
+ "repository": {
6
+ "url": "https://github.com/hostinger/api-mcp-server",
7
+ "source": "github"
8
+ },
9
+ "version": "0.2.9",
10
+ "packages": [
11
+ {
12
+ "registryType": "npm",
13
+ "identifier": "hostinger-api-mcp",
14
+ "version": "0.2.9",
15
+ "transport": {
16
+ "type": "stdio"
17
+ },
18
+ "environmentVariables": [
19
+ {
20
+ "name": "HOSTINGER_API_TOKEN",
21
+ "description": "Hostinger API token",
22
+ "isRequired": true,
23
+ "isSecret": true,
24
+ "format": "string"
25
+ }
26
+ ]
27
+ }
28
+ ]
29
+ }
@@ -2066,10 +2066,16 @@ class MCPServer {
2066
2066
  export async function startServer({ name, version, tools }) {
2067
2067
  const argv = minimist(process.argv.slice(2), {
2068
2068
  string: ['host'],
2069
- boolean: ['stdio', 'http', 'help', 'login', 'logout'],
2069
+ boolean: ['stdio', 'http', 'help', 'version', 'login', 'logout'],
2070
+ alias: { v: 'version' },
2070
2071
  default: { host: '127.0.0.1', port: 8100, stdio: true }
2071
2072
  });
2072
2073
 
2074
+ if (argv.version) {
2075
+ console.log(version);
2076
+ process.exit(0);
2077
+ }
2078
+
2073
2079
  if (argv.help) {
2074
2080
  console.log(`
2075
2081
  ${name}
@@ -2081,6 +2087,7 @@ export async function startServer({ name, version, tools }) {
2081
2087
  --port <port> Port to bind to (default: 8100)
2082
2088
  --login Run OAuth sign-in flow and exit
2083
2089
  --logout Revoke stored OAuth credentials and exit
2090
+ --version, -v Show version number
2084
2091
  --help Show this help message
2085
2092
  Environment Variables:
2086
2093
  HOSTINGER_API_TOKEN Hostinger API token (overrides OAuth when set)
@@ -2104,9 +2104,16 @@ class MCPServer {
2104
2104
  export async function startServer({ name, version, tools }: { name: string; version: string; tools: OpenApiTool[] }): Promise<void> {
2105
2105
  const argv = minimist(process.argv.slice(2), {
2106
2106
  string: ['host'],
2107
- boolean: ['stdio', 'http', 'help', 'login', 'logout'],
2107
+ boolean: ['stdio', 'http', 'help', 'version', 'login', 'logout'],
2108
+ alias: { v: 'version' },
2108
2109
  default: { host: '127.0.0.1', port: 8100, stdio: true }
2109
2110
  });
2111
+
2112
+ if (argv.version) {
2113
+ console.log(version);
2114
+ process.exit(0);
2115
+ }
2116
+
2110
2117
  if (argv.help) {
2111
2118
  console.log(`
2112
2119
  ${name}
@@ -2118,6 +2125,7 @@ export async function startServer({ name, version, tools }: { name: string; vers
2118
2125
  --port <port> Port to bind to (default: 8100)
2119
2126
  --login Run OAuth sign-in flow and exit
2120
2127
  --logout Revoke stored OAuth credentials and exit
2128
+ --version, -v Show version number
2121
2129
  --help Show this help message
2122
2130
  Environment Variables:
2123
2131
  HOSTINGER_API_TOKEN Hostinger API token (overrides OAuth when set)
@@ -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.2.7', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '0.2.9', 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.2.7', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '0.2.9', tools });