Skip to main content
Glama
setup-github.ps1โ€ข2.74 kB
# Quick setup script for pushing to GitHub (PowerShell) Write-Host "๐Ÿš€ MCP Test Server - GitHub Setup" -ForegroundColor Cyan Write-Host "==================================" -ForegroundColor Cyan Write-Host "" # Check if git is initialized if (-not (Test-Path ".git")) { Write-Host "๐Ÿ“ฆ Initializing git repository..." -ForegroundColor Yellow git init Write-Host "โœ“ Git initialized" -ForegroundColor Green } else { Write-Host "โœ“ Git repository already exists" -ForegroundColor Green } # Check for remote $remoteExists = $false try { git remote get-url origin 2>$null $remoteExists = $LASTEXITCODE -eq 0 } catch { $remoteExists = $false } if (-not $remoteExists) { Write-Host "" Write-Host "๐Ÿ“ Please enter your GitHub repository URL:" -ForegroundColor Yellow Write-Host " (e.g., https://github.com/username/mcp-test.git)" -ForegroundColor Gray $repoUrl = Read-Host "Repository URL" if ($repoUrl) { git remote add origin $repoUrl Write-Host "โœ“ Remote 'origin' added" -ForegroundColor Green } else { Write-Host "โš ๏ธ No URL provided. You'll need to add remote manually:" -ForegroundColor Yellow Write-Host " git remote add origin <your-repo-url>" -ForegroundColor Gray } } else { $originUrl = git remote get-url origin Write-Host "โœ“ Remote 'origin' already configured: $originUrl" -ForegroundColor Green } # Check for changes to commit $hasChanges = (git status --porcelain) -ne $null if ($hasChanges) { Write-Host "" Write-Host "๐Ÿ“ Staging all files..." -ForegroundColor Yellow git add . Write-Host "โœ“ Files staged" -ForegroundColor Green Write-Host "" Write-Host "๐Ÿ’พ Committing changes..." -ForegroundColor Yellow git commit -m "Initial commit: MCP test server for scanner testing" Write-Host "โœ“ Changes committed" -ForegroundColor Green } else { Write-Host "โœ“ No changes to commit" -ForegroundColor Green } # Check current branch $currentBranch = git branch --show-current if ($currentBranch -ne "main") { Write-Host "" Write-Host "๐Ÿ”€ Renaming branch to 'main'..." -ForegroundColor Yellow git branch -M main Write-Host "โœ“ Branch renamed to main" -ForegroundColor Green } Write-Host "" Write-Host "๐Ÿ“ค Ready to push? Run:" -ForegroundColor Cyan Write-Host " git push -u origin main" -ForegroundColor White Write-Host "" Write-Host "โฑ๏ธ After pushing, wait 5-10 minutes for GitHub to index your repository" -ForegroundColor Yellow Write-Host "๐Ÿ” Then test with: https://apisec-inc.github.io/mcp-audit/" -ForegroundColor Cyan Write-Host "" Write-Host "๐Ÿ“– See SCANNER_GUIDE.md for detailed testing instructions" -ForegroundColor Gray

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