From c4c3aa0c981cf6edeb5d17a9fe94d4d75ea46fdd Mon Sep 17 00:00:00 2001 From: CFC4N Date: Wed, 23 Apr 2025 00:10:53 +0800 Subject: [PATCH] feat: update command arguments and add new client configurations for Trae and Trae CN Signed-off-by: CFC4N --- client/client.go | 2 +- client/client_config.go | 2 ++ client/client_config_windows.go | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 5e6576c..35cc48e 100644 --- a/client/client.go +++ b/client/client.go @@ -51,7 +51,7 @@ func NewMCPServerConfig(description string, command string, srvName string) MCPS Description: description, IsActive: true, Command: command, - Args: []string{}, // not used + Args: []string{"-m", "all"}, BaseUrl: "", ServerName: srvName, TimeOut: 300, diff --git a/client/client_config.go b/client/client_config.go index 4e5f673..acb6008 100644 --- a/client/client_config.go +++ b/client/client_config.go @@ -31,6 +31,8 @@ func init() { clientLists["VSCode Cline"] = filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json") clientLists["Trae CN Cline"] = filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Trae CN", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json") clientLists["Trae Cline"] = filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Trae", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json") + clientLists["Trae"] = filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Trae", "User", "mcp.json") + clientLists["Trae CN"] = filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Trae CN", "User", "mcp.json") clientLists["VSCode Roo"] = filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "mcp_settings.json") clientLists["Trae CN Roo"] = filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Trae CN", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "mcp_settings.json") clientLists["Trae Roo"] = filepath.Join(os.Getenv("HOME"), "Library", "Application Support", "Trae", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "mcp_settings.json") diff --git a/client/client_config_windows.go b/client/client_config_windows.go index 6fa8e73..78592b1 100644 --- a/client/client_config_windows.go +++ b/client/client_config_windows.go @@ -29,6 +29,8 @@ func init() { clientLists["VSCODE Cline"] = filepath.Join(os.Getenv("APPDATA"), "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json") clientLists["Trae CN Cline"] = filepath.Join(os.Getenv("APPDATA"), "Trae CN", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json") clientLists["Trae Cline"] = filepath.Join(os.Getenv("APPDATA"), "Trae", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json") + clientLists["Trae"] = filepath.Join(os.Getenv("APPDATA"), "Trae", "User", "mcp.json") + clientLists["Trae CN"] = filepath.Join(os.Getenv("APPDATA"), "Trae CN", "User", "mcp.json") clientLists["VSCODE Roo Code"] = filepath.Join(os.Getenv("APPDATA"), "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "mcp_settings.json") clientLists["Trae CN Roo"] = filepath.Join(os.Getenv("APPDATA"), "Trae CN", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "mcp_settings.json") clientLists["Trae Roo"] = filepath.Join(os.Getenv("APPDATA"), "Trae", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "mcp_settings.json")