Class McpServerInfo

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

@Deprecated(since="0.11.0", forRemoval=true) public class McpServerInfo extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
This class is used to define the common configuration for the MCP server.
Author:
codeboyzhou
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new instance of McpServerInfo with the specified builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a new instance of Builder to create a McpServerInfo instance.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the capabilities of the MCP server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the change notification of the MCP server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the instructions of the MCP server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the name of the MCP server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the request timeout of the MCP server.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the version of the MCP server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • McpServerInfo

      protected McpServerInfo(McpServerInfo.Builder<?> builder)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new instance of McpServerInfo with the specified builder.
      Parameters:
      builder - the builder to use
  • Method Details

    • builder

      public static McpServerInfo.Builder<?> builder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a new instance of Builder to create a McpServerInfo instance.
      Returns:
      a new instance of Builder
    • name

      public String name()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the name of the MCP server.
      Returns:
      the name of the MCP server
    • version

      public String version()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the version of the MCP server.
      Returns:
      the version of the MCP server
    • instructions

      public String instructions()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the instructions of the MCP server.
      Returns:
      the instructions of the MCP server
    • requestTimeout

      public Duration requestTimeout()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the request timeout of the MCP server.
      Returns:
      the request timeout of the MCP server
    • capabilities

      public McpServerCapabilities capabilities()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the capabilities of the MCP server.
      Returns:
      the capabilities of the MCP server
    • changeNotification

      public McpServerChangeNotification changeNotification()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the change notification of the MCP server.
      Returns:
      the change notification of the MCP server