Skip to content

Commit 493d9ba

Browse files
feat: Add Intelij Rider for Autoconfig support (#448)
1 parent 8fe73be commit 493d9ba

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using MCPForUnity.Editor.Models;
5+
6+
namespace MCPForUnity.Editor.Clients.Configurators
7+
{
8+
public class RiderConfigurator : JsonFileMcpConfigurator
9+
{
10+
public RiderConfigurator() : base(new McpClient
11+
{
12+
name = "Rider GitHub Copilot",
13+
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "JetBrains", "Rider", "mcp.json"),
14+
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Library", "Application Support", "JetBrains", "Rider", "mcp.json"),
15+
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".config", "JetBrains", "Rider", "mcp.json"),
16+
IsVsCodeLayout = true
17+
})
18+
{ }
19+
20+
public override IList<string> GetInstallationSteps() => new List<string>
21+
{
22+
"Install GitHub Copilot plugin in Rider",
23+
"Open or create mcp.json at the path above",
24+
"Paste the configuration JSON",
25+
"Save and restart Rider"
26+
};
27+
}
28+
}
29+

0 commit comments

Comments
 (0)