Skip to content

Fix install script and goreleaser release config - #305

Merged
foxish merged 7 commits into
mainfrom
fix-install-script-2
Mar 2, 2026
Merged

foxish merged 7 commits into
mainfrom
fix-install-script-2

Conversation

@foxish

@foxish foxish commented Feb 27, 2026 •

Copy link
Copy Markdown
Member

Summary

install.sh fixes

  • Replace curl -f exit code check with an explicit %{http_code} comparison to detect whether the _mcp_ archive exists for a given release
  • The previous --head check gave false positives on Linux due to redirect chain behavior, causing the install script to fail with 404 for older releases
  • Fall back to old archive name (signadot-cli_OS_ARCH) for releases predating the _mcp_ rename

goreleaser fixes

  • Restore homebrew Formula tap: switch from homebrew_casks (Cask) back to brews publishing to Formula/signadot-cli.rb with bin.install "signadot" — matching pre-v2 behavior
  • Add auth: type: github to MCP registry publisher, fixing the anonymous token 404 error on publish
  • Expand MCP packages from a single OS/arch template to explicit entries for all four platforms: linux_amd64, linux_arm64, darwin_amd64, darwin_arm64

Test plan

  • Run install script on Linux against an older release (e.g. SIGNADOT_CLI_VERSION=v1.4.0) and verify it falls back to the old naming scheme
  • Run install script against a new release with _mcp_ archives and verify it uses the new URL
  • goreleaser release --snapshot --skip=publish --clean passes (Docker aside)
  • Homebrew formula publishes to Formula/signadot-cli.rb in homebrew-tap on release
  • MCP registry publishes all 4 platform binaries on release

🤖 Generated with Claude Code

Replace curl -f exit code check with explicit %{http_code} comparison
to reliably detect whether the new _mcp_ archive exists for a release.
The previous --head check gave false positives on Linux due to redirect
chain behavior, causing installs to fail with 404 for older releases.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Switch homebrew_casks back to brews (Formula in Formula/ dir) to match
  pre-v2 tap behavior with bin.install "signadot"
- Add github auth to MCP registry publisher to fix anonymous token 404
- Expand MCP packages from single template to explicit entries for all
  four platforms (linux/darwin x amd64/arm64)

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@foxish foxish changed the title Fix archive URL detection using explicit HTTP status check Fix install script and goreleaser release config Mar 2, 2026

@scott-cotton scott-cotton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

foxish and others added 4 commits March 2, 2026 14:26
goreleaser does not support the fileSha256 field now required by the MCP
registry for mcpb packages. Remove the mcp section from goreleaser.yaml
and add scripts/gen-mcp-server-json.sh which downloads release archives,
computes SHA256 hashes, and writes a server.json ready for mcp-publish.
Update README with post-release publishing steps, and gitignore the
generated server.json and .mcpregistry_* token files.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Accept either '1.5.0' or 'v1.5.0' as input; always strip the leading v
so callers don't need to include it. Use the bare version number in the
server.json version field.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@foxish

foxish commented Mar 2, 2026

Copy link
Copy Markdown
Member Author

I've updated the README to add a post-release step and used the new script to upload to MCP registry.

https://registry.modelcontextprotocol.io/?q=signadot
image

cc @scott-cotton

@foxish
foxish merged commit 4c2c042 into main Mar 2, 2026
@foxish
foxish deleted the fix-install-script-2 branch March 2, 2026 22:34
@scott-cotton

Copy link
Copy Markdown
Member

I've updated the README to add a post-release step and used the new script to upload to MCP registry.

don't see the README changes

@foxish

foxish commented Mar 2, 2026

Copy link
Copy Markdown
Member Author

I've updated the README to add a post-release step and used the new script to upload to MCP registry.

don't see the README changes

https://github.com/signadot/cli/pull/305/changes#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5

@scott-cotton

Copy link
Copy Markdown
Member

I've updated the README to add a post-release step and used the new script to upload to MCP registry.

don't see the README changes

https://github.com/signadot/cli/pull/305/changes#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5

GH hid them.

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.

2 participants