# ✅ Setup Verification Guide

## 🔍 Quick Verification

### 1. Source API Check (CMS)

```bash
# Test source API
curl "https://cms.illumemedia.app/apiv_charity.php?get-charities=1&all=1"
```

**Expected:** JSON response with charity data

### 2. MCP Server Check

```bash
# Test MCP API
curl "https://mcp.illumemedia.app/api.php?action=test"
```

**Expected:**
```json
{
  "success": true,
  "message": "Charity API is working!",
  "timestamp": "2024-01-01 12:00:00"
}
```

### 3. Data Flow Check

```bash
# Test complete flow
curl "https://mcp.illumemedia.app/api.php?action=get_charities&page=1&perPage=5"
```

**Expected:** Data from CMS (processed and formatted)

### 4. MCP Protocol Check

```bash
# Test MCP endpoint
curl -X POST "https://mcp.illumemedia.app/mcp.php" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/list",
    "id": 1
  }'
```

**Expected:** List of available tools

## 📋 Configuration Verification

### config.php
```php
✅ API_BASE_URL = 'https://cms.illumemedia.app/apiv_charity.php'
✅ API_TIMEOUT = 30
```

### Files Check
```
✅ api.php - REST API endpoint
✅ mcp.php - MCP Protocol endpoint
✅ utils.php - Data fetching from CMS
✅ config.php - Source URL configured
✅ .htaccess - CORS, security
```

## 🔄 Complete Data Flow

```
1. User/ChatGPT Request
   ↓
2. mcp.illumemedia.app/api.php or mcp.php
   ↓
3. utils.php → fetchAllCharities()
   ↓
4. cms.illumemedia.app/apiv_charity.php
   ↓
5. Data Processing (filter, paginate)
   ↓
6. Return to User/ChatGPT
```

## ✅ All Set!

- ✅ Source: `cms.illumemedia.app` configured
- ✅ Processing: `mcp.illumemedia.app` ready
- ✅ Destination: ChatGPT/GPT ready
- ✅ Data flow: Complete

**Test karein aur verify karein! 🚀**

