From cfe83867c22f234e3e09b8e1f863c351c5bca2a3 Mon Sep 17 00:00:00 2001 From: goulustis Date: Mon, 13 Oct 2025 22:37:16 +0800 Subject: [PATCH] change config path --- scripts/ws_start_register_tools.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/ws_start_register_tools.py b/scripts/ws_start_register_tools.py index 11b5940..41c44f7 100644 --- a/scripts/ws_start_register_tools.py +++ b/scripts/ws_start_register_tools.py @@ -175,12 +175,14 @@ def signal_handler(sig, frame): def load_config(): """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 = "configs/mcp_config.json" + # path = "configs/mcp_config.json" + path = "configs/ws_mcp_config.json" if not os.path.exists(path): return {} try: 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: logger.warning(f"Failed to load config {path}: {e}") return {}