idea-mcp

Automate Java code analysis and test execution within IntelliJ IDEA.

208|21|Updated Jul 23, 2022
One-click install
npx skills add https://github.com/dtprj/dongting --skill idea-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: idea-mcp
Source: https://github.com/dtprj/dongting/tree/main/.opencode/skills/idea-mcp
Command: npx skills add https://github.com/dtprj/dongting --skill idea-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

IntelliJ IDEA MCP users need accurate Java code analysis, reliable test execution, and safe refactoring across multi-module projects. This skill provides a structured, IDE-driven approach to perform these tasks within IDEA, avoiding false positives from other tooling.

Core Features & Use Cases

  • Precise Java code analysis using MCP within IDEA to improve code quality.
  • Run tests via IDEA run configurations and obtain TeamCity-friendly output.
  • Safe symbol refactoring and project navigation for large codebases.
  • Quick exploration of code structure with directory listing and file reading commands.

Quick Start

Run the IDEA run configuration named 'client:test' and report the results.

Frequently Asked Questions about idea-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Java code analysis and test execution inside IntelliJ IDEA?

Automate Java code analysis and test execution inside IntelliJ IDEA by using MCP commands to run IDEA configurations, retrieve file problems, and generate structured output for verifying code quality across multi-module projects.

Can I perform safe refactoring on large Java projects using MCP in IntelliJ?

Yes, you can perform safe refactoring on large Java projects using MCP in IntelliJ by executing rename_refactoring commands, which leverage the IDE's built-in symbol resolution to ensure accurate and safe code modifications.

How does IntelliJ IDEA MCP handle test runs for continuous integration?

IntelliJ IDEA MCP handles test runs by executing IDEA run configurations and producing TeamCity-friendly output, ensuring that test results integrate smoothly into continuous integration pipelines without false positives from external tooling.

What is the best way to explore a large Java codebase structure in IntelliJ?

The best way to explore a large Java codebase structure in IntelliJ is by using MCP commands like list_directory_tree and get_file_text_by_path to quickly navigate directories and read file contents directly within the IDE environment.

Does IntelliJ IDEA MCP support text search across multiple Java project modules?

IntelliJ IDEA MCP supports text search across multiple Java project modules through the search_in_files_by_text command, allowing developers to locate specific code segments efficiently within complex multi-module architectures.

Why use IntelliJ IDEA MCP instead of external Java code analysis tools?

Use IntelliJ IDEA MCP instead of external Java code analysis tools to avoid false positives, as it leverages the IDE's precise internal indexing and compilation data to provide accurate code quality verification and refactoring.