Spaces:
Configuration error
Configuration error
File size: 487 Bytes
cf33275 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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)
|