Metadata-Version: 2.4
Name: altsportsleagues-internal-onboarding-mcp
Version: 1.0.0
Summary: Internal MCP server for AltSportsLeagues onboarding — team tooling for league onboarding, contracts, certification, and workflows
Project-URL: Homepage, https://github.com/asd-git-master/altsportsleagues-internal-onboarding-mcp
Project-URL: Repository, https://github.com/asd-git-master/altsportsleagues-internal-onboarding-mcp
License-Expression: MIT
License-File: LICENSE
Keywords: altsportsleagues,certification,internal,mcp,onboarding
Requires-Python: >=3.11
Requires-Dist: fastmcp>=2.0.0
Requires-Dist: httpx>=0.24.0
Description-Content-Type: text/markdown

# AltSportsLeagues Internal Onboarding MCP Server

Internal MCP server for the AltSportsLeagues onboarding platform — league intake, questionnaires, certification, evaluation cycles, email intelligence, contract generation, workflow orchestration, AI agents, and data layer sync.

## Quick Start

```bash
# Install
pip install altsportsleagues-internal-onboarding-mcp

# Run (stdio)
ALTSPORTSLEAGUES_INTERNAL_API_KEY=your_key altsportsleagues-internal-onboarding-mcp

# Run (HTTP/SSE)
ALTSPORTSLEAGUES_INTERNAL_API_KEY=your_key altsportsleagues-internal-onboarding-mcp --sse --port 8080
```

## Connect to Claude Desktop

```json
{
  "mcpServers": {
    "altsportsleagues-onboarding": {
      "command": "altsportsleagues-internal-onboarding-mcp",
      "env": {
        "ALTSPORTSLEAGUES_INTERNAL_API_KEY": "your_api_key"
      }
    }
  }
}
```

## Connect to Cursor

Create `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "altsportsleagues-onboarding": {
      "command": "altsportsleagues-internal-onboarding-mcp",
      "env": {
        "ALTSPORTSLEAGUES_INTERNAL_API_KEY": "your_api_key"
      }
    }
  }
}
```

## Connect to OpenClaw

```yaml
mcp:
  servers:
    altsportsleagues-onboarding:
      command: altsportsleagues-internal-onboarding-mcp
      env:
        ALTSPORTSLEAGUES_INTERNAL_API_KEY: your_api_key
```

## Installation via npm

```bash
npx altsportsleagues-internal-onboarding-mcp
```

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `ALTSPORTSLEAGUES_INTERNAL_API_KEY` | Yes | API key for authentication |
| `INTERNAL_API_BASE_URL` | No | Override API base URL (default: https://internal-api.altsportsleagues.ai) |

## Tools (40)

### Onboarding (4)
| Tool | Description |
|------|-------------|
| `start_onboarding` | Start onboarding workflow for a new league |
| `validate_data_source` | Validate a data source before onboarding |
| `get_workflow_status` | Get current status of an onboarding workflow |
| `check_onboarding_health` | Check onboarding service health |

### Questionnaire (4)
| Tool | Description |
|------|-------------|
| `submit_questionnaire` | Submit a completed league questionnaire |
| `validate_questionnaire` | Validate questionnaire data before submission |
| `get_questionnaire_submission` | Retrieve a questionnaire submission |
| `list_questionnaire_submissions` | List questionnaire submissions with filters |

### Certification (3)
| Tool | Description |
|------|-------------|
| `check_certification_status` | Check league certification readiness |
| `run_certification` | Execute certification process |
| `get_certification_results` | Retrieve certification results |

### Evaluation (8)
| Tool | Description |
|------|-------------|
| `start_evaluation_cycle` | Start a new evaluation cycle |
| `run_quick_evaluation` | Run a quick evaluation test |
| `get_evaluation_status` | Get current evaluation status |
| `stop_evaluation` | Stop current evaluation cycle |
| `list_evaluation_cycles` | List all evaluation cycles |
| `get_evaluation_cycle` | Get detailed cycle results |
| `list_evaluation_personas` | List available evaluation personas |
| `get_evaluation_stats` | Aggregate evaluation statistics |

### Email Intelligence (5)
| Tool | Description |
|------|-------------|
| `process_email` | Process email for intelligence extraction |
| `classify_email` | Classify email intent and priority |
| `compare_emails` | Compare two emails for similarity |
| `get_email_metrics` | Email intelligence metrics |
| `get_email_recommendation` | Get recommended action for a processed email |

### Contracts (3)
| Tool | Description |
|------|-------------|
| `generate_contract` | Generate a contract for a league partnership |
| `get_contract_status` | Get contract generation status |
| `get_contract_download_url` | Get download URL for a generated contract |

### Workflows (4)
| Tool | Description |
|------|-------------|
| `detect_workflow` | Detect appropriate workflow from context |
| `execute_workflow` | Execute a specific workflow |
| `get_workflow_info` | Get workflow execution info |
| `smart_execute_workflow` | AI-selected workflow execution |

### Agents (4)
| Tool | Description |
|------|-------------|
| `execute_agent` | Execute an AI agent with input data |
| `list_agents` | List available AI agents |
| `get_agent_details` | Get agent details and capabilities |
| `invoke_agent` | Invoke a specific agent with parameters |

### Data Layer (7)
| Tool | Description |
|------|-------------|
| `sync_google_drive_folder` | Sync a Google Drive folder for RAG |
| `list_drive_folder_files` | List files in a synced Drive folder |
| `embed_drive_folder` | Generate embeddings for Drive folder content |
| `get_drive_sync_status` | Get sync status for a Drive folder |
| `upsert_league_to_supabase` | Upsert league data to Supabase |
| `upsert_league_to_neo4j` | Upsert league data to Neo4j graph |
| `cross_sync_league` | Cross-sync league data across all systems |

## License

MIT

**Internal use only.**
