Skip to content

Commit 6d16cd4

Browse files
chore: Publish to mcp public registry (#7)
1 parent 1d13729 commit 6d16cd4

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.github/workflows/build-release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,34 @@ jobs:
7373
npm publish --provenance --access public
7474
env:
7575
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
77+
publish-mcp:
78+
runs-on: ubuntu-latest
79+
needs: [ release-github ]
80+
permissions:
81+
id-token: write
82+
contents: read
83+
steps:
84+
- name: Checkout repo
85+
uses: actions/checkout@v4
86+
87+
- name: Setup Node.js
88+
uses: actions/setup-node@v4
89+
with:
90+
node-version: '24.x'
91+
92+
- name: Install MCP Publisher
93+
run: |
94+
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
95+
chmod +x ./mcp-publisher
96+
97+
- name: Sync version in server.json
98+
run: |
99+
VERSION=${GITHUB_REF#refs/tags/v}
100+
jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > tmp && mv tmp server.json
101+
102+
- name: Login to MCP Registry using GitHub OIDC
103+
run: ./mcp-publisher login github-oidc
104+
105+
- name: Publish to MCP Registry
106+
run: ./mcp-publisher publish

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"type": "git",
77
"url": "https://github.com/hostinger/api-mcp-server.git"
88
},
9+
"mcpName": "io.github.hostinger/hostinger-api-mcp",
910
"license": "MIT",
1011
"keywords": [
1112
"hostinger",

server.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
"title": "Hostinger API MCP",
5+
"description": "MCP server for Hostinger API",
6+
"repository": {
7+
"url": "https://github.com/hostinger/api-mcp-server",
8+
"source": "github"
9+
},
10+
"version": "0.1.15",
11+
"packages": [
12+
{
13+
"registryType": "npm",
14+
"identifier": "hostinger-api-mcp",
15+
"version": "0.1.15",
16+
"transport": {
17+
"type": "stdio"
18+
},
19+
"environmentVariables": [
20+
{
21+
"name": "API_TOKEN",
22+
"description": "Hostinger API token",
23+
"isRequired": true,
24+
"isSecret": true
25+
}
26+
]
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)