Skip to main content
Glama

mcp-adr-analysis-server

by tosin2013
README_SCRIPTS.mdโ€ข4.78 kB
# ๐Ÿ“œ Documentation Scripts Guide **Automated setup and management for your documentation website** --- ## ๐ŸŽฏ Available Scripts ### **๐Ÿš€ setup-website.sh** (Advanced Bash Script) **Full-featured script with error checking, colored output, and deployment guidance** ```bash ./setup-website.sh [command] ``` **Commands:** - `setup` - Install dependencies and check prerequisites - `dev` - Start development server with hot reload - `build` - Build static site for production - `preview` - Preview built site locally - `deploy` - Deployment guidance for GitHub Pages - `clean` - Clean build artifacts and cache - `help` - Show detailed help ### **๐Ÿ“ฆ npm Scripts** (Simple & Cross-Platform) **Quick npm-based commands for common tasks** ```bash npm run [command] ``` **Commands:** - `setup` - Quick dependency installation - `dev` - Start development server - `build` - Build for production - `deploy` - Build + deployment info - `clean` - Clean build artifacts --- ## ๐Ÿ”„ When to Use Which ### **Use npm Scripts When:** โœ… You want simple, cross-platform commands โœ… You're familiar with npm workflow โœ… You don't need detailed progress feedback โœ… You're on Windows or prefer npm ### **Use Bash Script When:** โœ… You want detailed progress information โœ… You need comprehensive error checking โœ… You want deployment guidance โœ… You prefer rich terminal output โœ… You're on macOS/Linux --- ## โšก Quick Reference ### **First Time Setup** ```bash # Option A: npm (simple) cd docs npm run setup # Option B: script (detailed) cd docs ./setup-website.sh setup ``` ### **Development** ```bash # Option A: npm npm run dev # Option B: script ./setup-website.sh dev ``` ### **Production Build** ```bash # Option A: npm npm run build # Option B: script ./setup-website.sh build ``` ### **Deployment** ```bash # Option A: npm (just builds) npm run deploy # Option B: script (guidance + git integration) ./setup-website.sh deploy ``` --- ## ๐ŸŽจ Script Features ### **setup-website.sh Features:** - ๐ŸŽจ **Colored output** with emojis for better UX - โœ… **Prerequisites checking** (Node.js version, location) - ๐Ÿ“Š **Build statistics** (file count, size) - ๐Ÿš€ **Git integration** for deployment - ๐Ÿงน **Interactive cleanup** with confirmations - โŒ **Error handling** with helpful messages ### **npm Scripts Features:** - โšก **Fast execution** with minimal overhead - ๐ŸŒ **Cross-platform** compatibility - ๐Ÿ“ **Simple output** with status emojis - ๐Ÿ”„ **Standard npm workflow** integration --- ## ๐Ÿ› ๏ธ Customization ### **Adding New Commands** **To npm scripts** (edit `package.json`): ```json "scripts": { "your-command": "echo '๐ŸŽฏ Your command' && your-actual-command" } ``` **To bash script** (edit `setup-website.sh`): ```bash # Add to the case statement "your-command") your_function ;; ``` ### **Modifying Existing Commands** - **npm scripts**: Edit the `scripts` section in `package.json` - **bash script**: Edit the corresponding function in `setup-website.sh` --- ## ๐Ÿ”ง Troubleshooting Scripts ### **Script Permission Issues** ```bash chmod +x setup-website.sh ``` ### **npm Scripts Not Working** ```bash # Verify package.json exists ls -la package.json # Reinstall if needed rm -rf node_modules package-lock.json npm install ``` ### **Script Path Issues** ```bash # Ensure you're in the docs directory pwd # Should end with /docs cd docs # If not ``` --- ## ๐Ÿ“Š Performance Comparison | Task | npm Scripts | Bash Script | Winner | |------|-------------|-------------|---------| | **Speed** | โšก Fast | ๐ŸŒ Slower (checks) | npm | | **Feedback** | ๐Ÿ“ Basic | ๐ŸŽจ Rich | Script | | **Error Handling** | โŒ Basic | โœ… Comprehensive | Script | | **Cross-Platform** | โœ… Yes | โš ๏ธ Unix only | npm | | **Deployment Help** | ๐Ÿ“ Basic | ๐Ÿš€ Guided | Script | --- ## ๐ŸŽฏ Recommended Workflow ### **For Developers:** ```bash # Daily development npm run dev # Building for production ./setup-website.sh build # Better feedback # Deploying ./setup-website.sh deploy # Guided process ``` ### **For CI/CD:** ```bash # Automated builds (use npm for consistency) npm run setup npm run build ``` ### **For New Contributors:** ```bash # First time (use script for guidance) ./setup-website.sh setup ./setup-website.sh help ``` --- ## ๐Ÿ“š Related Documentation - **[QUICK_START.md](QUICK_START.md)** - Fastest way to get started - **[WEBSITE_SETUP.md](WEBSITE_SETUP.md)** - Complete setup documentation - **[package.json](package.json)** - npm scripts configuration - **[setup-website.sh](setup-website.sh)** - Bash script source code --- **๐ŸŽ‰ Both approaches get you to the same amazing documentation website - choose the one that fits your workflow best!**

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