Open-source MCP server gives coding agents a real Java refactoring engine, halving rename time

ContributionNo9316 · reddit · 2026-10-19

A developer open-sourced Dukehoff MCP for Java (Apache 2.0), which runs the NetBeans Java engine headless (javac-based index, refactoring engine, Jackspot rewrite rules) as an MCP server for any MCP client: Claude Code, Codex, Copilot, Cursor, and more.

Capabilities:

Measured results: renaming one overload of ClassUtils.getShortClassName in Apache Commons Lang took 46s–1:07 with raw Claude Code using grep/sed/Maven vs 18–25s with the MCP server. A refactor on NetBeans' own codebase dropped from 51 turns to 9, with 46% lower cost over the task set. The author is candid about limits: for everyday fixes on familiar code, agents grep just fine and rarely call these tools — the payoff is in multi-file refactorings.

Original post →

More from coding & agent

coding & agent channel →