askill
mcp-tools

mcp-toolsSafety --Repository

Control IntelliJ IDEA through MCP server. File operations, editor control, run configs, VCS status, debugging, scopes, file colors. Use when working with JetBrains IDEs, running tests from IDE, managing project structure, or configuring file scopes. Keywords: idea, intellij, jetbrains, ide, mcp, scopes, file colors.

0 stars
1.2k downloads
Updated 2/13/2026

Package Files

Loading files...
SKILL.md

Skill: IntelliJ IDEA MCP Integration

Control and interact with JetBrains IntelliJ IDEA directly through the Model Context Protocol (MCP) server.

Trigger

  • /idea - Show available IntelliJ IDEA MCP commands and current IDE status
  • /idea [action] - Execute a specific IDE action

Arguments

$ARGUMENTS

Prerequisites

The JetBrains MCP server must be configured and running:

  1. IntelliJ IDEA must be open with the MCP Server plugin enabled
  2. MCP Server must be added to Docker MCP Gateway:
    mcp-find jetbrains
    mcp-config-set jetbrains {"port": <PORT>}
    mcp-add jetbrains
    
  3. The port can be found in C:\Users\Chris\AppData\Roaming\Claude\claude_desktop_config.json under IJ_MCP_SERVER_PORT

Available Tools

File Operations

ToolDescription
create_new_file_with_textCreate a new file with specified content
get_file_text_by_pathRead file contents by relative path
replace_file_text_by_pathReplace entire file content
replace_specific_textFind and replace text in a specific file
find_files_by_name_substringSearch for files by name pattern
list_files_in_folderList files in a directory
list_directory_tree_in_folderGet hierarchical project structure

Editor Operations

ToolDescription
get_open_in_editor_file_pathGet path of currently active file
get_open_in_editor_file_textGet content of currently active file
get_all_open_file_pathsList all open file paths
get_all_open_file_textsGet content of all open files
get_selected_in_editor_textGet currently selected text
replace_selected_textReplace selected text
replace_current_file_textReplace entire content of active file
open_file_in_editorOpen a file in the editor

Project & VCS

ToolDescription
get_project_modulesList all project modules with dependencies
get_project_dependenciesList all project dependencies
get_project_vcs_statusGet Git/VCS status of files
find_commit_by_messageSearch commits by message
search_in_files_contentSearch text across all project files

Run & Debug

ToolDescription
get_run_configurationsList available run configurations
run_configurationExecute a run configuration by name
get_debugger_breakpointsList all breakpoints
toggle_debugger_breakpointAdd/remove breakpoint at line

Terminal & IDE Actions

ToolDescription
execute_terminal_commandRun command in IDE terminal
execute_action_by_idExecute IDE action by ID
list_available_actionsList all available IDE actions
get_terminal_textGet terminal output
get_progress_indicatorsCheck running tasks/progress

Utility

ToolDescription
waitWait for specified milliseconds

Scopes & File Colors

IntelliJ IDEA scopes provide powerful file filtering and visual organization capabilities.

Scope Configuration

Scopes are stored in .idea/scopes/*.xml with the following format:

<?xml version="1.0" encoding="UTF-8"?>
<component name="DependencyValidationManager">
  <scope name="Scope Name" pattern="file[ModuleName]:path//*" />
</component>

Scope Pattern Syntax

PatternDescription
file[Module]:path//*Files in path recursively
file[Module]:path/*Files in path (no subdirs)
file:*.extFiles by extension
||OR operator
&&AND operator
!NOT operator
$ScopeNameReference another scope

File Colors Configuration

File colors are configured in .idea/workspace.xml under <component name="FileColors">:

<component name="FileColors">
  <fileColor scope="Scope Name" color="hexcode" />
</component>

Dark Theme Color Palette:

PurposeHexDescription
Yellow4a4522Dark Olive
Blue2e4a5aDark Nordic
Green2a4a3aDark Forest
Purple4a2a4aDark Plum
Orange5a3a1aDark Amber
Gray3a3a3aDark Gray
Cyan1a4a5aDark Teal

If $ARGUMENTS is "scopes":

  1. List existing scopes from .idea/scopes/
  2. Show current file colors from .idea/workspace.xml
  3. Suggest scope improvements based on project structure

If $ARGUMENTS is "scopes setup" or "scopes create":

  1. Analyze project structure (folder hierarchy)
  2. Create logical scope groupings
  3. Generate scope XML files in .idea/scopes/
  4. Configure file colors in workspace.xml
  5. Use dark theme colors by default

If $ARGUMENTS is "scopes colors":

  1. Read current file colors from workspace.xml
  2. Display color assignments
  3. Suggest adjustments for dark/light themes

Command Handling

If $ARGUMENTS is empty or "status":

  1. Check if JetBrains MCP server is connected
  2. If not connected, attempt to connect using mcp-find, mcp-config-set, and mcp-add
  3. Show current IDE status:
    • Currently open file
    • All open files
    • Project VCS status
    • Running progress indicators

If $ARGUMENTS is "files":

List all open files in the editor using get_all_open_file_paths.

If $ARGUMENTS is "tree" or "structure":

Show project directory tree using list_directory_tree_in_folder with path "/" and maxDepth 3.

If $ARGUMENTS is "vcs" or "git":

Show VCS status using get_project_vcs_status.

If $ARGUMENTS is "runs" or "configurations":

List run configurations using get_run_configurations.

If $ARGUMENTS is "breakpoints":

List all breakpoints using get_debugger_breakpoints.

If $ARGUMENTS is "modules":

List project modules using get_project_modules.

If $ARGUMENTS is "deps" or "dependencies":

List project dependencies using get_project_dependencies.

If $ARGUMENTS is "terminal":

Get terminal output using get_terminal_text.

If $ARGUMENTS is "actions":

List available IDE actions using list_available_actions.

If $ARGUMENTS starts with "open ":

Open the specified file using open_file_in_editor.

If $ARGUMENTS starts with "run ":

Execute the specified run configuration using run_configuration.

If $ARGUMENTS starts with "search ":

Search in files using search_in_files_content with the query.

If $ARGUMENTS starts with "find ":

Find files by name using find_files_by_name_substring.

If $ARGUMENTS starts with "exec " or "action ":

Execute IDE action by ID using execute_action_by_id.

If $ARGUMENTS starts with "cmd " or "terminal ":

Execute terminal command using execute_terminal_command.

If $ARGUMENTS is "current" or "active":

Show the currently active file path and content using get_open_in_editor_file_path and get_open_in_editor_file_text.

If $ARGUMENTS is "selected" or "selection":

Get selected text using get_selected_in_editor_text.

If $ARGUMENTS is "help":

Display this skill documentation with all available commands.

Usage Guidelines

  1. Always ensure IntelliJ IDEA is running before attempting to use these commands
  2. File paths are relative to project root unless specified as absolute
  3. Use get_project_vcs_status before making changes to understand current state
  4. Prefer replace_specific_text over replace_file_text_by_path for targeted edits
  5. Check get_progress_indicators if IDE seems busy or unresponsive
  6. Use wait when chaining commands that need IDE to process (e.g., after running a configuration)

Example Usage

/idea                    # Show IDE status and open files
/idea files              # List all open files
/idea tree               # Show project structure
/idea vcs                # Show Git status
/idea open src/main.ts   # Open a specific file
/idea run "Debug App"    # Run a configuration
/idea search TODO        # Search for TODO in all files
/idea find config        # Find files with "config" in name
/idea terminal npm test  # Run npm test in terminal
/idea current            # Show current file content
/idea help               # Show this help

Error Handling

If the MCP server is not connected:

  1. Use mcp__MCP_DOCKER__mcp-find with query "jetbrains" to verify availability
  2. Use mcp__MCP_DOCKER__mcp-config-set to set the port configuration
  3. Use mcp__MCP_DOCKER__mcp-add to activate the server

Common issues:

  • Port mismatch: Check IJ_MCP_SERVER_PORT in claude_desktop_config.json
  • IDE not running: Start IntelliJ IDEA and ensure MCP Server plugin is enabled
  • Plugin disabled: Go to Settings > Plugins > MCP Server and enable it

References

  • Scopes Guide - Complete guide to IDEA scopes and file colors

Metadata

author: Christian Kusmanow / Claude
version: 1.0.0
last_updated: 2026-01-31
migrated_from: .claude/skills/idea v2.0.0
change_surface: references/ (scopes guide, tool updates)

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

AI review pending.

Metadata

Licenseunknown
Version1.0.0
Updated2/13/2026
Publisherteslasoft-de

Tags

llmtesting