Interface McpServerComponent<T>

Type Parameters:
T - the type of the component
All Known Implementing Classes:
AbstractMcpServerComponent, McpServerCompletion, McpServerPrompt, McpServerResource, McpServerTool

public interface McpServerComponent<T>
This interface represents an MCP server component (resource/prompt/tool) that is responsible for creating instances of a specific type T for a given method.
Author:
codeboyzhou
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Method method)
    Creates an instance of the component for the specified method.
  • Method Details

    • create

      T create(Method method)
      Creates an instance of the component for the specified method.
      Parameters:
      method - the method for which to create an instance
      Returns:
      an instance of the component for the specified method