Class McpServerInfo

java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo
Direct Known Subclasses:
McpSseServerInfo, McpStreamableServerInfo

public class McpServerInfo extends Object
This class is used to define the common configuration for the MCP server.
Author:
codeboyzhou
  • Constructor Details

    • McpServerInfo

      protected McpServerInfo(McpServerInfo.Builder<?> builder)
      Creates a new instance of McpServerInfo with the specified builder.
      Parameters:
      builder - the builder to use
  • Method Details

    • builder

      public static McpServerInfo.Builder<?> builder()
      Returns a new instance of Builder to create a McpServerInfo instance.
      Returns:
      a new instance of Builder
    • name

      public String name()
      Returns the name of the MCP server.
      Returns:
      the name of the MCP server
    • version

      public String version()
      Returns the version of the MCP server.
      Returns:
      the version of the MCP server
    • instructions

      public String instructions()
      Returns the instructions of the MCP server.
      Returns:
      the instructions of the MCP server
    • requestTimeout

      public Duration requestTimeout()
      Returns the request timeout of the MCP server.
      Returns:
      the request timeout of the MCP server
    • capabilities

      public McpServerCapabilities capabilities()
      Returns the capabilities of the MCP server.
      Returns:
      the capabilities of the MCP server
    • changeNotification

      public McpServerChangeNotification changeNotification()
      Returns the change notification of the MCP server.
      Returns:
      the change notification of the MCP server