CA

cqfn/aibolit-mcp-server

Developer tools公式
27 stars 9 forks 品質 49 トレンド 25MIT

MCP Server for Aibolit Java Static Analyzer: Helping Your AI Agent Identify Hotspots for Refactoring

概要

If you use AI agents, such as [Claude Code], [Cursor], or [Windsurf], for code refactoring, you may enjoy using this [MCP] server. Your AI agent, when you ask it to "make code better," may wonder what exactly needs to be improved. Sadly, it may often overlook important problems. AI agents, by design, pay more attention to cosmetic issues, which are "low-hanging fruits" for them. This [MCP] server will give your agent a hint: what is the in the code. Then, the agent will refactor it and fix the issue. First, install [Node], [Npm], [Python], [Pip], and [aibolit]: Then, add this [MCP] server to [Claude Code] (or simply edit ~/claude.json, but it's not recommended): Then, restart [Claude Code] and ask it something along these lines: "Find the most critical design issue in my code base and fix it." To test this project, simply run the following commands (you'll need [Node] 18+, [Npm], and [GNU make] installed): If everything builds correctly after your changes, submit a pull request.

README

MCP Server for Aibolit, Java Code Analyzer

If you use AI agents, such as Claude Code, Cursor, or Windsurf, for code refactoring, you may enjoy using this MCP server. Your AI agent, when you ask it to “make code better,” may wonder what exactly needs to be improved. Sadly, it may often overlook important problems. AI agents, by design, pay more attention to cosmetic issues, which are “low-hanging fruits” for them. This MCP server will give your agent a hint: what is the most critical design issue in the code. Then, the agent will refactor it and fix the issue.

First, install Node, Npm, Python, Pip, and aibolit:

aibolit --version

Then, add this MCP server to Claude Code (or simply edit ~/claude.json, but it’s not recommended):

claude mcp add aibolit npx [email protected]

Then, restart Claude Code and ask it something along these lines: “Find the most critical design issue in my code base and fix it.”

How to Contribute

To test this project, simply run the following commands (you’ll need Node 18+, Npm, and GNU make installed):

npm install
make

If everything builds correctly after your changes, submit a pull request.

View this README on GitHub

インストール

This server does not publish a one-line install command.

Open the repository installation guide