Spaces:
Running
Running
File size: 1,305 Bytes
1c93f85 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# Modal Configuration for HERMES MCP Server
# https://modal.com/docs
"""
To deploy the MCP server to Modal:
1. Install Modal:
pip install modal
2. Set up Modal token:
modal token new
3. Deploy the server:
modal deploy mcp_server.py
4. Test locally:
modal run mcp_server.py
The server will be available at:
https://your-workspace--hermes-astrology-mcp-<function>.modal.run
"""
# Environment Variables for Modal
# Set these in Modal dashboard or via CLI:
# modal secret create hermes-secrets \
# OPENAI_API_KEY=sk-... \
# ANTHROPIC_API_KEY=sk-ant-... \
# ELEVENLABS_API_KEY=...
# Compute Configuration
# Modal provides generous free tier:
# - 30 free credits per month
# - CPU: 0.1 credits per hour
# - GPU: Varies by type
# For HERMES, we primarily need CPU for calculations
# GPU optional for future ML features (chart pattern recognition)
# Recommended Modal configuration:
MODAL_CONFIG = {
"cpu": 1.0, # vCPUs
"memory": 1024, # MB - adequate for ephemeris calculations
"timeout": 300, # seconds - 5 minutes for complex ZR calculations
"retries": 2, # Auto-retry on failure
}
# For production with high volume:
MODAL_PRODUCTION_CONFIG = {
"cpu": 2.0,
"memory": 2048,
"timeout": 600,
"concurrency_limit": 100, # Handle multiple requests
}
|