From ece1fac9a7e2f4b00c21bbf0113a9548362a919e Mon Sep 17 00:00:00 2001 From: Thibaut De Tandt <33635345+DeTandtThibaut@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:38:09 +0100 Subject: [PATCH] feat: Add Intelij Rider for Autoconfig support --- .../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 000000000..5db02acaf --- /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" + }; + } +} +