Skip to content

Commit 9578ddc

Browse files
committed
Add support to github copilot on jetbrains ide
1 parent 5bc51b6 commit 9578ddc

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

UnityMcpBridge/Editor/Data/McpClients.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,34 @@ public class McpClients
134134
mcpType = McpTypes.VSCode,
135135
configStatus = "Not Configured",
136136
},
137+
// 6) JetBrains GitHub Copilot
138+
new()
139+
{
140+
name = "JetBrains GitHub Copilot",
141+
windowsConfigPath = Path.Combine(
142+
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
143+
"github-copilot",
144+
"intellij",
145+
"mcp.json"
146+
),
147+
macConfigPath = Path.Combine(
148+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
149+
"Library",
150+
"Application Support",
151+
"", //TODO(PR): I need some help here
152+
"", //TODO(PR): I need some help here
153+
"mcp.json"
154+
),
155+
linuxConfigPath = Path.Combine(
156+
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
157+
".config",
158+
"", //TODO(PR): I need some help here
159+
"", //TODO(PR): I need some help here
160+
"mcp.json"
161+
),
162+
mcpType = McpTypes.JetBrainsCopilot,
163+
configStatus = "Not Configured",
164+
},
137165
// 3) Kiro
138166
new()
139167
{

UnityMcpBridge/Editor/Models/McpTypes.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ namespace MCPForUnity.Editor.Models
22
{
33
public enum McpTypes
44
{
5-
ClaudeCode,
6-
ClaudeDesktop,
7-
Codex,
8-
Cursor,
9-
Kiro,
10-
VSCode,
11-
Windsurf,
5+
ClaudeCode = 0,
6+
ClaudeDesktop = 1,
7+
Codex = 2,
8+
Cursor = 3,
9+
Kiro = 4,
10+
VSCode = 5,
11+
Windsurf = 6,
12+
JetBrainsCopilot = 7,
1213
}
1314
}

UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ protected virtual void OnGUI()
101101
instructionStyle
102102
);
103103
}
104+
else if (mcpClient?.mcpType == McpTypes.JetBrainsCopilot)
105+
{
106+
EditorGUILayout.LabelField(
107+
" a) Going to File > Settings > Tools > GitHub Copilot > Model Context Protocol (MCP) > Configure",
108+
instructionStyle
109+
);
110+
}
104111
else if (mcpClient?.mcpType == McpTypes.Codex)
105112
{
106113
EditorGUILayout.LabelField(

0 commit comments

Comments
 (0)