Spaces:
Sleeping
Sleeping
File size: 1,202 Bytes
ee0128f |
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 |
#!/usr/bin/env python3
"""
Deployment setup script for MCP-88: MCP Server for data product building
This script handles the deployment configuration and setup.
"""
import os
import sys
from pathlib import Path
def setup_deployment():
"""Setup the deployment environment"""
print("🔧 Setting up MCP-88 deployment...")
# Check for required environment variables
required_vars = ["OPENAI_API_KEY"]
missing_vars = []
for var in required_vars:
if not os.getenv(var):
missing_vars.append(var)
if missing_vars:
print(f"❌ Missing required environment variables: {', '.join(missing_vars)}")
print("Please set these environment variables before deployment.")
return False
print("✅ Environment variables configured")
# Create necessary directories
directories = ["sessions", "logs"]
for directory in directories:
Path(directory).mkdir(exist_ok=True)
print(f"📁 Created directory: {directory}")
print("✅ Deployment setup completed successfully!")
return True
if __name__ == "__main__":
success = setup_deployment()
if not success:
sys.exit(1)
|