Skip to main content
Glama

Worksona MCP Server

Official
by worksona
build-site.sh•2.39 kB
#!/bin/bash # Build script for Worksona Agents microsite echo "šŸš€ Building Worksona Agents Microsite..." echo "" # Step 1: Generate agent data echo "šŸ“Š Generating agent data..." node generate-site-data.js if [ $? -ne 0 ]; then echo "āŒ Failed to generate agent data" exit 1 fi echo "āœ… Agent data generated" echo "" # Step 2: Validate HTML files echo "šŸ” Validating site files..." if [ ! -f "site/index.html" ]; then echo "āŒ Missing index.html" exit 1 fi if [ ! -f "site/agents.html" ]; then echo "āŒ Missing agents.html" exit 1 fi if [ ! -f "site/documentation.html" ]; then echo "āŒ Missing documentation.html" exit 1 fi if [ ! -f "site/examples.html" ]; then echo "āŒ Missing examples.html" exit 1 fi echo "āœ… All HTML files present" echo "" # Step 3: Check CSS and JS files echo "šŸŽØ Checking assets..." if [ ! -f "site/css/styles.css" ]; then echo "āŒ Missing styles.css" exit 1 fi if [ ! -f "site/js/main.js" ]; then echo "āŒ Missing main.js" exit 1 fi if [ ! -f "site/js/agents.js" ]; then echo "āŒ Missing agents.js" exit 1 fi echo "āœ… All assets present" echo "" # Step 4: Check agent data echo "šŸ“ Verifying agent data..." if [ ! -f "site/data/agents.json" ]; then echo "āŒ Missing agents.json" exit 1 fi AGENT_COUNT=$(node -e "const data=require('./site/data/agents.json'); console.log(data.agents.length);") echo "āœ… Agent data verified: $AGENT_COUNT agents" echo "" # Step 5: Optional - Create a distribution build if [ "$1" == "--dist" ]; then echo "šŸ“¦ Creating distribution build..." # Create dist directory rm -rf dist-site mkdir -p dist-site # Copy all site files cp -r site/* dist-site/ # Create .nojekyll for GitHub Pages touch dist-site/.nojekyll # Create CNAME if provided if [ -n "$CNAME" ]; then echo "$CNAME" > dist-site/CNAME fi echo "āœ… Distribution build created in dist-site/" echo "" fi echo "šŸŽ‰ Microsite build complete!" echo "" echo "šŸ“ Site location: ./site/" echo "🌐 Open site/index.html in your browser to view" echo "" echo "Deployment options:" echo " • GitHub Pages: Push site/ directory to gh-pages branch" echo " • Netlify: Deploy site/ directory" echo " • Vercel: Deploy site/ directory" echo " • AWS S3: Sync site/ to S3 bucket" echo ""

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/worksona/-worksona-mcp-server'

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