From f5933d1b330317aa3612db0ef0d0604ef2fcada9 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 18:31:37 +0000 Subject: [PATCH 1/2] Add GitHub Actions workflow to publish to MCP registry - Follows MCP registry publishing guidelines - Triggers on releases and manual dispatch - Uses existing NPM_TOKEN secret - Publishes to npm first, then MCP registry - Uses GitHub OIDC authentication for MCP registry Co-Authored-By: Kane Parkinson --- .github/workflows/publish-mcp-registry.yml | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/publish-mcp-registry.yml diff --git a/.github/workflows/publish-mcp-registry.yml b/.github/workflows/publish-mcp-registry.yml new file mode 100644 index 0000000..829cf97 --- /dev/null +++ b/.github/workflows/publish-mcp-registry.yml @@ -0,0 +1,47 @@ +name: Publish to MCP Registry + +on: + release: + types: [published] + workflow_dispatch: + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm run test --if-present + + - name: Build package + run: npm run build + + - name: Publish to npm + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Install MCP Publisher + run: | + curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher + + - name: Login to MCP Registry + run: ./mcp-publisher login github-oidc + + - name: Publish to MCP Registry + run: ./mcp-publisher publish From e86560a95090c745b89dc5c064f9cab70fba0ac9 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 19:03:37 +0000 Subject: [PATCH 2/2] Remove npm publishing duplication - focus only on MCP registry - Remove Node.js setup, npm ci, build, and publish steps - Keep only MCP registry-specific publishing steps - Addresses reviewer feedback about Speakeasy workflow already handling npm publishing Co-Authored-By: Kane Parkinson --- .github/workflows/publish-mcp-registry.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/publish-mcp-registry.yml b/.github/workflows/publish-mcp-registry.yml index 829cf97..49eab50 100644 --- a/.github/workflows/publish-mcp-registry.yml +++ b/.github/workflows/publish-mcp-registry.yml @@ -16,26 +16,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '18' - registry-url: 'https://registry.npmjs.org' - - - name: Install dependencies - run: npm ci - - - name: Run tests - run: npm run test --if-present - - - name: Build package - run: npm run build - - - name: Publish to npm - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Install MCP Publisher run: | curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher