Skip to main content
Glama
build.sh799 B
#!/bin/bash # Build live-view static files if needed SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_DIR="$(dirname "$SCRIPT_DIR")" cd "$PROJECT_DIR" # Check if rebuild is needed NEED_BUILD=$("$SCRIPT_DIR/check-rebuild.sh") if [ "$NEED_BUILD" = "1" ]; then echo "🔨 Building live-view static files (source files changed)..." # Install dependencies if needed if [ ! -d "node_modules" ]; then echo "Installing dependencies..." npm install fi # Build static files npm run build:static if [ $? -eq 0 ]; then echo "✅ Live-view static files built successfully" else echo "❌ Failed to build live-view static files" exit 1 fi else echo "✓ Live-view static files are up to date" fi

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/babelcloud/gru-sandbox'

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