Skip to content

ci: Install publisher via binary release#42

Merged
masnwilliams merged 1 commit intomainfrom
mason/fix-mcp-publish
Sep 10, 2025
Merged

ci: Install publisher via binary release#42
masnwilliams merged 1 commit intomainfrom
mason/fix-mcp-publish

Conversation

@masnwilliams
Copy link
Copy Markdown
Collaborator

@masnwilliams masnwilliams commented Sep 10, 2025

TL;DR

Updated the publish-mcp workflow to install the mcp-publisher via its binary release instead of building it from source.

Why we made these changes

Building the publisher from source during the CI run is slow and adds unnecessary complexity. Downloading a pre-compiled binary is faster, simplifies the workflow by removing the Go build dependency, and improves reliability.

What changed?

  • The publish-mcp.yml workflow now downloads the mcp-publisher binary directly from its GitHub release assets.
  • Removed the setup-go action and the go install command, as the Go toolchain is no longer required.

Description generated by Mesa. Update settings

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mcp Building Building Preview Comment Sep 10, 2025 8:44pm

@masnwilliams masnwilliams merged commit 55fffa4 into main Sep 10, 2025
1 of 2 checks passed
@masnwilliams masnwilliams deleted the mason/fix-mcp-publish branch September 10, 2025 20:44
Copy link
Copy Markdown

@mesa-dot-dev mesa-dot-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performed full review of 66e26ed...87c787c

Tip

⚡ Quick Actions

This review was generated by Mesa.

Actions:

Slash Commands:

  • /review - Request a full code review
  • /review latest - Review only changes since the last review
  • /describe - Generate PR description. This will update the PR body or issue comment depending on your configuration
  • /help - Get help with Mesa commands and configuration options

1 files reviewed | 3 comments | Review on Mesa | Edit Reviewer Settings

if [ "$ARCH" = "x86_64" ]; then ARCH="amd64"; elif [ "$ARCH" = "aarch64" ]; then ARCH="arm64"; fi
OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
URL="https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_${OS}_${ARCH}.tar.gz"
curl -L "$URL" | tar xz mcp-publisher
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Medium Security

The curl command lacks checksum verification, making it vulnerable to supply chain attacks. Consider adding SHA256 checksum verification after downloading the binary to ensure integrity.
Agent: 🤖 General

run: |
set -euo pipefail
ARCH="$(uname -m)"
if [ "$ARCH" = "x86_64" ]; then ARCH="amd64"; elif [ "$ARCH" = "aarch64" ]; then ARCH="arm64"; fi
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low Logic

The architecture detection only handles x86_64 and aarch64, but doesn't have a fallback for unsupported architectures. This could cause silent failures if the workflow runs on an unexpected architecture. Consider adding an explicit check and error message for unsupported architectures.
Agent: 🤖 General

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant