Package io.meeds.mcp.server.tool
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
-
Field Summary
Fields inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin
DEFAULT_LIMIT, DEFAULT_OFFSET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContentToCategory(long categoryId, String contentType, String contentId) getCategoriesOfContent(String contentType, String contentId) 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.voidremoveContentFromCategory(long categoryId, String contentType, String contentId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin
getCurrentUserAclIdentity, getCurrentUserLocale, getCurrentUserLocale, getCurrentUserName, getLocale
-
Constructor Details
-
CategoryMcpTool
public CategoryMcpTool()
-
-
Method Details
-
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
-
getCategoriesOfContent
-
removeContentFromCategory
public void removeContentFromCategory(long categoryId, String contentType, String contentId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
addContentToCategory
-