Skip to main content
Glama
gedin-eth

College Football MCP

by gedin-eth
test_betting.sh6.32 kB
#!/bin/bash # Sports Betting Test Script for CFB MCP # Tests the system's ability to answer betting questions about current/ongoing games API_URL="https://prompt80.com/cfb-mcp/api/chat" TOKEN="cfb-mcp-secure-token-2025" echo "==========================================" echo "CFB MCP Sports Betting Tests" echo "Testing betting questions on current/ongoing games" echo "==========================================" echo "" # Test 1: Betting odds for ongoing game echo "TEST 1: Betting Odds for Ongoing Game" echo "Prompt: 'What are the betting odds for Tulane vs Ole Miss? Show spread, moneyline, and over/under'" echo "Expected: Should return spread, moneyline odds, and over/under totals" echo "---" RESPONSE=$(curl -s -X POST "$API_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -d '{"message": "What are the betting odds for Tulane vs Ole Miss? Show spread, moneyline, and over/under"}') REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', ''))" 2>/dev/null) echo "$REPLY" | head -c 800 echo "" echo "" if echo "$REPLY" | grep -qiE "spread|moneyline|over.*under|odds|-|\\+"; then echo "✅ PASS - Contains betting odds (spread/moneyline/over-under)" else echo "❌ FAIL - Missing betting odds information" fi echo "" echo "==========================================" echo "" # Test 2: Live score with betting context echo "TEST 2: Live Score with Betting Context" echo "Prompt: 'What is the current score of Tulane vs Ole Miss and are they covering the spread?'" echo "Expected: Should return current score and compare to spread" echo "---" RESPONSE=$(curl -s -X POST "$API_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -d '{"message": "What is the current score of Tulane vs Ole Miss and are they covering the spread?"}') REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', ''))" 2>/dev/null) echo "$REPLY" | head -c 800 echo "" echo "" if echo "$REPLY" | grep -qiE "score|spread|covering|ahead|behind|Tulane|Ole Miss"; then echo "✅ PASS - Contains score and spread analysis" else echo "❌ FAIL - Missing score or spread information" fi echo "" echo "==========================================" echo "" # Test 3: Best bet recommendation echo "TEST 3: Betting Value Question" echo "Prompt: 'Is the over or under a better bet for Tulane vs Ole Miss right now?'" echo "Expected: Should provide analysis of over/under bet" echo "---" RESPONSE=$(curl -s -X POST "$API_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -d '{"message": "Is the over or under a better bet for Tulane vs Ole Miss right now?"}') REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', ''))" 2>/dev/null) echo "$REPLY" | head -c 800 echo "" echo "" if echo "$REPLY" | grep -qiE "over|under|total|points|bet"; then echo "✅ PASS - Contains over/under analysis" else echo "❌ FAIL - Missing over/under discussion" fi echo "" echo "==========================================" echo "" # Test 4: Moneyline favorite echo "TEST 4: Moneyline Favorite" echo "Prompt: 'Who is the moneyline favorite for Tulane vs Ole Miss and what are their odds?'" echo "Expected: Should identify favorite and provide moneyline odds" echo "---" RESPONSE=$(curl -s -X POST "$API_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -d '{"message": "Who is the moneyline favorite for Tulane vs Ole Miss and what are their odds?"}') REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', ''))" 2>/dev/null) echo "$REPLY" | head -c 800 echo "" echo "" if echo "$REPLY" | grep -qiE "favorite|moneyline|odds|Tulane|Ole Miss"; then echo "✅ PASS - Identifies favorite and moneyline odds" else echo "❌ FAIL - Missing favorite or moneyline info" fi echo "" echo "==========================================" echo "" # Test 5: Live game status for betting echo "TEST 5: Game Status for Live Betting" echo "Prompt: 'Is the Tulane vs Ole Miss game still live for betting? What is the current score and quarter?'" echo "Expected: Should return game status, current score, and game progress" echo "---" RESPONSE=$(curl -s -X POST "$API_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -d '{"message": "Is the Tulane vs Ole Miss game still live for betting? What is the current score and quarter?"}') REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', ''))" 2>/dev/null) echo "$REPLY" | head -c 800 echo "" echo "" if echo "$REPLY" | grep -qiE "live|score|quarter|in progress|status"; then echo "✅ PASS - Contains game status and progress info" else echo "❌ FAIL - Missing game status information" fi echo "" echo "==========================================" echo "" # Test 6: Spread coverage analysis echo "TEST 6: Spread Coverage Analysis" echo "Prompt: 'If Ole Miss was favored by 24.5 points, are they covering the spread right now in the Tulane game?'" echo "Expected: Should calculate current score difference vs spread" echo "---" RESPONSE=$(curl -s -X POST "$API_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $TOKEN" \ -d '{"message": "If Ole Miss was favored by 24.5 points, are they covering the spread right now in the Tulane game?"}') REPLY=$(echo "$RESPONSE" | python3 -c "import sys, json; print(json.load(sys.stdin).get('reply', ''))" 2>/dev/null) echo "$REPLY" | head -c 800 echo "" echo "" if echo "$REPLY" | grep -qiE "covering|spread|24\.5|ahead|behind|points"; then echo "✅ PASS - Contains spread coverage analysis" else echo "❌ FAIL - Missing spread analysis" fi echo "" echo "==========================================" echo "" echo "All betting tests completed!" echo "" echo "Summary: These tests verify the system can:" echo " 1. Retrieve betting odds (spread, moneyline, over/under)" echo " 2. Provide live scores with betting context" echo " 3. Analyze betting value (over/under recommendations)" echo " 4. Identify favorites and moneyline odds" echo " 5. Report game status for live betting" echo " 6. Calculate spread coverage in real-time"

Latest Blog Posts

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/gedin-eth/cfb-mcp'

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