-
Notifications
You must be signed in to change notification settings - Fork 461
GitHub Copilot support for JetBrains IDE #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,6 +134,34 @@ public class McpClients | |
mcpType = McpTypes.VSCode, | ||
configStatus = "Not Configured", | ||
}, | ||
// 6) JetBrains GitHub Copilot | ||
new() | ||
{ | ||
name = "JetBrains GitHub Copilot", | ||
windowsConfigPath = Path.Combine( | ||
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), | ||
"github-copilot", | ||
"intellij", | ||
"mcp.json" | ||
), | ||
Comment on lines
+141
to
+146
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify the Windows config path is correct. The Windows path uses 🌐 Web query:
💡 Result: You don't need to hunt for a specific file path — in JetBrains IDEs GitHub Copilot's MCP config is edited from the Copilot UI (GitHub Copilot icon → Edit settings → "Edit in mcp.json"), which opens the mcp.json configuration used by the IDE. See GitHub's Copilot MCP docs and JetBrains' MCP/AI Assistant docs for details. [1][2] Sources: Remove hardcoded Windows MCP config path. The Copilot MCP configuration isn’t stored at 🤖 Prompt for AI Agents
|
||
macConfigPath = Path.Combine( | ||
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), | ||
"Library", | ||
"Application Support", | ||
"", //TODO(PR): I need some help here | ||
"", //TODO(PR): I need some help here | ||
"mcp.json" | ||
), | ||
linuxConfigPath = Path.Combine( | ||
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), | ||
".config", | ||
"", //TODO(PR): I need some help here | ||
"", //TODO(PR): I need some help here | ||
"mcp.json" | ||
), | ||
mcpType = McpTypes.JetBrainsCopilot, | ||
configStatus = "Not Configured", | ||
}, | ||
Comment on lines
+137
to
+164
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainCritical: Empty path segments will create invalid file paths. Lines 151-152 and 158-159 contain empty string arguments in The correct paths for JetBrains GitHub Copilot need to be researched. Based on typical JetBrains IDE conventions, the paths are likely: macOS: macConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
"Library",
"Application Support",
"github-copilot",
"intellij",
"mcp.json"
) Linux: linuxConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".config",
"github-copilot",
"intellij",
"mcp.json"
) However, these paths should be verified against official JetBrains GitHub Copilot documentation. Run the following web search to find the official configuration paths: 🌐 Web query:
💡 Result: The Copilot config file is github-copilot.xml.
(If the file doesn't exist yet, change the Copilot language settings in the IDE or create the file manually.) [1] Critical: Invalid JetBrains Copilot config paths macConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
"Library",
"Application Support",
"JetBrains",
"<PRODUCT><VERSION>",
"options",
"github-copilot.xml"
);
linuxConfigPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
".config",
"JetBrains",
"<PRODUCT><VERSION>",
"options",
"github-copilot.xml"
); Replace 🤖 Prompt for AI Agents
|
||
// 3) Kiro | ||
new() | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,13 @@ protected virtual void OnGUI() | |
instructionStyle | ||
); | ||
} | ||
else if (mcpClient?.mcpType == McpTypes.JetBrainsCopilot) | ||
{ | ||
EditorGUILayout.LabelField( | ||
" a) Going to File > Settings > Tools > GitHub Copilot > Model Context Protocol (MCP) > Configure", | ||
instructionStyle | ||
); | ||
} | ||
Comment on lines
+104
to
+110
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major 🧩 Analysis chainVerify the instruction path matches JetBrains IDE UI. The instruction path "File > Settings > Tools > GitHub Copilot > Model Context Protocol (MCP) > Configure" should be verified against the actual JetBrains IDE interface to ensure users can follow it successfully. 🌐 Web query:
💡 Result: Short answer — use the Copilot Chat MCP config (mcp.json) inside the JetBrains Copilot Chat tools UI or enable the IDE’s built‑in MCP server and copy the client config. Steps + examples:
References: Update JetBrains Copilot MCP configuration path EditorGUILayout.LabelField(
" a) Open Copilot Chat (click the lower-right Copilot icon), click the Tools icon (‘Configure your MCP server’) and edit mcp.json",
instructionStyle
); 🤖 Prompt for AI Agents
|
||
else if (mcpClient?.mcpType == McpTypes.Codex) | ||
{ | ||
EditorGUILayout.LabelField( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix comment numbering inconsistency.
The comment says "6) JetBrains GitHub Copilot", but the previous entries use "5)" for VSCode and "3)" for Kiro below. The numbering should be consistent throughout the list for maintainability.
Consider renumbering all entries sequentially (1-8) to match the actual order in the list.
🤖 Prompt for AI Agents