☕ 🏠 - JetBrains IDE plugin exposing indexing and refactoring features: rename, safe delete, find references,…
IDE Index MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A JetBrains IDE plugin that exposes an **MCP (Model Context Protocol) server**, enabling AI coding assistants like Claude, Codex, Cursor, and Windsurf to leverage the IDE's powerful indexing and refactoring capabilities.
**Fully tested**: IntelliJ IDEA, PyCharm, WebStorm, GoLand, RustRover, Android Studio, PhpStorm
**May work** (untested): RubyMine, CLion, DataGrip
**Not supported**: Rider (its ReSharper backend does not expose the IntelliJ PSI APIs this plugin relies on; see #167)
**IDE Index MCP Server** provides AI coding assistants with access to the IDE's powerful code intelligence features through the Model Context Protocol (MCP).
Features
**Multi-Language Support**
Advanced tools work across multiple languages based on available plugins:
- **Java & Kotlin** - IntelliJ IDEA, Android Studio
- **Python** - PyCharm (all editions), IntelliJ with Python plugin, including symbol-based definition/reference lookup
- **JavaScript & TypeScript** - WebStorm, IntelliJ Ultimate, PhpStorm
- **Go** - GoLand, IntelliJ IDEA Ultimate with Go plugin
- **PHP** - PhpStorm, IntelliJ Ultimate with PHP plugin
- **Rust** - RustRover, IntelliJ IDEA Ultimate with Rust plugin, CLion
- **Scala** - IntelliJ IDEA with the Scala plugin (Scala 2 sources)
- **Markdown** - heading outlines in file structure for IDEs with the bundled Markdown plugin
**Universal Tools (All Supported JetBrains IDEs)**
- **Find References** - Locate all usages of any symbol across the project
- **Go to Definition** - Navigate to symbol declarations
- **Code Diagnostics** - Access errors, warnings, and quick fixes
- **Index Status** - Check if code intelligence is ready
- **Sync Files** - Force sync VFS/PSI cache after external file changes
- **Reload Project** - Refresh linked Maven/Gradle build models after dependency or build-file changes (disabled by default)
- **Import Modules** - Import external Maven project directories as modules for cross-project code intelligence and refactoring (disabled by default)
- **Open Workspace** - Scan a root directory for Maven projects, or provide an explicit list of Maven project paths, and open them all in one IntelliJ window with full cross-project code intelligence (disabled by default)
- **Build Project** - Trigger IDE build with structured error/warning output (disabled by default)
- **Find Class** - Fast class/interface search by name with camelCase matching
- **Find File** - Fast file search by name using IDE's file index
- **Symbol Search** - Find code symbols by name with IntelliJ Go to Symbol matching (disabled by default)
- **Search Text** - Text search using IntelliJ Find in Files (substring and regex matching)
- **Read File** - Read file content by path or qualified name, including library sources (disabled by default)
- **Open File** - Open a file in the editor with optional navigation (disabled by default)
- **Get Active File** - Get currently active editor file(s) with cursor position (disabled by default)
**Extended Tools (Language-Aware)**
These tools activate based on installed language plugins:
- **Type Hierarchy** - Explore class inheritance chains
- **Call Hierarchy** - Trace method/function call relationships
- **Find Implementations** - Discover interface/abstract implementations
- **Find Super Methods** - Navigate method override hierarchies
- **File Structure** - View hierarchical file structure like IDE's Structure view, including PHP Structure View trees and Markdown heading outlines; shows start and end line for each element (disabled by default)
**Refactoring Tools**
- **Rename Refactoring** - Safe renaming with automatic related element renaming (getters/setters, overriding methods) - works across ALL languages, fully headless
- **Move File** - Move files with IDE-aware reference and package updates when supported
- **Reformat Code** - Reformat using project code style with import optimization (disabled by default)
- **Optimize Imports** - Remove unused imports and organize imports without reformatting (disabled by default)
- **Edit Member** - Replace an entire member declaration (signature + body) with new content (Java/Kotlin, disabled by default)
- **Insert Member** - Insert a new member at a structural position (Java/Kotlin, disabled by default)
- **Replace Member** - Replace method body or field initializer only, preserving the signature (Java/Kotlin, disabled by default)
- **Safe Delete** - Remove code with usage checking (Java/Kotlin only)
- **Java to Kotlin Conversion** - Convert Java to Kotlin using Intellij's built-in converter (Java only)