File tree Expand file tree Collapse file tree 3 files changed +61
-0
lines changed
Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments