#!/bin/bash
# Monitor Modal GPU usage in real-time
echo "π Checking Modal GPU usage for warpgbm-mcp..."
echo ""
# Check if modal CLI is available
if ! command -v modal &> /dev/null; then
echo "β Modal CLI not found. Install with: pip install modal"
exit 1
fi
# Get app stats
echo "π App Stats:"
modal app list | grep warpgbm-mcp || echo " No active deployments found"
echo ""
# Show recent GPU function invocations
echo "π Recent GPU Function Calls (train_warpgbm_gpu):"
modal function logs warpgbm-mcp::train_warpgbm_gpu --tail 20 2>/dev/null || echo " No GPU function calls yet"
echo ""
# Show active containers
echo "π³ Active Containers:"
modal container list --app warpgbm-mcp 2>/dev/null || echo " No active containers"
echo ""
echo "π‘ Tips:"
echo " - GPU containers shut down after 60 seconds idle"
echo " - CPU containers shut down after 5 minutes idle"
echo " - Check billing: https://modal.com/tdelise/settings/billing"
echo ""
echo "π Run this script periodically to monitor usage"
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/jefferythewind/warpgbm-mcp-service'
If you have feedback or need assistance with the MCP directory API, please join our Discord server