Aibolit 的 MCP 服务器,Java 代码分析器
如果您使用 AI 代理(例如Claude Code 、 Cursor或Windsurf )进行代码重构,您可能会喜欢这款MCP服务器。当您要求您的 AI 代理“改进代码”时,它可能会思考到底需要改进什么。遗憾的是,它经常会忽略一些重要的问题。AI 代理的设计使其更关注外观问题,而这些对它们来说是“唾手可得的”。这款MCP服务器会提示您的代理:代码中最关键的设计问题是什么。然后,代理会对其进行重构并修复该问题。
首先,安装Node 、 Npm 、 Python 、 Pip和aibolit :
然后,将此MCP服务器添加到Claude 代码(或者简单地编辑~/claude.json
,但不推荐这样做):
然后,重新启动Claude Code并询问它类似的问题:“在我的代码库中找到最关键的设计问题并修复它。”
如何贡献
要测试此项目,只需运行以下命令(您需要安装Node 18+、 Npm和GNU make ):
如果更改后一切都正确构建,请提交拉取请求。
local-only server
The server can only run on the client's local machine because it depends on local resources.
模型上下文协议 (MCP) 服务器可帮助 AI 编码助手识别代码中的关键设计问题,而不是在被要求改进代码时仅仅关注表面问题。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol (MCP) server that wraps the dbt CLI tool, enabling AI coding agents to interact with dbt projects through standardized MCP tools. Developed by Mammoth Growth.Last updated -8PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that enhances AI-generated code quality through comprehensive analysis across 10 critical dimensions, helping identify issues before they become problems.Last updated -3PythonApache 2.0
- -securityAlicense-qualityA Model Context Protocol (MCP) server that allows AI models to safely access and interact with local file systems, enabling reading file contents, listing directories, and retrieving file metadata.Last updated -471JavaScriptMIT License
- AsecurityAlicenseAqualityA foundation for building custom local Model Context Protocol (MCP) servers that provide tools accessible to AI assistants like Cursor or Claude Desktop.Last updated -19TypeScriptMIT License