File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed
Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1111 permissions :
1212 id-token : write
1313 contents : write
14+ outputs :
15+ new_version : ${{ steps.bump.outputs.new_version }}
1416 steps :
1517 - name : Repo checkout
1618 uses : actions/checkout@v4
7981
8082 publish-mcp :
8183 runs-on : ubuntu-latest
82- needs : [ publish-npmjs ]
84+ needs : [ release, publish-npmjs ]
8385 permissions :
8486 id-token : write
8587 contents : read
99101
100102 - name : Sync version in server.json
101103 run : |
102- VERSION=${GITHUB_REF#refs/tags/v }
104+ VERSION=${{ needs.release.outputs.new_version } }
103105 jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > tmp && mv tmp server.json
106+ cat server.json
104107
105108 - name : Login to MCP Registry using GitHub OIDC
106109 run : ./mcp-publisher login github-oidc
Original file line number Diff line number Diff line change 11{
22 "name" : " hostinger-api-mcp" ,
3- "version" : " 0.1.20 " ,
3+ "version" : " 0.1.21 " ,
44 "mcpName" : " io.github.hostinger/hostinger-api-mcp" ,
55 "description" : " MCP server for Hostinger API" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -3422,7 +3422,7 @@ class MCPServer {
34223422 this . server = new Server (
34233423 {
34243424 name : "hostinger-api-mcp" ,
3425- version : "0.1.20 " ,
3425+ version : "0.1.21 " ,
34263426 } ,
34273427 {
34283428 capabilities : {
@@ -3447,7 +3447,7 @@ class MCPServer {
34473447 } ) ;
34483448 }
34493449
3450- headers [ 'User-Agent' ] = 'hostinger-mcp-server/0.1.20 ' ;
3450+ headers [ 'User-Agent' ] = 'hostinger-mcp-server/0.1.21 ' ;
34513451
34523452 return headers ;
34533453 }
Original file line number Diff line number Diff line change 66 "url" : " https://github.com/hostinger/api-mcp-server" ,
77 "source" : " github"
88 },
9- "version" : " 0.1.20 " ,
9+ "version" : " 0.1.21 " ,
1010 "packages" : [
1111 {
1212 "registryType" : " npm" ,
1313 "identifier" : " hostinger-api-mcp" ,
14- "version" : " 0.1.20 " ,
14+ "version" : " 0.1.21 " ,
1515 "transport" : {
1616 "type" : " stdio"
1717 },
Original file line number Diff line number Diff line change @@ -3444,7 +3444,7 @@ class MCPServer {
34443444 this . server = new Server (
34453445 {
34463446 name : "hostinger-api-mcp" ,
3447- version : "0.1.20 " ,
3447+ version : "0.1.21 " ,
34483448 } ,
34493449 {
34503450 capabilities : {
@@ -3469,7 +3469,7 @@ class MCPServer {
34693469 } ) ;
34703470 }
34713471
3472- headers [ 'User-Agent' ] = 'hostinger-mcp-server/0.1.20 ' ;
3472+ headers [ 'User-Agent' ] = 'hostinger-mcp-server/0.1.21 ' ;
34733473
34743474 return headers ;
34753475 }
You can’t perform that action at this time.
0 commit comments