Skip to main content
Glama

mcp-adr-analysis-server

by tosin2013
setup-docusaurus.shโ€ข2.81 kB
#!/bin/bash # Docusaurus Setup Script # This script sets up Docusaurus for the MCP ADR Analysis Server documentation set -e echo "๐Ÿš€ Setting up Docusaurus for MCP ADR Analysis Server..." echo "" # Colors for output GREEN='\033[0;32m' BLUE='\033[0;34m' YELLOW='\033[1;33m' NC='\033[0m' # No Color # Check if we're in the docs directory if [ ! -f "docusaurus.config.js" ]; then echo "โŒ Error: docusaurus.config.js not found. Please run this script from the docs directory." exit 1 fi echo -e "${BLUE}Step 1: Cleaning old build artifacts...${NC}" rm -rf .vitepress/dist .vitepress/cache build .docusaurus node_modules package-lock.json echo -e "${GREEN}โœ… Cleanup complete${NC}" echo "" echo -e "${BLUE}Step 2: Installing Docusaurus dependencies...${NC}" npm install echo -e "${GREEN}โœ… Dependencies installed${NC}" echo "" echo -e "${BLUE}Step 3: Creating favicon from logo...${NC}" if [ -f "static/img/logo.png" ]; then # Note: This requires ImageMagick. If not available, user needs to create favicon manually if command -v convert &> /dev/null; then convert static/img/logo.png -resize 32x32 static/img/favicon.ico echo -e "${GREEN}โœ… Favicon created${NC}" else echo -e "${YELLOW}โš ๏ธ ImageMagick not found. Please create favicon.ico manually from logo.png${NC}" echo " You can use an online tool like https://favicon.io/favicon-converter/" fi else echo -e "${YELLOW}โš ๏ธ Logo not found at static/img/logo.png${NC}" fi echo "" echo -e "${BLUE}Step 4: Verifying Docusaurus configuration...${NC}" if npm run docusaurus -- --version &> /dev/null; then DOCUSAURUS_VERSION=$(npm run docusaurus -- --version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1) echo -e "${GREEN}โœ… Docusaurus ${DOCUSAURUS_VERSION} is ready${NC}" else echo -e "${YELLOW}โš ๏ธ Could not verify Docusaurus version${NC}" fi echo "" echo -e "${BLUE}Step 5: Testing local build...${NC}" if npm run build; then echo -e "${GREEN}โœ… Build successful!${NC}" echo "" echo -e "${GREEN}๐ŸŽ‰ Docusaurus setup complete!${NC}" echo "" echo -e "${BLUE}Next steps:${NC}" echo " 1. Start development server: ${GREEN}npm run start${NC}" echo " 2. View at: ${GREEN}http://localhost:3000/mcp-adr-analysis-server/${NC}" echo " 3. Build for production: ${GREEN}npm run build${NC}" echo " 4. Deploy: Push to main branch (GitHub Actions will deploy automatically)" echo "" echo -e "${BLUE}Optional:${NC}" echo " - Configure Algolia search (see docusaurus.config.js)" echo " - Customize theme colors (see src/css/custom.css)" echo " - Review migration guide: ${GREEN}DOCUSAURUS_MIGRATION.md${NC}" else echo -e "${YELLOW}โš ๏ธ Build failed. Please check the errors above.${NC}" exit 1 fi

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