Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions MCPForUnity/Editor/Clients/Configurators/TraeCnConfigurator.cs
Original file line number Diff line number Diff line change
@@ -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<string> GetInstallationSteps() => new List<string>
{
"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"
};
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading