Class TestUtil

java.lang.Object
io.modelcontextprotocol.server.TestUtil

public class TestUtil extends Object
  • Method Details

    • findAvailablePort

      public static int findAvailablePort()
      Finds an available port on the local machine.
      Returns:
      an available port number
      Throws:
      IllegalStateException - if no available port can be found