idea-mcp

IntelliJ IDEA MCP Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "idea-mcp" with this command: npx skills add dtprj/dongting/dtprj-dongting-idea-mcp

IntelliJ IDEA MCP Skill

Critical Requirements

  • IDEA MUST be running with MCP server connected

  • Permission dialogs in IDEA must be accepted for commands to execute

Path Rules (Most Common Error Source)

Parameter Path Type Example

projectPath

ABSOLUTE /Users/huangli/dt/dongting

filePath , pathInProject , directoryPath

RELATIVE server/src/main/java/...

Key Workflows

Check Compilation Errors

Tool: IntelliJ-IDEA_get_file_problems Parameters: projectPath: "/Users/huangli/dt/dongting" filePath: "server/src/main/java/.../SomeFile.java" errorsOnly: true

More accurate than LSP for multi-module Maven projects.

Run Tests

Tool: IntelliJ-IDEA_execute_run_configuration Parameters: projectPath: "/Users/huangli/dt/dongting" configurationName: "TtlManagerTest" timeout: 120000 # 2 minutes for tests

Search Code

Tool: IntelliJ-IDEA_search_in_files_by_text Parameters: projectPath: "/Users/huangli/dt/dongting" searchText: "DtLog.getLogger" caseSensitive: true

Safe Refactoring

  • Search first: search_in_files_by_text to understand scope

  • Rename: rename_refactoring with symbolName and newName

  • Verify: get_file_problems to check for errors

Tool Selection Guide

Task Best Tool Why

Java errors/warnings IDEA get_file_problems

More accurate than LSP

Run tests IDEA execute_run_configuration

Proper test environment

Rename refactoring IDEA rename_refactoring

Semantic, cross-file updates

Search code IDEA search_in_files_by_*

Fast indexed search

Find files IDEA find_files_by_*

Fast indexed search

Read files LSP read or IDEA get_file_text_by_path

Either works

Build/compile Bash mvn

More control, reproducible

Git operations Bash git

IDEA MCP lacks git tools

Timeout Recommendations

Operation Timeout

File/text search 30000-60000

Get file problems 15000

Run configuration 120000-300000

Build project 300000

Refactoring 60000

High-Risk Operations

  • execute_terminal_command : Runs ANY shell command with full system permissions

  • rename_refactoring & replace_text_in_file : Modifies code globally

  • create_new_file : Creates files immediately

  • reformat_file : Modifies formatting without confirmation

Troubleshooting

Issue Solution

Connection refused Verify IDEA running with MCP plugin

Request timed out Accept permission dialog in IDEA

File not found Check absolute vs relative path

No occurrences found Verify projectPath and file paths

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

claw2ui

Generate interactive web pages (dashboards, charts, tables, reports) and serve them via public URL. Use this skill when the user explicitly asks for data vis...

Registry SourceRecently Updated
General

WeChat Article Summarize

Read one or more WeChat public account article links from mp.weixin.qq.com, extract cleaned full text and optional image links, summarize each article in Chi...

Registry SourceRecently Updated
General

Openfinance

Connect bank accounts to AI models using openfinance.sh

Registry SourceRecently Updated
General

---

合同审查清单AI助手 - 5类合同+3大特殊条款,风险识别与修改建议

Registry SourceRecently Updated