eclipse-edit
Edit files in Eclipse projects using MCP tools. Use this when modifying code in Eclipse workspace projects — it keeps Eclipse editors in sync, triggers incremental compilation, and provides undo via local history.
pinned to #170d9bcupdated 2 weeks ago
Ask your AI client: “install skills/eclipse-edit”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install skills/eclipse-editmetahub onboarded this repo on the author's behalf.
If you own github.com/gradusnikov/eclipse-chatgpt-plugin on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
158
Last commit
2 weeks ago
Latest release
published
- #eclipse
- #eclipse-plugin
- #mcp
- #mcp-client
- #mcp-server
- #plugin
About this skill
Pulled from SKILL.md at publish time.
Edit files in Eclipse workspace projects using the eclipse-coder MCP tools. These tools keep Eclipse editors synchronized, trigger incremental compilation, and maintain local history for undo.
Allowed tools
- mcp__eclipse-coder__applyPatch
- mcp__eclipse-coder__replaceString
- mcp__eclipse-coder__insertIntoFile
- mcp__eclipse-coder__createFile
- mcp__eclipse-coder__deleteFile
- mcp__eclipse-coder__deleteLinesInFile
- mcp__eclipse-coder__replaceFileContent
- mcp__eclipse-coder__formatFile
- mcp__eclipse-coder__organizeImports
- mcp__eclipse-coder__organizeImportsInPackage
- mcp__eclipse-coder__undoEdit
- mcp__eclipse-coder__renameFile
- mcp__eclipse-coder__createDirectories
- mcp__eclipse-coder__moveResource
- mcp__eclipse-coder__refactorRenameJavaType
- mcp__eclipse-coder__refactorMoveJavaType
- mcp__eclipse-coder__refactorRenamePackage
- mcp__eclipse-ide__getCompilationErrors
- mcp__eclipse-ide__getProjectLayout
- mcp__eclipse-ide__readProjectResource
- mcp__eclipse-ide__getClassOutline
- mcp__eclipse-ide__getMethodSource
- mcp__eclipse-ide__getFilteredSource
- mcp__eclipse-ide__getSource
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.170d9bc· 2 weeks ago
Kind-specific
31Skill: SKILL.md present
found at .claude/skills/eclipse-edit/SKILL.md · frontmatter source: SKILL.md
Skill: body content present
393 words · 2,854 chars · 4 sections
Skill: triggers declaredwarn
No `trigger` phrases in SKILL.md frontmatter
Add `trigger:` lines so Claude knows when to activate this skill — e.g. `when building MCP servers` or `for diagram creation`.
Skill: allowed-tools scope
24 declared: mcp__eclipse-coder__applyPatch, mcp__eclipse-coder__replaceString, mcp__eclipse-coder__insertIntoFile, mcp__eclipse-coder__createFile, mcp__eclipse-coder__deleteFile (+19)
Release history
1- releasecurrent170d9bcwarn2 weeks ago
Contents
Eclipse Code Editing
Edit files in Eclipse workspace projects using the eclipse-coder MCP tools. These tools keep Eclipse editors synchronized, trigger incremental compilation, and maintain local history for undo.
Available Editing Tools
- applyPatch — Apply a unified diff patch. Supports multiple hunks with fuzzy context matching. Best for multi-location edits. Set
showDialog=trueto let the user review via Eclipse's Apply Patch wizard. - replaceString — Find and replace exact string. Good for single targeted changes. Optionally scoped to a line range.
- insertIntoFile — Insert content before a specific line (1-based).
- createFile — Create a new file and open it in the editor.
- deleteFile — Delete a file from the project.
- deleteLinesInFile — Delete a range of lines (1-based, inclusive).
- replaceFileContent — Replace entire file content.
- formatFile — Format a Java file using Eclipse's formatter (Ctrl+Shift+F).
- organizeImports — Organize imports in a Java file (Ctrl+Shift+O).
- organizeImportsInPackage — Organize imports across all files in a package.
- undoEdit — Restore a file from Eclipse's local history.
Refactoring Tools
For Java files, prefer refactoring tools over manual rename/move — they update all references:
- refactorRenameJavaType — Rename class/interface/enum with workspace-wide reference updates.
- refactorMoveJavaType — Move type to different package with reference updates.
- refactorRenamePackage — Rename package with all declaration and reference updates.
- moveResource — Move file/folder (no reference updates — use refactorMoveJavaType for Java).
Workflow
- Read efficiently — Don't dump entire files:
getClassOutline→ understand class structure (~30 lines vs ~300)getMethodSource→ read only the methods you need to editgetFilteredSource→ full source with non-relevant methods collapsedreadProjectResourcewithexcludeImports=true→ skip import noise- Reserve
getSource/ fullreadProjectResourcefor small files
- Edit using the appropriate tool (see above)
- Verify with
getCompilationErrorsto check for problems - Clean up with
organizeImportsif new types were referenced,formatFilefor conventions
Tips
- For multi-hunk changes, prefer
applyPatchover multiplereplaceStringcalls replaceStringrequires exact whitespace matching — if it fails, tryapplyPatchinstead- All tools require
projectName(Eclipse project name) andfilePath(relative to project root, without project name) - Use
getProjectLayoutwithscopePathandmaxDepthto navigate large projects - Line numbers from
getClassOutline,getMethodSource, andgetFilteredSourceare always accurate forreplaceStringline ranges andapplyPatchhunks
Reviews
No reviews yet. Be the first.
Related
Gpt Researcher
An autonomous agent that conducts deep research on any data using any LLM providers
Verification Before Completion
Evidence before assertions, always
Writing Plans
Turn specs into phased implementation plans
mh install skills/eclipse-edit