Skip to main content
Glama

Personupplysning MCP Server

deploy-to-render.shβ€’6.67 kB
#!/bin/bash # Automated deployment to Render.com # Based on docs/DEPLOYMENT-GUIDE.md set -e echo "═══════════════════════════════════════════════════════════════" echo " πŸš€ Deployment to Render.com - Personupplysning MCP" echo "═══════════════════════════════════════════════════════════════" echo "" # Check if we're in the right directory if [ ! -f "render.yaml" ]; then echo "❌ Error: render.yaml not found" echo " Please run this script from the project root" exit 1 fi echo "βœ… Found render.yaml" echo "" # Check if git repo is clean if ! git diff-index --quiet HEAD -- 2>/dev/null; then echo "⚠️ Warning: You have uncommitted changes" echo "" read -p " Do you want to commit them now? (y/n) " -n 1 -r echo "" if [[ $REPLY =~ ^[Yy]$ ]]; then echo "" echo "πŸ“ Committing changes..." git add . git commit -m "feat: prepare for production deployment - Database optimizations applied - All tests passing (12/13) - 1.85M companies imported - Security score: 8.2/10 - MCP compliance: 95%+ πŸ€– Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>" echo "βœ… Changes committed" else echo "" echo "⚠️ Continuing with uncommitted changes..." fi fi echo "" # Check if main branch exists, otherwise use master if git show-ref --verify --quiet refs/heads/main; then BRANCH="main" elif git show-ref --verify --quiet refs/heads/master; then BRANCH="master" else echo "❌ Error: No main or master branch found" exit 1 fi echo "πŸ“‹ Pre-deployment checklist:" echo "" echo " βœ… 1. Database optimizations applied" echo " βœ… 2. 1,849,265 companies imported (98.2% success)" echo " βœ… 3. Build successful (npm run build)" echo " βœ… 4. Tests passing (12/13 smoke tests)" echo " βœ… 5. Environment variables ready" echo "" echo "═══════════════════════════════════════════════════════════════" echo "" echo "🎯 Deployment Options:" echo "" echo "1️⃣ Deploy via Render Dashboard (RECOMMENDED)" echo " - Most reliable method" echo " - Visual feedback" echo " - Easy to configure" echo "" echo "2️⃣ Deploy via GitHub + Render Auto-Deploy" echo " - Push to GitHub" echo " - Render auto-deploys" echo "" echo "3️⃣ Deploy via Render CLI" echo " - Command-line deployment" echo " - Requires Render CLI installed" echo "" echo "═══════════════════════════════════════════════════════════════" echo "" read -p "Which deployment method do you want to use? (1/2/3) " -n 1 -r echo "" echo "" case $REPLY in 1) echo "πŸ“‹ Option 1: Deploy via Render Dashboard" echo "" echo "Steps:" echo "1. Open Render Dashboard: https://dashboard.render.com" echo "2. Click 'New +' β†’ 'Web Service'" echo "3. Connect your Git repository" echo "4. Render will detect render.yaml automatically" echo "5. Add environment variables:" echo " - SUPABASE_URL" echo " - SUPABASE_SERVICE_ROLE_KEY" echo " - BOLAGSVERKET_CLIENT_ID" echo " - BOLAGSVERKET_CLIENT_SECRET" echo " - NODE_ENV=production" echo " - MCP_TRANSPORT=http" echo "6. Click 'Create Web Service'" echo "7. Wait 5-10 minutes for build" echo "" echo "Opening Render Dashboard..." open "https://dashboard.render.com" 2>/dev/null || echo "(Open manually: https://dashboard.render.com)" ;; 2) echo "πŸ“‹ Option 2: Deploy via GitHub + Auto-Deploy" echo "" # Check if GitHub remote exists if git remote get-url origin &>/dev/null; then REMOTE_URL=$(git remote get-url origin) echo "βœ… GitHub remote found: $REMOTE_URL" echo "" read -p "Push to GitHub now? (y/n) " -n 1 -r echo "" if [[ $REPLY =~ ^[Yy]$ ]]; then echo "πŸ“€ Pushing to GitHub ($BRANCH)..." git push origin "$BRANCH" echo "βœ… Pushed to GitHub" echo "" echo "Next steps:" echo "1. Open Render Dashboard: https://dashboard.render.com" echo "2. Connect your GitHub repository" echo "3. Render will auto-deploy on push" echo "" echo "Opening Render Dashboard..." open "https://dashboard.render.com" 2>/dev/null || echo "(Open manually: https://dashboard.render.com)" fi else echo "⚠️ No GitHub remote found" echo "" echo "Steps to set up GitHub:" echo "1. Create GitHub repository" echo "2. git remote add origin <repo-url>" echo "3. git push -u origin $BRANCH" echo "4. Connect repository in Render Dashboard" fi ;; 3) echo "πŸ“‹ Option 3: Deploy via Render CLI" echo "" # Check if Render CLI is installed if command -v render &> /dev/null; then echo "βœ… Render CLI found" echo "" read -p "Deploy now? (y/n) " -n 1 -r echo "" if [[ $REPLY =~ ^[Yy]$ ]]; then echo "πŸš€ Deploying to Render..." render deploy echo "βœ… Deployment initiated" fi else echo "⚠️ Render CLI not installed" echo "" echo "Install Render CLI:" echo " $ brew install render" echo "" echo "Or use Option 1 or 2 instead." fi ;; *) echo "❌ Invalid option. Exiting." exit 1 ;; esac echo "" echo "═══════════════════════════════════════════════════════════════" echo "πŸ“š Complete deployment guide: docs/DEPLOYMENT-GUIDE.md" echo "πŸ“Š Post-deployment: docs/OPERATIONS-RUNBOOK.md" echo "═══════════════════════════════════════════════════════════════" echo "" echo "🎯 Expected deployment URL:" echo " https://personupplysning-mcp.onrender.com/mcp" echo "" echo "⏱️ Estimated deployment time: 5-10 minutes" echo "πŸ’° Estimated cost: $32-50/month" echo "" echo "═══════════════════════════════════════════════════════════════"

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/isakskogstad/personupplysning-mcp'

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