Class JenkinsMcpContext

java.lang.Object
io.jenkins.plugins.mcp.server.tool.JenkinsMcpContext

public class JenkinsMcpContext extends Object
  • Constructor Details

    • JenkinsMcpContext

      public JenkinsMcpContext()
  • Method Details

    • get

      public static JenkinsMcpContext get()
      Gets the JenkinsMcpContext for the current thread. Creates a new one if it doesn't exist.
      Returns:
      The thread-local JenkinsMcpContext instance.
    • clear

      public static void clear()
      Clears the JenkinsMcpContext for the current thread to prevent memory leaks.