Skip to main content
Glama
cuongpo

Rootstock MCP Server

by cuongpo
safe-push.shβ€’2.36 kB
#!/bin/bash # Safe Git Push Script # This script performs security checks before pushing code set -e echo "πŸ”’ Running security checks before Git push..." # Check for private keys (more specific patterns) echo "πŸ” Checking for private keys..." # Check for private key patterns in environment files and configs if grep -r "PRIVATE_KEY.*=.*0x[a-fA-F0-9]\{64\}" . --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=build --exclude-dir=artifacts --exclude="SECURITY.md" --exclude=".env.example" --quiet; then echo "❌ SECURITY KEY ALERT: Private key environment variables found!" echo "Please remove all private keys before pushing." exit 1 fi # Check for private key assignments in code if grep -r "privateKey.*['\"]0x[a-fA-F0-9]\{64\}['\"]" . --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=build --exclude-dir=artifacts --exclude="SECURITY.md" --exclude=".env.example" --quiet; then echo "❌ SECURITY ALERT: Private key assignments found in code!" echo "Please remove all private keys before pushing." exit 1 fi # Check for test private key (excluding this script and security docs) echo "πŸ” Checking for test private key..." if grep -r "3cf90f4acdaee72ab90c0da7eda158ec1e908a5698aaf11a99070bba5da18b17" . --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=build --exclude-dir=artifacts --exclude-dir=scripts --exclude="SECURITY.md" --quiet; then echo "❌ SECURITY ALERT: Test private key found in code!" echo "Please remove the test private key before pushing." exit 1 fi # Check for .env files echo "πŸ” Checking for .env files..." if find . -name ".env" -not -path "./node_modules/*" -not -path "./.git/*" | grep -q .; then echo "❌ SECURITY ALERT: .env files found!" echo "Please ensure .env files are not tracked by Git." exit 1 fi # Check Git status echo "πŸ“‹ Checking Git status..." git status echo "" echo "βœ… Security checks passed!" echo "πŸš€ Ready to push code safely." echo "" echo "Run the following commands to push:" echo " git add ." echo " git commit -m 'Add ERC20 token deployment tools with Smithery support'" echo " git push origin main" echo "" echo "πŸ”’ Security reminders:" echo " - No private keys in code βœ…" echo " - No .env files tracked βœ…" echo " - Test files excluded βœ…" echo " - Only placeholder values in examples βœ…"

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/cuongpo/rootstock-mcp'

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