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.18 KiB
#!/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!"