Skip to main content
Glama
switch-config.shโ€ข1.72 kB
#!/bin/bash # Quick switch script for testing different server configurations show_help() { echo "Usage: $0 [minimal|full]" echo "" echo "Switch between server configurations:" echo " minimal - Ultra-minimal server (1 tool) for Smithery testing" echo " full - Full server (25+ tools) with lazy loading" echo "" echo "Current configuration:" grep '"module":' package.json } set_minimal() { echo "๐Ÿ”„ Switching to minimal configuration..." sed -i '' 's/"module": "src\/index.ts"/"module": "src\/minimal-index.ts"/' package.json echo "โœ… Switched to minimal server (1 tool)" echo "๐Ÿ“‹ Tools available: homeassistant_ping" } set_full() { echo "๐Ÿ”„ Switching to full configuration..." sed -i '' 's/"module": "src\/minimal-index.ts"/"module": "src\/index.ts"/' package.json echo "โœ… Switched to full server (25+ tools with lazy loading)" echo "๐Ÿ“‹ Tool categories: Basic, Automation, History, Devices, System, Resources" } build_and_show() { echo "" echo "๐Ÿ”จ Building project..." npm run build if [ $? -eq 0 ]; then echo "โœ… Build successful!" echo "" echo "๐Ÿ“ Current configuration:" grep '"module":' package.json echo "" echo "๐Ÿš€ Ready for deployment to Smithery" else echo "โŒ Build failed!" exit 1 fi } case "$1" in "minimal") set_minimal build_and_show ;; "full") set_full build_and_show ;; "help"|"-h"|"--help") show_help ;; "") show_help ;; *) echo "โŒ Unknown option: $1" show_help exit 1 ;; esac

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/gilberth/enhanced-homeassistant-mcp'

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