Class CategoryMcpTool

java.lang.Object
io.meeds.mcp.server.tool.CategoryMcpTool
All Implemented Interfaces:
io.meeds.mcp.server.plugin.McpToolPlugin

@Service public class CategoryMcpTool extends Object implements io.meeds.mcp.server.plugin.McpToolPlugin
  • Constructor Details

    • CategoryMcpTool

      public CategoryMcpTool()
  • Method Details

    • getContentTypes

      public List<String> getContentTypes()
      List the content types that support categories - the values to pass as content_type to get_categories_of_content, add_content_to_category and remove_content_from_category. Dynamically reflects the registered category plugins. Note: "email" content is categorized through its own dedicated list_email_categories / add_email_category / remove_email_category tools (the agent works with the IMAP mail id, not the internal id these generic tools expect), so prefer those for email.
    • getCategoryTree

      public CategoryTreeModel getCategoryTree()
    • getCategoriesOfContent

      public List<CategoryModel> getCategoriesOfContent(String contentType, String contentId)
    • removeContentFromCategory

      public void removeContentFromCategory(long categoryId, String contentType, String contentId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • addContentToCategory

      public void addContentToCategory(long categoryId, String contentType, String contentId)