Skip to main content
Glama
cbunting99

MCP Code Analysis & Quality Server

by cbunting99
release.sh3.3 kB
#!/bin/bash # MCP Code Analysis Server Release Script # Version: 1.0.1 # Date: 2025-09-10 set -e echo "🚀 MCP Code Analysis Server Release Script" echo "==========================================" echo "Version: 1.0.1" echo "Date: $(date)" echo "" # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color # Function to print colored output print_status() { echo -e "${GREEN}✅ $1${NC}" } print_warning() { echo -e "${YELLOW}⚠️ $1${NC}" } print_error() { echo -e "${RED}❌ $1${NC}" } # Check if we're in the right directory if [ ! -f "package.json" ]; then print_error "package.json not found. Please run this script from the project root." exit 1 fi # Check Node.js version NODE_VERSION=$(node --version | cut -d'v' -f2 | cut -d'.' -f1) if [ "$NODE_VERSION" -lt 18 ]; then print_error "Node.js 18+ is required. Current version: $(node --version)" exit 1 fi print_status "Node.js version check passed" # Run tests echo "" echo "🧪 Running tests..." if npm test; then print_status "Tests passed" else print_warning "Tests failed, but continuing with release..." fi # Build the project echo "" echo "🔨 Building project..." if npm run build; then print_status "Build completed successfully" else print_error "Build failed" exit 1 fi # Run linting (warnings are okay) echo "" echo "🔍 Running lint check..." if npm run lint; then print_status "Lint check passed" else print_warning "Lint issues found, but continuing with release..." fi # Check if user is logged in to npm echo "" echo "🔐 Checking npm authentication..." if npm whoami > /dev/null 2>&1; then print_status "Authenticated as: $(npm whoami)" else print_error "Not authenticated with npm. Please run 'npm login' first." exit 1 fi # Ask for confirmation echo "" echo "📦 Ready to publish version 1.0.1" echo "" echo "This will publish the following packages:" echo " - mcp-code-analysis-server (main package)" echo " - @mcp-code-analysis/static-analysis-server" echo " - @mcp-code-analysis/dependency-analysis-server" echo " - @mcp-code-analysis/complexity-analyzer-server" echo " - @mcp-code-analysis/intelligent-prioritizer" echo " - @mcp-code-analysis/shared-* packages" echo "" read -p "Do you want to proceed with the release? (y/N): " -n 1 -r echo "" if [[ ! $REPLY =~ ^[Yy]$ ]]; then echo "Release cancelled." exit 0 fi # Publish packages echo "" echo "📤 Publishing packages..." # Publish main package echo "Publishing main package..." if npm publish; then print_status "Main package published successfully" else print_error "Failed to publish main package" exit 1 fi # Publish workspaces echo "Publishing workspace packages..." if npm run publish:workspaces; then print_status "All workspace packages published successfully" else print_error "Failed to publish workspace packages" exit 1 fi echo "" print_status "🎉 Release 1.0.1 completed successfully!" echo "" echo "Next steps:" echo "1. Create a Git tag: git tag v1.0.1 && git push origin v1.0.1" echo "2. Create a GitHub release with the changelog" echo "3. Update documentation if needed" echo "4. Announce the release" echo "" echo "Thank you for using MCP Code Analysis Server!"

Latest Blog Posts

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/cbunting99/mcp-code-analysis-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server