hostinger-api-mcp 0.2.9 → 0.2.11

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.
@@ -13,27 +13,37 @@ jobs:
13
13
  id-token: write
14
14
  contents: write
15
15
  outputs:
16
- new_version: ${{ steps.bump.outputs.new_version }}
16
+ new_version: ${{ steps.version.outputs.version }}
17
+ released: ${{ steps.version.outputs.released }}
17
18
  steps:
18
19
  - name: Repo checkout
19
20
  uses: actions/checkout@v4
20
-
21
- - name: Bump version and push tag
22
- id: bump
23
- uses: mathieudutour/github-tag-action@v6.2
24
21
  with:
25
- github_token: ${{ secrets.GITHUB_TOKEN }}
26
- release_branches: main
22
+ fetch-depth: 0
27
23
 
28
- - name: Release tag
24
+ - name: Resolve version from package.json
25
+ id: version
26
+ run: |
27
+ VERSION=$(jq -r .version package.json)
28
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
29
+ if git rev-parse "v$VERSION" >/dev/null 2>&1; then
30
+ echo "released=false" >> "$GITHUB_OUTPUT"
31
+ echo "Tag v$VERSION already exists — skipping release."
32
+ else
33
+ echo "released=true" >> "$GITHUB_OUTPUT"
34
+ fi
35
+
36
+ - name: Create release
37
+ if: steps.version.outputs.released == 'true'
29
38
  uses: ncipollo/release-action@v1
30
39
  with:
31
- tag: ${{ steps.bump.outputs.new_tag }}
40
+ tag: v${{ steps.version.outputs.version }}
32
41
  generateReleaseNotes: true
33
42
 
34
43
  publish-npmjs:
35
44
  runs-on: ubuntu-latest
36
45
  needs: [release]
46
+ if: needs.release.outputs.released == 'true'
37
47
  permissions:
38
48
  contents: read
39
49
  id-token: write
@@ -57,6 +67,7 @@ jobs:
57
67
  release-github:
58
68
  runs-on: ubuntu-latest
59
69
  needs: [release]
70
+ if: needs.release.outputs.released == 'true'
60
71
  permissions:
61
72
  contents: read
62
73
  id-token: write
@@ -83,6 +94,7 @@ jobs:
83
94
  publish-mcp:
84
95
  runs-on: ubuntu-latest
85
96
  needs: [ release, publish-npmjs ]
97
+ if: needs.release.outputs.released == 'true'
86
98
  permissions:
87
99
  id-token: write
88
100
  contents: read
@@ -100,12 +112,6 @@ jobs:
100
112
  curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
101
113
  chmod +x ./mcp-publisher
102
114
 
103
- - name: Sync version in server.json
104
- run: |
105
- VERSION=${{ needs.release.outputs.new_version }}
106
- jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > tmp && mv tmp server.json
107
- cat server.json
108
-
109
115
  - name: Login to MCP Registry using GitHub OIDC
110
116
  run: ./mcp-publisher login github-oidc
111
117
 
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
+ "mcpName": "io.github.hostinger/hostinger-api-mcp",
4
5
  "description": "MCP server for Hostinger API",
5
6
  "repository": {
6
7
  "type": "git",
package/server.json CHANGED
@@ -6,20 +6,20 @@
6
6
  "url": "https://github.com/hostinger/api-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.2.9",
9
+ "version": "0.2.11",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "hostinger-api-mcp",
14
- "version": "0.2.9",
14
+ "version": "0.2.11",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },
18
18
  "environmentVariables": [
19
19
  {
20
20
  "name": "HOSTINGER_API_TOKEN",
21
- "description": "Hostinger API token",
22
- "isRequired": true,
21
+ "description": "Hostinger API token. Optional — when unset, the server falls back to interactive OAuth sign-in.",
22
+ "isRequired": false,
23
23
  "isSecret": true,
24
24
  "format": "string"
25
25
  }
@@ -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.9', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '0.2.11', 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.9', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '0.2.11', tools });