Skip to main content
Glama

mcp-adr-analysis-server

by tosin2013
pre-commit-checklist.shโ€ข2.46 kB
#!/bin/bash # Pre-commit checklist for MCP ADR Analysis Server echo "๐Ÿ” Pre-commit checklist for MCP ADR Analysis Server" echo "==================================================" # Check 1: Build echo "1. Testing build..." if npm run build; then echo " โœ… Build successful" else echo " โŒ Build failed" exit 1 fi # Check 2: Tests echo "2. Running tests..." if npm test; then echo " โœ… All tests passing" else echo " โŒ Tests failed" exit 1 fi # Check 3: Linting echo "3. Running linter..." if npm run lint; then echo " โœ… Linting passed" else echo " โŒ Linting failed" exit 1 fi # Check 4: Package validation echo "4. Validating package..." if npm run test:package; then echo " โœ… Package validation passed" else echo " โŒ Package validation failed" exit 1 fi # Check 5: Git status echo "5. Checking git status..." if [ -n "$(git status --porcelain)" ]; then echo " โš ๏ธ Uncommitted changes detected:" git status --short else echo " โœ… Working directory clean" fi # Check 6: Required files echo "6. Checking required files..." required_files=( "README.md" "package.json" "LICENSE" ".github/workflows/lint.yml" ".github/workflows/test.yml" ".github/workflows/build.yml" ".github/workflows/publish.yml" ".github/workflows/dependencies.yml" ".npmignore" "src/index.ts" "dist/src/index.js" ) for file in "${required_files[@]}"; do if [ -f "$file" ]; then echo " โœ… $file exists" else echo " โŒ $file missing" fi done # Check 7: Package.json validation echo "7. Validating package.json..." node -e " const pkg = require('./package.json'); const required = ['name', 'version', 'description', 'main', 'bin', 'author', 'license', 'repository']; const missing = required.filter(field => !pkg[field]); if (missing.length > 0) { console.log(' โŒ Missing package.json fields:', missing.join(', ')); process.exit(1); } else { console.log(' โœ… Package.json is valid'); } " echo "" echo "๐ŸŽฏ Pre-commit checklist complete!" echo "" echo "๐Ÿ“‹ Next steps:" echo "1. Set up NPM token in GitHub repository secrets" echo "2. Configure GitHub Actions permissions" echo "3. Commit and push to trigger workflows" echo "" echo "๐Ÿ”— Repository: https://github.com/tosin2013/mcp-adr-analysis-server" echo "๐Ÿ”‘ NPM Token: https://www.npmjs.com/settings/tokens" echo "โš™๏ธ GitHub Settings: https://github.com/tosin2013/mcp-adr-analysis-server/settings"

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