Incident-Copilot-MCP / run_gateway.py
DIV-45's picture
Initial commit: Incident Copilot MCP
cf33275
raw
history blame contribute delete
487 Bytes
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)