Provides refactoring tools (rename, move, delete, find usages) for JetBrains IDEs via MCP
This JetBrains plugin MCP server provides 7 refactoring tools with verb-noun naming (rename_element, move_element, delete_element, etc.), which is good. However, the implementation exhibits significant quality gaps across descriptions, parameter documentation, schemas, and error handling. Descriptions are present but lack depth, they do not explain WHEN to use each tool vs. alternatives, what the LLM should expect in return, or the consequences of destructive operations. Parameter schemas are visible and include type information, but descriptions are minimal and do not convey constraints or format expectations. The 'codeToSymbol' parameter is particularly problematic: its description relies on examples rather than precise format rules, and the expected parsing behavior is ambiguous. Output schemas are not documented, callers cannot predict the structure of responses. Error handling is absent from the specification. Destructive tools (delete_element, delete_file) lack confirmation or dry-run mechanisms. The tool definitions appear to be registered in McpServer.kt, but the source excerpt does not show the actual registration code, making it difficult to verify schemas and descriptions in the registration layer. Overall, this server is functional but would not pass code review by a principal tool engineer due to incomplete descriptions, missing output documentation, and lack of error guidance.
Deletes an element (variable, function, class, file, etc.) identified by its position.
Deletes a file.
Finds all usages of an element (symbol) identified by its position.
Moves an element (likely a file or class) identified by its position to a different directory.
Moves a file to a different directory.
Renames an element (variable, function, class, etc.) identified by its position.
Renames a file.
Destructive tools (delete_element, delete_file) lack confirmation/dry-run mechanism. No guidance that these operations are irreversible or require user approval.
Output schemas are not documented. Callers cannot determine what fields to expect from rename_element, move_element, find_usages, or other tools. This forces LLMs to guess the response structure and breaks tool composition.
codeToSymbol parameter relies on examples and verbose description instead of precise format rules. The parameter description says 'The code from the start of the file up to the symbol to rename' but does not specify: Must it include imports? Must newlines be preserved? Can trailing whitespace differ? This ambiguity invites LLM misuse.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 62 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 27 | - | v1 |
No error handling guidance. If a tool fails (symbol not found, file not writable, refactoring produces conflicts), there is no documented recovery path or error classification (retryable vs. user-fixable vs. fatal). LLMs will not know how to respond.
Descriptions for destructive tools do not state that the operations are irreversible or have side effects. The description for delete_element is 'Deletes an element (variable, function, class, file, etc.) identified by its position.', it does not explain consequences, scope of deletion, or whether dependent code will break.
Parameter descriptions for filePath, targetDirectoryPath, and destDirectoryPath do not specify format constraints (absolute vs. relative paths, OS-specific path conventions, trailing slashes). LLMs may pass invalid paths.
No guidance on when to use move_element vs. move_file, or rename_element vs. rename_file. Descriptions do not clarify the distinction, inviting LLM confusion and wrong tool selection.
find_usages description does not explain the format of returned results. Will it return line/column numbers? File paths? Snippet context? Full file content? This breaks tool chaining and forces LLMs to guess.
No idempotency guarantees. If rename_element is called twice with the same parameters, will it succeed, fail, or rename the already-renamed element? Agents retry on ambiguous failures, non-idempotent tools risk duplicate side effects.