From 493d9ba420f9cec6065419db1f2ca885fc30ef1c Mon Sep 17 00:00:00 2001 From: DeTandtThibaut <33635345+DeTandtThibaut@users.noreply.github.com> Date: Wed, 17 Dec 2025 21:57:49 +0100 Subject: [PATCH] feat: Add Intelij Rider for Autoconfig support (#448) --- .../Configurators/RiderConfigurator.cs | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 MCPForUnity/Editor/Clients/Configurators/RiderConfigurator.cs diff --git a/MCPForUnity/Editor/Clients/Configurators/RiderConfigurator.cs b/MCPForUnity/Editor/Clients/Configurators/RiderConfigurator.cs new file mode 100644 index 0000000..5db02ac --- /dev/null +++ b/MCPForUnity/Editor/Clients/Configurators/RiderConfigurator.cs @@ -0,0 +1,29 @@ +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", + windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "JetBrains", "Rider", "mcp.json"), + macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "JetBrains", "Rider", "mcp.json"), + linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "JetBrains", "Rider", "mcp.json"), + IsVsCodeLayout = true + }) + { } + + public override IList GetInstallationSteps() => new List + { + "Install GitHub Copilot plugin in Rider", + "Open or create mcp.json at the path above", + "Paste the configuration JSON", + "Save and restart Rider" + }; + } +} +