31 lines
481 B
Python
31 lines
481 B
Python
import json
|
|
import logging
|
|
import os
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
def load_gateway_config():
|
|
|
|
config_path = os.getenv(
|
|
"CONFIG_PATH",
|
|
"config/gateway.json"
|
|
)
|
|
|
|
try:
|
|
|
|
with open(
|
|
config_path,
|
|
"r"
|
|
) as f:
|
|
|
|
return json.load(f)
|
|
|
|
except Exception:
|
|
|
|
logger.exception(
|
|
f"Gateway Config konnte nicht geladen werden: {config_path}"
|
|
)
|
|
|
|
return {"mcpServers": {}}
|