change config path
This commit is contained in:
@@ -175,12 +175,14 @@ def signal_handler(sig, frame):
|
|||||||
def load_config():
|
def load_config():
|
||||||
"""Load JSON config from $MCP_CONFIG or ./mcp_config.json. Return dict or {}."""
|
"""Load JSON config from $MCP_CONFIG or ./mcp_config.json. Return dict or {}."""
|
||||||
# path = os.environ.get("MCP_CONFIG") or os.path.join(os.getcwd(), "mcp_config.json")
|
# path = os.environ.get("MCP_CONFIG") or os.path.join(os.getcwd(), "mcp_config.json")
|
||||||
path = "configs/mcp_config.json"
|
# path = "configs/mcp_config.json"
|
||||||
|
path = "configs/ws_mcp_config.json"
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
return {}
|
return {}
|
||||||
try:
|
try:
|
||||||
with open(path, "r", encoding="utf-8") as f:
|
with open(path, "r", encoding="utf-8") as f:
|
||||||
return mcp_langchain_to_ws_config(json.load(f))
|
# return mcp_langchain_to_ws_config(json.load(f))
|
||||||
|
return json.load(f)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(f"Failed to load config {path}: {e}")
|
logger.warning(f"Failed to load config {path}: {e}")
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user