# 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-.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 }