Skip to main content
Glama
setup-github.shโ€ข1.86 kB
#!/bin/bash # Quick setup script for pushing to GitHub echo "๐Ÿš€ MCP Test Server - GitHub Setup" echo "==================================" echo "" # Check if git is initialized if [ ! -d ".git" ]; then echo "๐Ÿ“ฆ Initializing git repository..." git init echo "โœ“ Git initialized" else echo "โœ“ Git repository already exists" fi # Check for remote if ! git remote get-url origin > /dev/null 2>&1; then echo "" echo "๐Ÿ“ Please enter your GitHub repository URL:" echo " (e.g., https://github.com/username/mcp-test.git)" read -p "Repository URL: " repo_url if [ -n "$repo_url" ]; then git remote add origin "$repo_url" echo "โœ“ Remote 'origin' added" else echo "โš ๏ธ No URL provided. You'll need to add remote manually:" echo " git remote add origin <your-repo-url>" fi else echo "โœ“ Remote 'origin' already configured: $(git remote get-url origin)" fi # Check for changes to commit if [ -n "$(git status --porcelain)" ]; then echo "" echo "๐Ÿ“ Staging all files..." git add . echo "โœ“ Files staged" echo "" echo "๐Ÿ’พ Committing changes..." git commit -m "Initial commit: MCP test server for scanner testing" echo "โœ“ Changes committed" else echo "โœ“ No changes to commit" fi # Check current branch current_branch=$(git branch --show-current) if [ "$current_branch" != "main" ]; then echo "" echo "๐Ÿ”€ Renaming branch to 'main'..." git branch -M main echo "โœ“ Branch renamed to main" fi echo "" echo "๐Ÿ“ค Ready to push? Run:" echo " git push -u origin main" echo "" echo "โฑ๏ธ After pushing, wait 5-10 minutes for GitHub to index your repository" echo "๐Ÿ” Then test with: https://apisec-inc.github.io/mcp-audit/" echo "" echo "๐Ÿ“– See SCANNER_GUIDE.md for detailed testing instructions"

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/Anika536/mcp-test'

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