#!/bin/bash
# Test script for CFB MCP - 5 verification prompts
API_URL="https://prompt80.com/cfb-mcp/api/chat"
TOKEN="cfb-mcp-secure-token-2025"
echo "=========================================="
echo "CFB MCP System Verification Tests"
echo "=========================================="
echo ""
# Test 1: Team name variation (Alabama Crimson Tide)
echo "TEST 1: Team Name Variation"
echo "Prompt: 'What are Alabama Crimson Tide recent results?'"
echo "Expected: Should return 2025 game results for Alabama"
echo "---"
RESPONSE=$(curl -s -X POST "$API_URL" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"message": "What are Alabama Crimson Tide recent results?"}')
REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', '')[:600])" 2>/dev/null)
echo "$REPLY"
echo ""
if echo "$REPLY" | grep -qi "Alabama\|game\|result"; then
echo "✅ PASS - Contains Alabama game results"
else
echo "❌ FAIL - Missing expected content"
fi
echo ""
echo "=========================================="
echo ""
# Test 2: Specific game query (Oklahoma game)
echo "TEST 2: Specific Game Query"
echo "Prompt: 'What was the score of Alabamas game against Oklahoma in December 2025?'"
echo "Expected: Should mention 34-24 or Alabama won 34-24"
echo "---"
RESPONSE=$(curl -s -X POST "$API_URL" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"message": "What was the score of Alabamas game against Oklahoma in December 2025?"}')
REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', '')[:600])" 2>/dev/null)
echo "$REPLY"
echo ""
if echo "$REPLY" | grep -qiE "34.*24|24.*34|Oklahoma.*34|Alabama.*34"; then
echo "✅ PASS - Contains correct score (34-24)"
else
echo "❌ FAIL - Score not found or incorrect"
fi
echo ""
echo "=========================================="
echo ""
# Test 3: Simple team name
echo "TEST 3: Simple Team Name"
echo "Prompt: 'Show me Georgia recent games'"
echo "Expected: Should return 2025 Georgia game results"
echo "---"
RESPONSE=$(curl -s -X POST "$API_URL" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"message": "Show me Georgia recent games"}')
REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', '')[:600])" 2>/dev/null)
echo "$REPLY"
echo ""
if echo "$REPLY" | grep -qi "Georgia\|game\|result"; then
echo "✅ PASS - Contains Georgia game results"
else
echo "❌ FAIL - Missing expected content"
fi
echo ""
echo "=========================================="
echo ""
# Test 4: Team info query
echo "TEST 4: Team Information"
echo "Prompt: 'What is Alabamas team info?'"
echo "Expected: Should return season record, rankings, conference info"
echo "---"
RESPONSE=$(curl -s -X POST "$API_URL" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"message": "What is Alabamas team info?"}')
REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', '')[:600])" 2>/dev/null)
echo "$REPLY"
echo ""
if echo "$REPLY" | grep -qiE "record|ranking|conference|Alabama"; then
echo "✅ PASS - Contains team information"
else
echo "❌ FAIL - Missing expected team info"
fi
echo ""
echo "=========================================="
echo ""
# Test 5: Next game query
echo "TEST 5: Next Game Query"
echo "Prompt: 'What is Alabamas next game?'"
echo "Expected: Should return upcoming game schedule and odds"
echo "---"
RESPONSE=$(curl -s -X POST "$API_URL" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"message": "What is Alabamas next game?"}')
REPLY=$(echo "$REPLY" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', '')[:600])" 2>/dev/null)
echo "$REPLY"
echo ""
if echo "$REPLY" | grep -qiE "next|upcoming|game|schedule|Alabama"; then
echo "✅ PASS - Contains next game information"
else
echo "❌ FAIL - Missing next game info"
fi
echo ""
echo "=========================================="
echo ""
echo "Test Summary Complete"