vestige/packages/vestige-mcpb/build.sh
Sam Valladares ed6aeadb70 feat: add MCPB bundle and fix npm package distribution
Two distribution methods now available:

1. npm (for Claude Code / developers):
   npm install -g vestige-mcp-server
   claude mcp add vestige vestige-mcp -s user

2. MCPB (for Claude Desktop / one-click install):
   Download vestige-1.1.0.mcpb from releases, double-click

Changes:
- Renamed npm package to vestige-mcp-server (vestige-mcp was taken)
- Fixed postinstall to download binaries from GitHub releases
- Added vestige-mcpb package with manifest and build script
- Uploaded .mcpb bundle to v1.1.0 release

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 00:15:17 -06:00

35 lines
1.2 KiB
Bash
Executable file

#!/bin/bash
set -e
VERSION="${1:-1.1.0}"
REPO="samvallad33/vestige"
echo "Building Vestige MCPB v${VERSION}..."
# Create server directory
mkdir -p server
# Download macOS ARM64
echo "Downloading macOS ARM64 binary..."
curl -sL "https://github.com/${REPO}/releases/download/v${VERSION}/vestige-mcp-aarch64-apple-darwin.tar.gz" | tar -xz -C server
mv server/vestige-mcp server/vestige-mcp-darwin-arm64
mv server/vestige server/vestige-darwin-arm64
# Download Linux x64
echo "Downloading Linux x64 binary..."
curl -sL "https://github.com/${REPO}/releases/download/v${VERSION}/vestige-mcp-x86_64-unknown-linux-gnu.tar.gz" | tar -xz -C server
mv server/vestige-mcp server/vestige-mcp-linux-x64
mv server/vestige server/vestige-linux-x64
# Download Windows x64
echo "Downloading Windows x64 binary..."
curl -sL "https://github.com/${REPO}/releases/download/v${VERSION}/vestige-mcp-x86_64-pc-windows-msvc.zip" -o /tmp/win.zip
unzip -q /tmp/win.zip -d server
mv server/vestige-mcp.exe server/vestige-mcp-win32-x64.exe
mv server/vestige.exe server/vestige-win32-x64.exe
rm /tmp/win.zip
# Make executable
chmod +x server/*
echo "Binaries downloaded. Run 'mcpb pack' to create bundle."