Skip to main content
Glama

BookStore MCP

fix-widgets.shβ€’1.29 kB
#!/bin/bash echo "πŸ”§ Fixing Widget Loading Issue..." echo "" # 1. Clean everything echo "1️⃣ Cleaning old builds..." rm -rf dist/ rm -rf node_modules/.cache echo " βœ… Cleaned" echo "" # 2. Rebuild UI echo "2️⃣ Building UI widgets..." npm run build:ui if [ $? -ne 0 ]; then echo " ❌ UI build failed!" exit 1 fi echo " βœ… UI built" echo "" # 3. Check widget files echo "3️⃣ Verifying widget files..." for widget in book-list book-detail cart order-history; do file="dist/ui/$widget/index.html" if [ -f "$file" ]; then size=$(wc -c < "$file") echo " βœ… $widget: $size bytes" if [ $size -lt 1000 ]; then echo " ⚠️ WARNING: File too small, might be incorrect" fi else echo " ❌ $widget: NOT FOUND" fi done echo "" # 4. Rebuild server echo "4️⃣ Building server..." npm run build:server if [ $? -ne 0 ]; then echo " ❌ Server build failed!" exit 1 fi echo " βœ… Server built" echo "" # 5. Check server file echo "5️⃣ Verifying server..." if [ -f "dist/server/index.js" ]; then echo " βœ… Server file exists" else echo " ❌ Server file NOT FOUND" exit 1 fi echo "" # 6. Start server with debug echo "6️⃣ Starting server..." echo " Watch for [Widget] logs..." echo "" npm start

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/truongducthuan/bookstore-mcp'

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