feat: add MCP config adapter for JetBrains IDEs#102
Draft
Conversation
Add a JetBrains adapter to the MCP configuration system that supports IntelliJ IDEA, WebStorm, PyCharm, GoLand, Rider, CLion, PhpStorm, RubyMine, DataGrip, RustRover, Aqua, DataSpell, Fleet, and Android Studio. The adapter detects JetBrains installations by scanning the platform- specific config directory (~/Library/Application Support/JetBrains on macOS, ~/.config/JetBrains on Linux) for known product prefixes. It also detects local .idea project directories. Project-level config writes to .idea/mcp.json. Global config targets the most recent product version directory's options/mcp.json.
Member
Author
|
Postponing till |
…dd-mcp-config-adapter-for-jetbrains-ides
- remove() now uses writeJsonOrRemove so empty configs are deleted (matches peer adapters; unblocks generic uninstall test) - globalPath() picks newest product version with numeric parsing so 2025.10 > 2025.2 across all detected products - Product matcher requires a digit right after the prefix to prevent collisions (PyCharm vs PyCharmCE) and ignores non-versioned dirs - Scope detection to macOS only - Add JetBrains row to the Supported Editors table
latekvo
commented
Apr 17, 2026
Comment on lines
+613
to
+629
| const JETBRAINS_PRODUCTS = [ | ||
| "IntelliJIdea", | ||
| "WebStorm", | ||
| "PyCharm", | ||
| "PyCharmCE", | ||
| "GoLand", | ||
| "Rider", | ||
| "CLion", | ||
| "PhpStorm", | ||
| "RubyMine", | ||
| "DataGrip", | ||
| "RustRover", | ||
| "Aqua", | ||
| "DataSpell", | ||
| "Fleet", | ||
| "AndroidStudio", | ||
| ]; |
Member
Author
There was a problem hiding this comment.
Nearly each of these has a unique global config directory. So for now at least we're limiting ourselves to local-only, since on the project level they all support the .idea/ config directory.
.idea/ is shared by every IntelliJ-platform IDE (IntelliJ, WebStorm, PyCharm, GoLand, Rider, CLion, PhpStorm, RubyMine, DataGrip, RustRover, Aqua, DataSpell, Android Studio), so a single .idea/mcp.json covers them all — no need to scan per-product global dirs or fan out writes. Fleet uses a different layout entirely and is dropped. Mirrors the VS Code adapter shape: globalPath() returns null and init.ts already falls back to the project path for project-only adapters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
JetBrainsMCP config adapter supporting IntelliJ IDEA, WebStorm, PyCharm, GoLand, Rider, CLion, PhpStorm, RubyMine, DataGrip, RustRover, Aqua, DataSpell, Fleet, and Android Studio.idea/mcp.jsonproject level configs for nowResolves ARG-103