We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tranhuucanh/mcp-shellkeeper'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
release.shβ’2.49 KiB
#!/bin/bash
# Release script for MCP ShellKeeper
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <version> [--force]"
echo "Example: $0 1.0.1"
echo ""
echo "Options:"
echo " --force Force re-tag if tag already exists (use with caution!)"
exit 1
fi
VERSION="$1"
FORCE_FLAG=""
if [ "$2" = "--force" ]; then
FORCE_FLAG="--force"
echo "β οΈ Force mode enabled - will overwrite existing tag if present"
fi
echo "π Releasing MCP ShellKeeper v$VERSION..."
echo ""
# Check if we're on a clean working tree
if [ -n "$(git status --porcelain)" ]; then
echo "β Working directory not clean. Please commit or stash changes first."
git status --short
exit 1
fi
# Update version in package.json
echo "π Updating package.json version to $VERSION..."
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
sed -i '' "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json
else
# Linux
sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" package.json
fi
# Verify version was updated
NEW_VERSION=$(node -p "require('./package.json').version")
if [ "$NEW_VERSION" != "$VERSION" ]; then
echo "β Failed to update version in package.json"
exit 1
fi
echo "β Version updated to $VERSION"
echo ""
# Show what changed
echo "π Changed files:"
git diff --name-only
echo ""
# Commit version changes
echo "πΎ Committing version update..."
git add package.json
git commit -m "chore: bump version to $VERSION" || echo "Nothing to commit"
# Create tag
echo "π·οΈ Creating tag v$VERSION..."
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
if [ -z "$FORCE_FLAG" ]; then
echo "β Tag v$VERSION already exists!"
echo " Use --force to overwrite (not recommended for published versions)"
exit 1
else
echo "β οΈ Deleting existing tag v$VERSION..."
git tag -d "v$VERSION"
fi
fi
git tag -a "v$VERSION" -m "Release v$VERSION"
# Push
echo "π€ Pushing to GitHub..."
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
git push origin "$CURRENT_BRANCH" $FORCE_FLAG
git push origin "v$VERSION" $FORCE_FLAG
echo ""
echo "β Release v$VERSION created successfully!"
echo ""
echo "π Next steps:"
echo "1. Monitor GitHub Actions: https://github.com/tranhuucanh/mcp-shellkeeper/actions"
echo "2. Check release: https://github.com/tranhuucanh/mcp-shellkeeper/releases/tag/v$VERSION"
echo "3. Check npm: https://www.npmjs.com/package/mcp-shellkeeper"
echo ""
echo "π Done! The GitHub Action will automatically publish to npm."