Class SyncMcpResourceProvider

java.lang.Object
org.springframework.ai.mcp.annotation.provider.resource.SyncMcpResourceProvider

public class SyncMcpResourceProvider extends Object
Author:
Christian Tzolov, Alexandros Pappas, Vadzim Shurmialiou, Craig Walls
  • Constructor Details

    • SyncMcpResourceProvider

      public SyncMcpResourceProvider(List<Object> resourceObjects)
  • Method Details

    • getResourceSpecifications

      public List<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification> getResourceSpecifications()
    • getResourceTemplateSpecifications

      public List<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceTemplateSpecification> getResourceTemplateSpecifications()
    • doGetClassMethods

      protected Method[] doGetClassMethods(Object bean)
      Returns the methods of the given bean class.
      Parameters:
      bean - the bean instance
      Returns:
      the methods of the bean class