#!/bin/bash
# Release script for MCP Utility Tools
set -e
echo "π Preparing release for MCP Utility Tools..."
# Check if on main branch
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ "$BRANCH" != "main" ]; then
echo "β You must be on the main branch to release. Current branch: $BRANCH"
exit 1
fi
# Check for uncommitted changes
if ! git diff-index --quiet HEAD --; then
echo "β You have uncommitted changes. Please commit or stash them first."
exit 1
fi
# Run tests
echo "π§ͺ Running tests..."
npm test
# Build
echo "π¨ Building project..."
npm run build
# Get current version
CURRENT_VERSION=$(node -p "require('./package.json').version")
echo "π¦ Current version: $CURRENT_VERSION"
# Prompt for new version
echo "Enter new version (or press enter to keep current):"
read NEW_VERSION
if [ -z "$NEW_VERSION" ]; then
NEW_VERSION=$CURRENT_VERSION
fi
# Update version
npm version $NEW_VERSION --no-git-tag-version
# Update CHANGELOG
echo "π Don't forget to update CHANGELOG.md with release notes!"
echo "Press enter when ready to continue..."
read
# Git operations
git add -A
git commit -m "chore: release v$NEW_VERSION"
git tag -a "v$NEW_VERSION" -m "Release v$NEW_VERSION"
echo "β Release prepared!"
echo ""
echo "Next steps:"
echo "1. Push to GitHub: git push origin main --tags"
echo "2. Create GitHub release from tag v$NEW_VERSION"
echo "3. Publish to npm: npm publish"
echo ""
echo "To publish to npm:"
echo " npm login (if needed)"
echo " npm publish"
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/haasonsaas/mcp-utility-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server