Skip to main content
Glama

Discord Agent MCP

by aj-geddes
verify-before-push.sh•4.07 kB
#!/bin/bash # Verification script to run before pushing to public GitHub # This ensures no secrets or internal docs are being committed set -e echo "šŸ” Verifying repository before public push..." echo "" # Colors RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color ERRORS=0 # Check 1: Verify no real Discord tokens echo "1ļøāƒ£ Checking for Discord tokens..." # Look for Discord bot token patterns: MTQ/MTA/Nj followed by long base64 string if git grep -E "(MTQ|MTA|Nj)[a-zA-Z0-9_-]{20,}\." -- ':!node_modules' ':!*.md' ':!verify-before-push.sh' > /dev/null 2>&1; then echo -e "${RED}āŒ FAIL: Found potential Discord token in tracked files${NC}" git grep -E "(MTQ|MTA|Nj)[a-zA-Z0-9_-]{20,}\." -- ':!node_modules' ':!*.md' ':!verify-before-push.sh' ERRORS=$((ERRORS + 1)) else echo -e "${GREEN}āœ… PASS: No Discord tokens found${NC}" fi echo "" # Check 2: Verify .env is not tracked echo "2ļøāƒ£ Checking .env files..." if git ls-files | grep -E "^\.env$|^\.env\.local$|^\.env\.production$" > /dev/null; then echo -e "${RED}āŒ FAIL: Real .env file is tracked${NC}" ERRORS=$((ERRORS + 1)) else echo -e "${GREEN}āœ… PASS: No real .env files tracked${NC}" fi echo "" # Check 3: Verify k8s/secret.yaml is not tracked echo "3ļøāƒ£ Checking Kubernetes secrets..." if git ls-files | grep "k8s/secret.yaml$" > /dev/null; then echo -e "${RED}āŒ FAIL: Real k8s/secret.yaml is tracked${NC}" ERRORS=$((ERRORS + 1)) else echo -e "${GREEN}āœ… PASS: Real secret.yaml not tracked${NC}" fi echo "" # Check 4: Verify internal docs are not tracked echo "4ļøāƒ£ Checking internal documentation..." INTERNAL_DOCS=( "SERVER-CONFIGURATION.md" "TOOL-AUDIT.md" "PUBLIC-REPO-CONTENTS.md" "SECURITY-CLEANUP.md" "DEPLOYMENT-STATUS.md" "MCP-ENHANCEMENT-ROADMAP.md" "product-plan.md" ) for doc in "${INTERNAL_DOCS[@]}"; do if git ls-files | grep "$doc" > /dev/null; then echo -e "${RED}āŒ FAIL: Internal doc tracked: $doc${NC}" ERRORS=$((ERRORS + 1)) fi done if [ $ERRORS -eq 0 ]; then echo -e "${GREEN}āœ… PASS: No internal docs tracked${NC}" fi echo "" # Check 5: Verify server-specific content is not tracked echo "5ļøāƒ£ Checking server-specific content..." if git ls-files | grep -E "^content/|^updates/|^content-maintenance/" > /dev/null; then echo -e "${RED}āŒ FAIL: Server-specific content is tracked${NC}" ERRORS=$((ERRORS + 1)) else echo -e "${GREEN}āœ… PASS: No server-specific content tracked${NC}" fi echo "" # Check 6: Verify required public files are present echo "6ļøāƒ£ Checking required public files..." REQUIRED_FILES=( "README.md" "specifications.md" ".env.example" ".mcp.json.example" "k8s/secret.yaml.example" "Dockerfile" "package.json" ) for file in "${REQUIRED_FILES[@]}"; do if ! git ls-files | grep "$file" > /dev/null; then echo -e "${RED}āŒ FAIL: Required file missing: $file${NC}" ERRORS=$((ERRORS + 1)) fi done if [ $ERRORS -eq 0 ]; then echo -e "${GREEN}āœ… PASS: All required files present${NC}" fi echo "" # Summary echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" if [ $ERRORS -eq 0 ]; then echo -e "${GREEN}āœ… ALL CHECKS PASSED${NC}" echo "" echo "šŸ“Š Repository statistics:" echo " Total files: $(git ls-files | wc -l)" echo " TypeScript files: $(git ls-files | grep "\.ts$" | wc -l)" echo " Configuration files: $(git ls-files | grep -E "\.(json|yaml|yml)$" | wc -l)" echo " Documentation: $(git ls-files | grep "\.md$" | wc -l)" echo "" echo "šŸš€ Ready to push to public repository!" echo "" echo "Next steps:" echo " git remote add origin <your-github-repo-url>" echo " git branch -M main" echo " git push -u origin main" else echo -e "${RED}āŒ $ERRORS CHECK(S) FAILED${NC}" echo "" echo "Please fix the issues above before pushing to public repository." exit 1 fi

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/aj-geddes/discord-agent-mcp'

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