Skip to main content
Glama

mcp-adr-analysis-server

by tosin2013
test-npm-package.shโ€ข1.63 kB
#!/bin/bash # Test script for npm package preparation echo "๐Ÿงช Testing NPM package preparation..." # Clean and build echo "1. Building project..." npm run build # Test package creation echo "2. Testing package creation..." npm pack --dry-run # Check package contents echo "3. Checking package contents..." if [ ! -f "dist/src/index.js" ]; then echo "โŒ Main entry point missing" exit 1 fi if [ ! -f "README.md" ]; then echo "โŒ README.md missing" exit 1 fi if [ ! -f "LICENSE" ]; then echo "โŒ LICENSE missing" exit 1 fi echo "4. Verifying package.json..." node -e " const pkg = require('./package.json'); if (!pkg.name) throw new Error('Missing name'); if (!pkg.version) throw new Error('Missing version'); if (!pkg.description) throw new Error('Missing description'); if (!pkg.main) throw new Error('Missing main'); if (!pkg.bin) throw new Error('Missing bin'); console.log('โœ… Package.json is valid'); " echo "5. Testing MCP server binary..." if [ -x "dist/src/index.js" ] || [ -f "dist/src/index.js" ]; then echo "โœ… MCP server binary exists and is accessible" else echo "โŒ MCP server binary not found or not executable" exit 1 fi echo "6. Testing package size..." PACKAGE_SIZE=$(npm pack --dry-run 2>/dev/null | grep "package size" | awk '{print $4}') if [ ! -z "$PACKAGE_SIZE" ]; then echo "โœ… Package size: $PACKAGE_SIZE" else echo "โš ๏ธ Could not determine package size" fi echo "๐ŸŽ‰ NPM package is ready for publishing!" echo "" echo "To publish:" echo " npm publish" echo "" echo "Or use the GitHub Actions workflow:" echo " git tag v1.0.1" echo " git push origin v1.0.1"

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