Agent skill

Idea MCP

by dtprj in dtprj/dongting

IntelliJ IDEA MCP for Java code analysis, testing, refactoring, and project navigation.

Apache-2.0Auto-check passedDevelopment

Install Idea MCP

skills CLI
$ npx skills add dtprj/dongting --skill idea-mcp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dtprj/dongting idea-mcp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dtprj/dongting.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/idea-mcp .claude/skills/idea-mcp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
idea-mcp
GitHub stars
208
Token cost
~698 tokens
SKILL.md length
268 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
Apache-2.0

At a glance

IntelliJ IDEA MCP for Java code analysis, testing, refactoring, and project navigation.

  • Checking Java compilation errors (getfileproblems is more accurate than LSP for multi-module Maven)
  • SKILL.md covers Path Rules (Most Common Error…, Gotchas and Tips, High-Risk Operations and Troubleshooting
  • Calls mvn
  • Performing rename refactoring across the codebase

What it does

Idea MCP is an agent skill from dtprj/dongting. IntelliJ IDEA MCP for Java code analysis, testing, refactoring, and project navigation. Use when: (1) Checking Java compilation errors (getfileproblems is more accurate than LSP for multi-module Maven), (2) Performing rename refactoring across the codebase, (3) Searching code or finding files in the project. Requires IDEA to be running with MCP plugin connected.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Refactoring and MCP servers. It works with Model Context Protocol, Java and JetBrains IDEs. The repository describes itself as: Java raft/config/mq/rpc engine, zero dependencies, 10X faster. The licence is Apache-2.0.

When your agent uses it

  • Checking Java compilation errors (getfileproblems is more accurate than LSP for multi-module Maven)
  • Performing rename refactoring across the codebase
  • Finding files in the project

Example prompts

  • “/idea-mcp”

What it can do on your machine

Read from SKILL.md and the folder at commit 0d366e7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • mvn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Idea MCP loads about 698 tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 268 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~698

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dtprj/dongting at commit 0d366e7, republished under its Apache-2.0 licence (© dtprj). 268 words, ~698 tokens.

Download SKILL.mdSave it as .claude/skills/idea-mcp/SKILL.md (or your agent's skills folder).
name
idea-mcp
description
IntelliJ IDEA MCP for Java code analysis, testing, refactoring, and project navigation. Use when: (1) Checking Java compilation errors (get_file_problems is more accurate than LSP for multi-module Maven), (2) Performing rename refactoring across the codebase, (3) Searching code or finding files in the project. Requires IDEA to be running with MCP plugin connected.

IntelliJ IDEA MCP Skill

Path Rules (Most Common Error Source)

ParameterPath TypeExample
projectPathABSOLUTE/Users/huangli/dt/dongting
filePath, pathInProject, directoryPath, contextPathRELATIVEserver/src/main/java/...

Getting this wrong is the #1 cause of "file not found" errors.

Gotchas and Tips

Two Search API Families

IDEA MCP has two sets of search tools that return different formats. Pick the right one:

  • search_in_files_by_text / search_in_files_by_regex — Returns matched lines with ||highlight|| markers. Good for quick "where is this string used" lookups. Supports fileMask filter.
  • search_text / search_regex / search_file / search_symbol — Returns structured results with exact coordinates (line, column, byte offsets). Supports paths glob filters and ! excludes. Use this when you need precise locations for further operations.
    • search_symbol is especially powerful — semantic symbol lookup (classes, methods, fields) returning full code snippets.
execute_terminal_command Does Not Use Shell by Default

Without executeInShell: true, shell features like $() expansion, pipes, and wildcards won't work. For most shell commands, prefer the Bash tool directly.

rename_refactoring Takes Symbol Name, Not Position

Parameters are symbolName (the exact identifier string) and newName, not file path + line/column. This is different from LSP-based rename.

build_project for Single-File Compilation

build_project with filesToRebuild parameter compiles specific files much faster than running mvn compile. Useful for quick verification after edits.

get_file_problems vs LSP Diagnostics

For multi-module Maven projects, get_file_problems is significantly more accurate than LSP lsp_diagnostics. Prefer it for Java error checking.

High-Risk Operations

  • rename_refactoring & replace_text_in_file — Modify code globally, verify with get_file_problems after use
  • reformat_file — Modifies formatting without confirmation

Troubleshooting

IssueSolution
Connection refusedVerify IDEA running with MCP plugin
Request timed outAccept permission dialog in IDEA
File not foundCheck absolute vs relative path (see Path Rules above)

© dtprj, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/idea-mcp of dtprj/dongting.

Open the folder on GitHubat commit 0d366e7

Compare with similar skills

Idea MCP next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Idea MCP compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Idea MCP this skilldtprj/dongting208—~698Automated safety check: PassApache-2.0
Java DebugAmplicode/spring-skills128—~2.7kAutomated safety check: PassNone
Edt MCP ArchitectureDitriXNew/EDT-MCP296—~1.2kAutomated safety check: PassAGPL-3.0
Amplicode InstallAmplicode/spring-skills128—~2.6kAutomated safety check: PassNone
Dto CreatorAmplicode/spring-skills128—~7.5kAutomated safety check: PassNone
Bootui Java Developmentjdubois/boot-ui314—~1.3kAutomated safety check: PassApache-2.0

Similar skills

  • Java Debug

    Amplicode/spring-skills

    Safety rules, workflows, and tool reference for debugging applications via IntelliJ debugger: breakpoints, debug sessions, stepping, evaluating expressions, inspecting runtime state.

    128 GitHub stars~2.7k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Edt MCP Architecture

    DitriXNew/EDT-MCP

    Map of the EDT-MCP plugin's target architecture — where the shared helpers live, the layering rules, and the canonical way to do project/metadata/code resolution.

    296 GitHub stars~1.2k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Amplicode Install

    Amplicode/spring-skills

    Installs the Amplicode IntelliJ plugin into IntelliJ IDEA (Ultimate/Community) and GigaIDE on the user's machine.

    128 GitHub stars~2.6k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Dto Creator

    Amplicode/spring-skills

    Creates a DTO (Data Transfer Object) class for an entity. An agent skill from Amplicode/spring-skills.

    128 GitHub stars~7.5k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • A skill your agent uses when implementing, debugging, refactoring, or testing existing BootUI Java code, including framework-neutral engine logic, Spring MVC and WebFlux adapters, Quarkus runtime…

    314 GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Go

    inference-gateway/inference-gateway

    Idiomatic Go - package and interface design, error wrapping, table-driven tests, generics, the modern standard library (slices/maps/cmp/errors.Join), current syntax, and logging discipline.

    214 GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed

More from dtprj/dongting

  • Build And Test

    dtprj/dongting

    Build/test commands, and unit testing key points including BugLog handling guidelines.

    208 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Run

    dtprj/dongting

    Used to start or stop the project's server in development mode via scripts, or run DtAdmin for test cluster O&M operations, or run benchmarks.

    208 GitHub stars~618 tokensUpdated today
    Auto-check passed

Categories

Questions about Idea MCP

What does Idea MCP do?

IntelliJ IDEA MCP for Java code analysis, testing, refactoring, and project navigation. Idea MCP is an agent skill from dtprj/dongting. IntelliJ IDEA MCP for Java code analysis, testing, refactoring, and project navigation.

When should I use Idea MCP?

Idea MCP fits situations like: checking Java compilation errors (getfileproblems is more accurate than LSP for multi-module Maven); performing rename refactoring across the codebase; finding files in the project.

How do I install Idea MCP in Claude Code?

Run `npx skills add dtprj/dongting --skill idea-mcp -a claude-code`. Or copy the skill folder (.agents/skills/idea-mcp in dtprj/dongting) into .claude/skills/idea-mcp in your project. Claude Code loads it when a task matches its description.

How do I install Idea MCP in Codex?

Run `npx skills add dtprj/dongting --skill idea-mcp -a codex`. Or copy the skill folder (.agents/skills/idea-mcp in dtprj/dongting) into .agents/skills/idea-mcp in your project. Codex loads it when a task matches its description.

Can I use Idea MCP in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dtprj/dongting --skill idea-mcp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/idea-mcp, .gemini/skills/idea-mcp, .github/skills/idea-mcp and .opencode/skills/idea-mcp in your project.

What does Idea MCP need to run?

Going by SKILL.md and its folder, Idea MCP needs the command-line tools its instructions call (mvn).

Does Idea MCP access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Idea MCP safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Idea MCP use?

Idea MCP is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Idea MCP use?

About 698 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Idea MCP?

Skills that share tags, products or a category with Idea MCP: Java Debug (Amplicode/spring-skills, 128 stars), Edt MCP Architecture (DitriXNew/EDT-MCP, 296 stars), Amplicode Install (Amplicode/spring-skills, 128 stars) and Dto Creator (Amplicode/spring-skills, 128 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Idea MCP?

dtprj (a GitHub organization) maintains it in dtprj/dongting, which has 208 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 10, 2026.

Source: dtprj/dongting on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.