2025-12-18 04:57:49 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using MCPForUnity.Editor.Models;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MCPForUnity.Editor.Clients.Configurators
|
|
|
|
|
|
{
|
|
|
|
|
|
public class RiderConfigurator : JsonFileMcpConfigurator
|
|
|
|
|
|
{
|
|
|
|
|
|
public RiderConfigurator() : base(new McpClient
|
|
|
|
|
|
{
|
|
|
|
|
|
name = "Rider GitHub Copilot",
|
2026-01-22 05:02:13 +08:00
|
|
|
|
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "github-copilot", "intellij", "mcp.json"),
|
|
|
|
|
|
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "github-copilot", "intellij", "mcp.json"),
|
|
|
|
|
|
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "github-copilot", "intellij", "mcp.json"),
|
2025-12-18 04:57:49 +08:00
|
|
|
|
IsVsCodeLayout = true
|
|
|
|
|
|
})
|
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
|
|
public override IList<string> GetInstallationSteps() => new List<string>
|
|
|
|
|
|
{
|
|
|
|
|
|
"Install GitHub Copilot plugin in Rider",
|
|
|
|
|
|
"Open or create mcp.json at the path above",
|
|
|
|
|
|
"Paste the configuration JSON",
|
|
|
|
|
|
"Save and restart Rider"
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|