We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tosin2013/mcp-adr-analysis-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
#!/bin/bash
set -e
echo "π Running pre-commit checks..."
# Security check - scan for secrets and sensitive data
echo "π Running security checks..."
if command -v gitleaks &> /dev/null; then
echo " β’ Scanning for secrets with gitleaks..."
gitleaks detect --source . --verbose || {
echo "β Secret detection failed! Please review and fix any detected secrets."
echo "π‘ Use 'git secret' or replace with placeholders for test data."
exit 1
}
else
echo " β’ gitleaks not found, skipping secret scan (install with: brew install gitleaks)"
fi
# Check for private keys (excluding test patterns and detectors)
echo " β’ Checking for private keys..."
if grep -r "BEGIN PRIVATE KEY\|BEGIN RSA PRIVATE KEY\|BEGIN OPENSSH PRIVATE KEY" --include="*.ts" --include="*.js" --include="*.json" src/ tests/ 2>/dev/null | grep -v "pattern:" | grep -v "test.*key.*:" | grep -v "example.*key" | grep -v "placeholder" | grep -v "detector" | grep -v "\.test\." | grep -v "//.*BEGIN"; then
echo "β Real private keys detected! Remove them before committing."
echo "π‘ Test patterns and detectors are allowed."
exit 1
fi
# Run lint-staged for formatting
echo "π¨ Running code formatting..."
npx lint-staged
# Run typecheck
echo "π Running TypeScript check..."
npm run typecheck
# Build the project
echo "π¨ Building project..."
npm run build
# Run a quick smoke test to ensure basic functionality
echo "π§ͺ Running smoke test..."
NODE_ENV=test NODE_OPTIONS='--experimental-vm-modules' npx jest tests/smoke.test.ts --passWithNoTests
echo "β
Pre-commit checks completed!"