Skip to content
Latchkey

Build and Publish MCPB workflow (blazickjp/arxiv-mcp-server)

The Build and Publish MCPB workflow from blazickjp/arxiv-mcp-server, explained and optimized by Latchkey.

C

CI health: C - fair

Run this on Latchkey for self-healing, caching, and up to 58% lower cost.

Grade your own workflow free or run it on Latchkey →
Source: blazickjp/arxiv-mcp-server.github/workflows/build-mcpb.ymlLicense Apache-2.0View source

What it does

This is the Build and Publish MCPB workflow from the blazickjp/arxiv-mcp-server repository, a real project running GitHub Actions. It is shown here with attribution under its Apache-2.0 license.

Below, Latchkey shows a faster, safer version produced by its optimization engine.

The workflow

workflow (.yml)
name: Build and Publish MCPB

on:
  release:
    types: [published]
  workflow_dispatch:

jobs:
  build-mcpb:
    # Python MCPB bundles vendor platform-specific wheels, so publish separate
    # macOS artifacts for Intel and Apple Silicon runners.
    strategy:
      fail-fast: false
      matrix:
        os: [macos-13, macos-latest]
    runs-on: ${{ matrix.os }}
    permissions:
      contents: write

    steps:
      - uses: actions/checkout@v4

      - name: Set up Python 3.11
        uses: actions/setup-python@v5
        with:
          python-version: "3.11"

      - name: Set up Node.js 20
        uses: actions/setup-node@v4
        with:
          node-version: "20"

      - name: Build MCPB bundle
        run: bash scripts/build-mcpb.sh

      - name: Upload MCPB to release
        if: github.event_name == 'release'
        run: gh release upload "${{ github.event.release.tag_name }}" mcpb-build/*.mcpb --clobber
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      - name: Upload MCPB artifact
        if: github.event_name == 'workflow_dispatch'
        uses: actions/upload-artifact@v4
        with:
          name: arxiv-mcp-server-mcpb-${{ matrix.os }}
          path: mcpb-build/*.mcpb

The same workflow, on Latchkey

Estimated ~20% faster on cache hits, plus fewer wasted runs and a safer supply chain. Added and changed lines are highlighted.

name: Build and Publish MCPB
 
on:
  release:
    types: [published]
  workflow_dispatch:
 
jobs:
  build-mcpb:
    timeout-minutes: 30
    # Python MCPB bundles vendor platform-specific wheels, so publish separate
    # macOS artifacts for Intel and Apple Silicon runners.
    strategy:
      fail-fast: false
      matrix:
        os: [macos-13, macos-latest]
    runs-on: ${{ matrix.os }}
    permissions:
      contents: write
 
    steps:
      - uses: actions/checkout@v4
 
      - name: Set up Python 3.11
        uses: actions/setup-python@v5
        with:
          python-version: "3.11"
 
      - name: Set up Node.js 20
        uses: actions/setup-node@v4
        with:
          cache: 'npm'
          node-version: "20"
 
      - name: Build MCPB bundle
        run: bash scripts/build-mcpb.sh
 
      - name: Upload MCPB to release
        if: github.event_name == 'release'
        run: gh release upload "${{ github.event.release.tag_name }}" mcpb-build/*.mcpb --clobber
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
      - name: Upload MCPB artifact
        if: github.event_name == 'workflow_dispatch'
        uses: actions/upload-artifact@v4
        with:
          name: arxiv-mcp-server-mcpb-${{ matrix.os }}
          path: mcpb-build/*.mcpb
 

What changed

This workflow runs 1 job (2 with the matrix expanded) per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.

Actions used in this workflow