Enum Class ServerMode

java.lang.Object
java.lang.Enum<ServerMode>
com.github.thought2code.mcp.annotated.enums.ServerMode
All Implemented Interfaces:
Serializable, Comparable<ServerMode>, Constable

public enum ServerMode extends Enum<ServerMode>
This enum represents the mode of MCP (Model Context Protocol) server.

It can be either STDIO, SSE, or STREAMABLE.

Author:
codeboyzhou
  • Enum Constant Details

    • STDIO

      public static final ServerMode STDIO
      The MCP server runs in STDIO mode.
    • SSE

      public static final ServerMode SSE
      The MCP server runs in http SSE mode.
    • STREAMABLE

      public static final ServerMode STREAMABLE
      The MCP server runs in STREAMABLE http mode.
  • Method Details

    • values

      public static ServerMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ServerMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null