Coder Toolbox MCP 服务器
一个实用工具包,旨在增强 Claude 和代码之间的交互,为代码分析、操作和测试工作流程提供无缝集成工具。
特征
实施的
测试执行日志:检索和分析测试执行日志和结果
类操作:
位置:使用包过滤在项目源代码中查找 Java 类
创建:创建具有适当包结构的新 Java 类
内容管理:添加、替换或删除现有 Java 类中的内容
方法管理:在 Java 类中添加或删除方法
构造函数管理:在 Java 类中添加或删除构造函数
工具
获取测试执行日志
从日志目录中检索测试执行日志
定位_java_class
参数:
className(字符串):要查找的 Java 类的名称(区分大小写)sourceType(字符串,可选):限制搜索的源类型(“源”或“测试”)packagePath(字符串,可选):用于限制搜索的包路径(例如“com.myself.myproject”)。如果指定,则还必须指定 sourceType
返回:带有搜索结果的 JSON 对象,包括文件路径和内容(如果找到)
创建java类
参数:
className(字符串):要创建的 Java 类的名称(区分大小写)sourceType(字符串):创建文件的源类型(“source”或“test”)packagePath(字符串):创建类的包路径(例如“com.myself.myproject”)
返回:包含文件路径或错误消息的创建结果的 JSON 对象
class_add_body
参数:
来自 locate_java_class 的参数,加上:
classBody(字符串):要添加的类主体内容(字段、方法、构造函数等)
返回:包含文件路径的修改结果的JSON对象
类_替换_主体
参数:
来自 locate_java_class 的参数,加上:
edits:编辑操作数组,每个操作包含:oldText(字符串):要替换的文本newText(字符串):新文本
dryRun(布尔值,可选):预览更改而不应用它们
返回:显示所做的更改或预览的差异
类_删除_主体
参数:
来自 locate_java_class 的参数,加上:
targetContent(字符串):要从类主体中删除的内容dryRun(布尔值,可选):预览更改而不应用它们
返回:显示所做的更改或预览的差异
发展路线图
[x] 测试执行日志检索
[x] 课程定位与导航
[x] 类文件创建
[x] 添加内容到课程
[x] 替换课堂内容
[x] 从课程中删除内容
[ ] 添加类级别注解
[ ] 添加接口实现
[ ] 添加类继承
[ ] 组织导入
[ ] 格式代码
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
一个实用工具包,通过为 Java 代码分析、操作和测试工作流程提供无缝工具来增强 Claude 的代码交互能力。
Related Resources
Related MCP Servers
- -security-license-qualityFacilitates integration with the Cursor code editor by enabling real-time code indexing, analysis, and bi-directional communication with Claude, supporting concurrent sessions and automatic reconnection.Last updated -039MIT License
- -security-license-qualityA comprehensive code analysis and management tool that integrates with Claude Desktop to analyze code at project and file levels, helping adapt changes to projects intelligently.Last updated -39MIT License
- Asecurity-licenseAqualityA specialized server that provides advanced TypeScript code manipulation and analysis capabilities, enabling refactoring, navigation, diagnostics, and module analysis through Claude.Last updated -117,129412MIT License
- -security-license-qualityTransforms Claude from a code generator into a programming partner capable of testing, debugging, and optimizing code automatically through a secure execution environment.Last updated -