You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2026/08/02 11:11:07 UTC
(shardingsphere) branch master updated: Remove unused MCP workflow status and metadata object types (#39312)
This is an automated email from the ASF dual-hosted git repository.
terrymanu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new c4049aaa6cf Remove unused MCP workflow status and metadata object types (#39312)
c4049aaa6cf is described below
commit c4049aaa6cf0cd86d94d9d016c5c64aa863e0f92
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun Aug 2 19:10:59 2026 +0800
Remove unused MCP workflow status and metadata object types (#39312)
* Remove unused MCP workflow status and metadata object types
* Remove unused MCP workflow status and metadata object types
* Remove unused MCP workflow status and metadata object types
---
.../mcp/core/tool/handler/metadata/MetadataSearchCollector.java | 5 +++--
.../core/tool/handler/metadata/MetadataSearchResourceUriFactory.java | 3 +--
.../org/apache/shardingsphere/test/e2e/mcp/llm/LLMHttpE2ETest.java | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/tool/handler/metadata/MetadataSearchCollector.java b/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/tool/handler/metadata/MetadataSearchCollector.java
index be60a4201c1..1b53c7dfe0a 100644
--- a/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/tool/handler/metadata/MetadataSearchCollector.java
+++ b/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/tool/handler/metadata/MetadataSearchCollector.java
@@ -73,7 +73,7 @@ final class MetadataSearchCollector {
case SCHEMA, TABLE, VIEW, COLUMN, INDEX, SEQUENCE -> metadataQueryFacade.isSupportedMetadataObjectType(databaseName, objectType)
? querySearchHits(databaseName, objectType, schemaName)
: List.of();
- case MATERIALIZED_VIEW, ROUTINE, TRIGGER, EVENT, SYNONYM, DATABASE_SPECIFIC -> List.of();
+ default -> List.of();
};
}
@@ -89,7 +89,8 @@ final class MetadataSearchCollector {
case COLUMN -> queryColumnSearchHits(databaseName, schemaName);
case INDEX -> queryIndexSearchHits(databaseName, schemaName);
case SEQUENCE -> querySequenceSearchHits(databaseName, schemaName);
- case DATABASE, STORAGE_UNIT, MATERIALIZED_VIEW, ROUTINE, TRIGGER, EVENT, SYNONYM, DATABASE_SPECIFIC -> List.of();
+ case DATABASE, STORAGE_UNIT -> List.of();
+ default -> List.of();
};
}
diff --git a/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/tool/handler/metadata/MetadataSearchResourceUriFactory.java b/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/tool/handler/metadata/MetadataSearchResourceUriFactory.java
index 3175a3927e6..7c3af7f9098 100644
--- a/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/tool/handler/metadata/MetadataSearchResourceUriFactory.java
+++ b/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/tool/handler/metadata/MetadataSearchResourceUriFactory.java
@@ -41,8 +41,7 @@ final class MetadataSearchResourceUriFactory {
case INDEX -> createIndexResourceUris(database, schema, table, name);
case STORAGE_UNIT -> createStorageUnitResourceUris(database, name);
case SEQUENCE -> createSequenceResourceUris(database, schema, name);
- case MATERIALIZED_VIEW, ROUTINE, TRIGGER, EVENT, SYNONYM, DATABASE_SPECIFIC ->
- notSafe("Metadata hit object type is not backed by a descriptor resource pattern.");
+ default -> notSafe("Metadata hit object type is not backed by a descriptor resource pattern.");
};
}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/llm/LLMHttpE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/llm/LLMHttpE2ETest.java
index 091685efb88..049f5a869bd 100644
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/llm/LLMHttpE2ETest.java
+++ b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/llm/LLMHttpE2ETest.java
@@ -69,7 +69,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class LLMHttpE2ETest extends AbstractConfigBackedRuntimeE2ETest {
- private static final int MAX_TURNS = 4;
+ private static final int MAX_TURNS = 6;
private static final String DATABASE_NAME = "logic_db";