Spaces:
Configuration error
Configuration error
| import os | |
| from dotenv import load_dotenv | |
| import uvicorn | |
| from mcp_servers.gateway import app | |
| if __name__ == "__main__": | |
| # Load local env and .env.blaxel so all MCP servers see the same secrets | |
| load_dotenv() | |
| load_dotenv(".env.blaxel", override=False) | |
| host = os.getenv("MCP_GATEWAY_HOST", "127.0.0.1") | |
| # Default to 8004 locally to avoid conflicts with other services | |
| port = int(os.getenv("MCP_GATEWAY_PORT", "8004")) | |
| uvicorn.run(app, host=host, port=port) | |