From 3715df1eef4739900c4431840efb2113c3f15954 Mon Sep 17 00:00:00 2001 From: Srinivasan Sekar Date: Fri, 21 Nov 2025 17:08:59 +0530 Subject: [PATCH 1/3] remove submodule checkout Co-authored-by: Saikrishna321 --- .github/workflows/publish-mcp.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml index d6a2e7c..709977f 100644 --- a/.github/workflows/publish-mcp.yml +++ b/.github/workflows/publish-mcp.yml @@ -16,11 +16,6 @@ jobs: with: submodules: recursive - - name: Setup submodules sparse-checkout - run: | - chmod +x scripts/setup-submodules-sparse.sh - ./scripts/setup-submodules-sparse.sh - - name: Setup Node.js uses: actions/setup-node@v5 with: From 288907de86505a1fc0bcbd04ef40d87d41ba15b6 Mon Sep 17 00:00:00 2001 From: Srinivasan Sekar Date: Fri, 21 Nov 2025 17:32:09 +0530 Subject: [PATCH 2/3] Revert "remove submodule checkout" This reverts commit f2f033b9fced6134aa962505f77244cc1facdaab. --- .github/workflows/publish-mcp.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml index 709977f..d6a2e7c 100644 --- a/.github/workflows/publish-mcp.yml +++ b/.github/workflows/publish-mcp.yml @@ -16,6 +16,11 @@ jobs: with: submodules: recursive + - name: Setup submodules sparse-checkout + run: | + chmod +x scripts/setup-submodules-sparse.sh + ./scripts/setup-submodules-sparse.sh + - name: Setup Node.js uses: actions/setup-node@v5 with: From ece6b984d1596456a529212dd22116afef4c6895 Mon Sep 17 00:00:00 2001 From: Srinivasan Sekar Date: Fri, 21 Nov 2025 18:04:15 +0530 Subject: [PATCH 3/3] chore: integrate publishing actions Co-authored-by: Saikrishna321 --- .github/workflows/publish-mcp.yml | 53 ------------------------------- .github/workflows/publish.yml | 19 ++++++++++- 2 files changed, 18 insertions(+), 54 deletions(-) delete mode 100644 .github/workflows/publish-mcp.yml diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml deleted file mode 100644 index d6a2e7c..0000000 --- a/.github/workflows/publish-mcp.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Publish to MCP Registry - -on: - push: - tags: ['v*'] - -jobs: - publish: - runs-on: ubuntu-latest - permissions: - id-token: write - contents: read - - steps: - - uses: actions/checkout@v5 - with: - submodules: recursive - - - name: Setup submodules sparse-checkout - run: | - chmod +x scripts/setup-submodules-sparse.sh - ./scripts/setup-submodules-sparse.sh - - - name: Setup Node.js - uses: actions/setup-node@v5 - with: - node-version: 'lts/*' - cache: 'npm' - - - name: Install dependencies - run: npm install --no-package-lock --force - - - name: Build - run: | - npm run build --if-present - - # MCP publishing - - name: Download MCP Publisher - run: | - curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher - - - name: Update server.json version to match git tag - run: | - VERSION=${GITHUB_REF#refs/tags/v} - jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > tmp && mv tmp server.json - echo "Updated server.json version to $VERSION" - cat server.json - - - name: Publish to MCP Registry - run: | - chmod +x mcp-publisher - ./mcp-publisher login github-oidc - ./mcp-publisher publish diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cc5d43b..6789fe7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,9 +15,10 @@ jobs: build: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 with: submodules: recursive + fetch-depth: 0 # Fetch all tags for version detection - name: Setup submodules sparse-checkout run: | chmod +x scripts/setup-submodules-sparse.sh @@ -34,3 +35,19 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} name: Release + # MCP publishing + - name: Update server.json version to match package.json + run: | + VERSION=$(node -p "require('./package.json').version") + jq --arg v "$VERSION" '.version = $v | .packages[0].version = $v' server.json > tmp && mv tmp server.json + echo "Updated server.json version to $VERSION" + + - name: Download MCP Publisher + run: | + curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher + + - name: Publish to MCP Registry + run: | + chmod +x mcp-publisher + ./mcp-publisher login github-oidc + ./mcp-publisher publish