refactor_java_monolithLABSCO SUMMARY
An agent can survey a Java monolith before anyone commits to splitting it.
What you get here is the discovery half — structure and classes, read from disk on demand. The transformations the README advertises alongside it (AST domain-boundary analysis, Spring Boot scaffolding, dependency validation, PR creation) belong to the paid Enterprise edition and are not in this one.
What it is
The community edition of a Java refactoring service. It exposes one call that scans a local Java package directory and reports the monolithic project structure and classes it finds there.
What you get
- A scan of a local Java package directory, from an absolute path you supply
- The monolith's project structure and the classes inside it, read back as discovery output
Requirements
Python with the mcp package installed — no other dependencies — run over stdio from your client config. The path you pass must be an absolute path to the source root, and the code is read where it sits, on the machine running the server.
Setup effort
Build from source — git clone https://github.com/rohitdas-ai/legacy-java-ast-refactor-free.git
USE CASES
Getting a first map of a codebase nobody remembers
Give it the source root and read back what packages and classes are actually there, instead of trusting a diagram from three years ago.
Deciding whether a split is worth scoping at all
Look at the size and spread of the class structure first, so the estimate rests on what the repository holds rather than on how it is described.
Handing an agent the inventory before it plans a migration
Run the scan and let the class listing be the context the model plans against, so its proposal names real packages.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation. refactor_java_monolith only starts analysis; it does not run deep AST domain boundary analysis (Enterprise only), rewrite code, scaffold Spring Boot 3.4 or validate Maven dependencies.
Where it runs
Both documented clients run the server on your machine.
INSTALLATION
Connect your client
You clone this one yourself.
Server setup
git clone https://github.com/rohitdas-ai/legacy-java-ast-refactor-free.git
cd legacy-java-ast-refactor-free
pip install mcp
python server.pyMCP Clients
Claude Desktop, Cursor
{
"mcpServers": {
"legacy-java-refactor-free": {
"command": "python",
"args": [
"<YOUR_PATH_TO_LEGACY_JAVA_AST_REFACTOR>/server.py"
]
}
}
}