We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sumitvairagar/mcp-server-starter'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
setup-github.sh•2.23 kB
#!/bin/bash
# GitHub setup script for MCP server
echo "🚀 GitHub Repository Setup Script"
echo "=================================="
echo ""
echo "This script will help you connect your local repository to GitHub."
echo ""
# Check if we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
echo "❌ Error: Not in a git repository"
exit 1
fi
echo "📋 Current repository status:"
git log --oneline -1
echo ""
echo "🔗 To connect to your GitHub repository, you have two options:"
echo ""
echo "Option 1: Using GitHub CLI (gh) - Recommended"
echo "============================================="
echo "If you have GitHub CLI installed:"
echo " gh repo create your-repo-name --public --source=. --remote=origin --push"
echo ""
echo "Option 2: Manual setup"
echo "======================"
echo "1. Create a new repository on GitHub (https://github.com/new)"
echo "2. Copy the repository URL (e.g., https://github.com/username/repo-name.git)"
echo "3. Run these commands:"
echo ""
read -p "Enter your GitHub repository URL (or press Enter to skip): " REPO_URL
if [[ -n "$REPO_URL" ]]; then
echo ""
echo "🔗 Adding GitHub remote..."
git remote add origin "$REPO_URL"
echo "📤 Pushing to GitHub..."
git push -u origin main
if [ $? -eq 0 ]; then
echo "✅ Successfully pushed to GitHub!"
echo "🌐 Your repository is now available at: $REPO_URL"
else
echo "❌ Push failed. Please check your repository URL and permissions."
echo "💡 You might need to authenticate with GitHub first."
fi
else
echo "⏭️ Skipped GitHub setup. Manual commands:"
echo " git remote add origin YOUR_REPO_URL"
echo " git push -u origin main"
fi
echo ""
echo "📚 Next steps:"
echo "1. Visit your GitHub repository"
echo "2. Add a description and topics"
echo "3. Consider adding GitHub Actions for CI/CD"
echo "4. Set up branch protection rules if needed"
echo ""
echo "🔐 Security reminder:"
echo "✅ API keys (.env) are excluded from the repository"
echo "✅ Dependencies (node_modules) are excluded"
echo "✅ Compiled output (dist) is excluded"
echo ""
echo "✨ Your MCP server is ready for collaboration!"