Package io.modelcontextprotocol.server
Class TestUtil
java.lang.Object
io.modelcontextprotocol.server.TestUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic intFinds an available port on the local machine.
-
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
-