diff --git a/MCPForUnity/Editor/Clients/Configurators/TraeCnConfigurator.cs b/MCPForUnity/Editor/Clients/Configurators/TraeCnConfigurator.cs new file mode 100644 index 000000000..eaece4e20 --- /dev/null +++ b/MCPForUnity/Editor/Clients/Configurators/TraeCnConfigurator.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.IO; +using MCPForUnity.Editor.Models; + +namespace MCPForUnity.Editor.Clients.Configurators +{ + public class TraeCnConfigurator : JsonFileMcpConfigurator + { + public TraeCnConfigurator() : base(new McpClient + { + name = "Trae CN", + windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Trae CN", "User", "mcp.json"), + macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "Trae CN", "User", "mcp.json"), + linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "Trae CN", "User", "mcp.json"), + }) + { } + + public override IList GetInstallationSteps() => new List + { + "Open Trae CN and go to Settings > MCP", + "Select Add Server > Add Manually", + "Paste the JSON or point to the mcp.json file\n"+ + "Windows: %AppData%\\Trae CN\\User\\mcp.json\n" + + "macOS: ~/Library/Application Support/Trae CN/User/mcp.json\n" + + "Linux: ~/.config/Trae CN/User/mcp.json\n", + "Save and restart Trae CN" + }; + } +} diff --git a/MCPForUnity/Editor/Clients/Configurators/TraeCnConfigurator.cs.meta b/MCPForUnity/Editor/Clients/Configurators/TraeCnConfigurator.cs.meta new file mode 100644 index 000000000..57fa896a3 --- /dev/null +++ b/MCPForUnity/Editor/Clients/Configurators/TraeCnConfigurator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: adece9c580b24ae7add84b1a533820c0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: