Skip to main content
Glama

mcp-adr-analysis-server

by tosin2013
pre-commitโ€ข1.63 kB
#!/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!"

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/tosin2013/mcp-adr-analysis-server'

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