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 38c355267b0 Align MCP LLM invalid resource recovery scenario (#39277)
38c355267b0 is described below
commit 38c355267b0ea195ae642e7feef8de36f3855c8c
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Jul 30 16:59:33 2026 +0800
Align MCP LLM invalid resource recovery scenario (#39277)
Require the model to follow the first safe top-level next_action resource
URI instead of guessing a recovery path.
---
.../org/apache/shardingsphere/test/e2e/mcp/llm/LLMHttpE2ETest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 5eef6b0b869..de9aa1d9393 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
@@ -146,8 +146,8 @@ class LLMHttpE2ETest extends
AbstractConfigBackedRuntimeE2ETest {
void assertInvalidResourceRecovery() throws IOException {
runScenario(new Scenario(
"invalid-resource-recovery",
- "A user pasted stale resource `" + STALE_TABLE_RESOURCE_URI +
"`. Inspect that resource, recover using live MCP context without assuming the
correct URI, "
- + "and report how many rows are currently in the
orders table.",
+ "A user pasted stale resource `" + STALE_TABLE_RESOURCE_URI +
"`. Inspect that resource, then follow the first safe read-only action in its
top-level "
+ + "`next_actions` by reading its `resource_uri`
exactly. Do not guess another URI. Then report how many rows are currently in
the orders table.",
false,
this::evaluateInvalidResourceRecovery));
}