From 3927863ecbaf0d121e8f6a7aeace5610da2fe3a4 Mon Sep 17 00:00:00 2001 From: Eddie Hu Date: Sat, 22 Aug 2026 15:25:31 -0600 Subject: [PATCH] fix: correct Trae MCP config path Trae is a VS Code fork: its global MCP config is .../Trae/User/mcp.json, not the user data root. Since we have written one level up, it fails silently, because IsInstalled only stats the parent directory so the UI still reports "Configured". Verified on macOS against Trae 1.10; Windows and Linux paths are inferred from the same VS Code profile layout. --- .../Editor/Clients/Configurators/TraeConfigurator.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MCPForUnity/Editor/Clients/Configurators/TraeConfigurator.cs b/MCPForUnity/Editor/Clients/Configurators/TraeConfigurator.cs index f32b68863..c8798d32a 100644 --- a/MCPForUnity/Editor/Clients/Configurators/TraeConfigurator.cs +++ b/MCPForUnity/Editor/Clients/Configurators/TraeConfigurator.cs @@ -10,9 +10,9 @@ public class TraeConfigurator : JsonFileMcpConfigurator public TraeConfigurator() : base(new McpClient { name = "Trae", - windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Trae", "mcp.json"), - macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "Trae", "mcp.json"), - linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "Trae", "mcp.json"), + windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Trae", "User", "mcp.json"), + macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "Trae", "User", "mcp.json"), + linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "Trae", "User", "mcp.json"), }) { } @@ -21,9 +21,9 @@ public TraeConfigurator() : base(new McpClient "Open Trae and go to Settings > MCP", "Select Add Server > Add Manually", "Paste the JSON or point to the mcp.json file\n"+ - "Windows: %AppData%\\Trae\\mcp.json\n" + - "macOS: ~/Library/Application Support/Trae/mcp.json\n" + - "Linux: ~/.config/Trae/mcp.json\n", + "Windows: %AppData%\\Trae\\User\\mcp.json\n" + + "macOS: ~/Library/Application Support/Trae/User/mcp.json\n" + + "Linux: ~/.config/Trae/User/mcp.json\n", "Save and restart Trae" }; }