diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml index e7f14c8..191e58a 100644 --- a/.github/workflows/publish-mcp.yml +++ b/.github/workflows/publish-mcp.yml @@ -21,5 +21,10 @@ jobs: - name: Authenticate to MCP Registry run: ./mcp-publisher login github-oidc + - name: Set server.json version from the tag + run: | + VERSION="${GITHUB_REF#refs/tags/v}" + jq --arg v "$VERSION" '.version = $v' server.json > server.tmp && mv server.tmp server.json + - name: Publish server to MCP Registry run: ./mcp-publisher publish