Skip to main content
Glama
lamemind

Coder Toolbox MCP Server

by lamemind

Coder Toolbox MCP 服务器

一个实用工具包,旨在增强 Claude 和代码之间的交互,为代码分析、操作和测试工作流程提供无缝集成工具。

特征

实施的

  • 测试执行日志:检索和分析测试执行日志和结果

  • 类操作:

    • 位置:使用包过滤在项目源代码中查找 Java 类

    • 创建:创建具有适当包结构的新 Java 类

    • 内容管理:添加、替换或删除现有 Java 类中的内容

    • 方法管理:在 Java 类中添加或删除方法

    • 构造函数管理:在 Java 类中添加或删除构造函数

Related MCP server: Java Class Analyzer MCP Server

工具

获取测试执行日志

从日志目录中检索测试执行日志

定位_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 文件。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    39
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Enables AI tools to analyze Java dependencies by scanning Maven projects, decompiling JAR files, and extracting detailed class information including methods, fields, and inheritance relationships. Solves the problem of AI hallucinations when generating code that calls external dependencies by providing accurate class structures through decompilation.
    3
    12 npm
    43
    Apache 2.0
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to perform high-performance code search and analysis across multiple languages using symbol indexing, regex text search, and structural AST pattern matching. It also provides tools for technology stack detection and dependency analysis with persistent caching for optimized performance.
    8
    -