You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2026/01/14 13:45:14 UTC

(sling-whiteboard) branch master updated: chore(mcp): remove references to specific tools

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e2abe26 chore(mcp): remove references to specific tools
3e2abe26 is described below

commit 3e2abe269a8804d138aaa699de8357dbec1a398c
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Jan 14 14:44:55 2026 +0100

    chore(mcp): remove references to specific tools
---
 .../apache/sling/mcp/server/impl/contribs/LogToolContribution.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mcp-server-contributions/src/main/java/org/apache/sling/mcp/server/impl/contribs/LogToolContribution.java b/mcp-server-contributions/src/main/java/org/apache/sling/mcp/server/impl/contribs/LogToolContribution.java
index b08ff8dc..2cdc8ab9 100644
--- a/mcp-server-contributions/src/main/java/org/apache/sling/mcp/server/impl/contribs/LogToolContribution.java
+++ b/mcp-server-contributions/src/main/java/org/apache/sling/mcp/server/impl/contribs/LogToolContribution.java
@@ -43,7 +43,7 @@ import org.osgi.service.log.LogReaderService;
 import org.osgi.service.log.LogService;
 
 /**
- * MCP Tool that provides access to AEM/OSGi logs with filtering capabilities.
+ * MCP Tool that provides access to logs with filtering capabilities.
  * Allows filtering by regex pattern, log level, and maximum number of entries.
  */
 @Component
@@ -88,7 +88,7 @@ public class LogToolContribution implements McpServerContribution {
         return List.of(new SyncToolSpecification(
                 Tool.builder()
                         .name("aem-logs")
-                        .description("Retrieve AEM/OSGi logs with optional filtering. "
+                        .description("Retrieve logs with optional filtering. "
                                 + "Supports filtering by regex pattern, log level (ERROR, WARN, INFO, DEBUG, TRACE), "
                                 + "and maximum number of entries. Returns most recent logs first.")
                         .inputSchema(jsonMapper, schema)
@@ -225,7 +225,7 @@ public class LogToolContribution implements McpServerContribution {
     private String formatLogs(List<LogEntry> logs, String regexPattern, int minLogLevel, int maxEntries) {
         StringBuilder result = new StringBuilder();
 
-        result.append("=== AEM Log Entries ===\n\n");
+        result.append("=== Log Entries ===\n\n");
         result.append("Filter Settings:\n");
         result.append("  - Log Level: ").append(getLogLevelName(minLogLevel)).append(" and higher severity\n");
         result.append("  - Regex Pattern: ")