We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/heyjustinai/prompt-ops-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
publish.shโข1.57 kB
#!/bin/bash
# Publish script for prompt-ops-mcp
# This script helps ensure proper build and publish process
set -e
echo "๐ Starting publish process..."
# Check if we're in a git repository
if [ ! -d ".git" ]; then
echo "โ Not in a git repository"
exit 1
fi
# Check for uncommitted changes
if [ -n "$(git status --porcelain)" ]; then
echo "โ There are uncommitted changes. Please commit or stash them first."
exit 1
fi
# Clean and build
echo "๐งน Cleaning previous builds..."
rm -rf dist/
echo "๐๏ธ Building project..."
npm run build
# Run tests if they exist
if [ -f "package.json" ] && grep -q "\"test\"" package.json; then
echo "๐งช Running tests..."
npm test || {
echo "โ Tests failed. Please fix before publishing."
exit 1
}
fi
# Lint the code
echo "๐ Linting code..."
npm run lint || {
echo "โ Linting failed. Please fix linting errors before publishing."
exit 1
}
# Check if already published
PACKAGE_NAME=$(node -p "require('./package.json').name")
PACKAGE_VERSION=$(node -p "require('./package.json').version")
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" > /dev/null 2>&1; then
echo "โ Version $PACKAGE_VERSION already published. Please bump version first."
exit 1
fi
echo "๐ฆ Publishing $PACKAGE_NAME@$PACKAGE_VERSION..."
# Publish to NPM
npm publish
echo "โ Successfully published $PACKAGE_NAME@$PACKAGE_VERSION!"
echo "๐ Package is now available via: npm install -g $PACKAGE_NAME"
echo "๐ Documentation: https://github.com/heyjustinai/prompt-ops-mcp"