Skip to main content
Glama

decompile_class

Decompile Java class source code from running JVM processes to analyze and understand application behavior during runtime debugging.

Instructions

反编译指定类的源码

        Args:
            pid (str): 进程ID,使用字符串形式(如:"12345")
            class_pattern (str): 类名表达式匹配
            method_pattern (Optional[str]): 可选的方法名表达式

        Returns:
            Dict: 包含反编译源码的字典(暂未实现)
        

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNo
class_patternNo
method_patternNo

Implementation Reference

  • Handler function for the 'decompile_class' tool, registered via @self.mcp.tool() decorator. Defines input parameters (pid, class_pattern, method_pattern) and returns a stub error response indicating it is not yet implemented.
    @self.mcp.tool()
    def decompile_class(pid: str = "", 
                       class_pattern: str = "", 
                       method_pattern: Optional[str] = None) -> Dict:
        """反编译指定类的源码
    
        Args:
            pid (str): 进程ID,使用字符串形式(如:"12345")
            class_pattern (str): 类名表达式匹配
            method_pattern (Optional[str]): 可选的方法名表达式
    
        Returns:
            Dict: 包含反编译源码的字典(暂未实现)
        """
        return {"success": False, "error": "未实现/不支持"}
  • Registration of the 'decompile_class' tool using the FastMCP decorator.
    @self.mcp.tool()
  • Input/output schema defined in the function docstring, describing parameters and return type.
    """反编译指定类的源码
    
    Args:
        pid (str): 进程ID,使用字符串形式(如:"12345")
        class_pattern (str): 类名表达式匹配
        method_pattern (Optional[str]): 可选的方法名表达式
    
    Returns:
        Dict: 包含反编译源码的字典(暂未实现)
    """

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xzq-xu/jvm-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server