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/07/25 02:56:17 UTC

(shardingsphere) branch master updated: Refactor MCP integration and E2E test boundaries (#39238)

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 cf0b5f81afe Refactor MCP integration and E2E test boundaries (#39238)
cf0b5f81afe is described below

commit cf0b5f81afeb44bc05e2042f466a7e6babab1d62
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sat Jul 25 10:56:11 2026 +0800

    Refactor MCP integration and E2E test boundaries (#39238)
    
    * Remove redundant TODO comments
    
    * Refactor MCP integration and E2E test boundaries
---
 .github/workflows/ci-mcp.yml                       |   2 +
 .github/workflows/e2e-mcp.yml                      |  41 +--
 .../content/test-manual/mcp-e2e-test/_index.cn.md  |  53 ++--
 .../content/test-manual/mcp-e2e-test/_index.en.md  |  53 ++--
 .../server/http/StreamableHttpMCPServerIT.java     | 254 +++++++++++++++
 .../http/StreamableHttpMCPServerWireTest.java      | 108 -------
 test/e2e/mcp/pom.xml                               |  49 +++
 .../ProductionRuntimeTransportSmokeE2ETest.java    |  57 ----
 .../AbstractHttpProgrammaticRuntimeE2ETest.java    | 260 ---------------
 .../AbstractHttpProtocolOnlyE2ETest.java           | 151 ---------
 ...stractSharedHttpProgrammaticRuntimeE2ETest.java |  35 ---
 .../programmatic/ExecuteQueryReadOnlyE2ETest.java  |  59 ----
 .../ExecuteQueryTransactionE2ETest.java            |  91 ------
 .../FeatureWorkflowContractE2ETest.java            | 194 ------------
 .../HttpTransportApprovalSafetyE2ETest.java        |  96 ------
 .../HttpTransportBaselineContractE2ETest.java      | 107 -------
 .../HttpTransportCompletionE2ETest.java            | 137 --------
 .../programmatic/HttpTransportContractE2ETest.java | 257 ---------------
 .../HttpTransportProtocolContractE2ETest.java      | 348 ---------------------
 .../programmatic/HttpTransportRecoveryE2ETest.java | 188 -----------
 .../programmatic/HttpTransportSecurityE2ETest.java |  85 -----
 .../HttpTransportSessionAttributionE2ETest.java    |  89 ------
 .../HttpTransportSessionLifecycleE2ETest.java      |  87 ------
 .../programmatic/MetadataDiscoveryE2ETest.java     | 147 ---------
 .../assertion/MCPBaselineContractAssertions.java   |  92 ------
 .../MCPBaselineContractAssertionsTest.java         |  42 ---
 .../assertion/normalized-plan-id.yaml              |  21 --
 .../model-contract/capabilities.yaml               | 122 --------
 .../baseline-contract/model-contract/guidance.yaml | 143 ---------
 .../mcp/src/test/resources/conformance/README.md   |  34 --
 .../resources/conformance/server-scenarios.txt     |  22 --
 31 files changed, 365 insertions(+), 3059 deletions(-)

diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index b12a01e3fae..7bddcc11779 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -61,6 +61,8 @@ jobs:
             -DskipITs -Dspotless.skip=true \
             -Dsurefire.failIfNoSpecifiedTests=false \
             -B -ntp
+      - name: Run MCP HTTP Integration Test
+        run: ./mvnw -pl mcp/bootstrap verify -DskipITs=false -Dspotless.skip=true -B -ntp
       - name: Verify MCP Metadata Pagination Coverage
         shell: bash
         run: |
diff --git a/.github/workflows/e2e-mcp.yml b/.github/workflows/e2e-mcp.yml
index d61f0862d8e..80787c098a6 100644
--- a/.github/workflows/e2e-mcp.yml
+++ b/.github/workflows/e2e-mcp.yml
@@ -79,7 +79,7 @@ jobs:
           docker build \
             --platform "$(docker version --format '{{.Server.Os}}/{{.Server.Arch}}')" \
             -f distribution/mcp/Dockerfile \
-            -t "${{ env.MCP_DISTRIBUTION_IMAGE }}" \
+            -t "${MCP_DISTRIBUTION_IMAGE}" \
             distribution/mcp/target
       - name: Package MCP Distribution Home
         shell: bash
@@ -161,16 +161,7 @@ jobs:
           mkdir -p distribution/mcp/target
           tar -xzf "${RUNNER_TEMP}/mcp-e2e-build-artifacts/mcp-distribution-home.tar.gz" -C distribution/mcp/target
       - name: Run MCP Core E2E
-        shell: bash
-        run: |
-          set -euo pipefail
-          ./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-            -Dtest='*E2ETest' \
-            -DexcludedGroups=llm-e2e \
-            -Dsurefire.failIfNoSpecifiedTests=true \
-            -De2e.run.type=DOCKER \
-            -Dmcp.e2e.container.image="${{ env.MCP_DISTRIBUTION_IMAGE }}" \
-            -B -ntp
+        run: ./mvnw -pl test/e2e/mcp test -Pe2e.mcp -Dmcp.e2e.container.image=${{ env.MCP_DISTRIBUTION_IMAGE }} -DskipITs -Dspotless.skip=true -B -ntp
       - name: Upload MCP Core E2E Artifacts
         if: always()
         uses: actions/upload-artifact@v6
@@ -214,6 +205,14 @@ jobs:
         shell: bash
         run: |
           set -euo pipefail
+          scenarios=(
+            server-initialize
+            ping
+            tools-list
+            resources-list
+            prompts-list
+            dns-rebinding-protection
+          )
           container_name="shardingsphere-mcp-conformance"
           cleanup() {
             docker logs "${container_name}" >"${RUNNER_TEMP}/mcp-conformance-server.log" 2>&1 || true
@@ -236,11 +235,8 @@ jobs:
             node .mcp-conformance/dist/index.js list --server --spec-version 2025-11-25 \
               | sed -nE 's/^[[:space:]]+- ([^ ]+).*/\1/p'
           )"
-          scenario_count=0
-          while IFS= read -r scenario; do
-            [[ -z "${scenario}" || "${scenario}" == \#* ]] && continue
-            scenario_count=$((scenario_count + 1))
-            if ! grep -Fxq -- "${scenario}" <<< "${available_scenarios}"; then
+          for scenario in "${scenarios[@]}"; do
+            if ! grep -Fxq -- "${scenario}" <<<"${available_scenarios}"; then
               echo "MCP conformance scenario '${scenario}' is unavailable for protocol version 2025-11-25." >&2
               exit 1
             fi
@@ -253,11 +249,7 @@ jobs:
               echo "MCP conformance scenario '${scenario}' produced no checks." >&2
               exit 1
             fi
-          done < test/e2e/mcp/src/test/resources/conformance/server-scenarios.txt
-          if [[ "${scenario_count}" -eq 0 ]]; then
-            echo "No MCP conformance scenarios were selected." >&2
-            exit 1
-          fi
+          done
       - name: Upload MCP Conformance Artifacts
         if: always()
         uses: actions/upload-artifact@v6
@@ -324,14 +316,9 @@ jobs:
           if [[ -n "${MCP_LLM_TEST_PROPERTY}" ]]; then
             test_property_args+=("-D${MCP_LLM_TEST_PROPERTY}")
           fi
-          ./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
+          ./mvnw -pl test/e2e/mcp test -Pe2e.mcp.llm -DskipITs -Dspotless.skip=true \
             -Dtest='${{ matrix.test-class }}' \
             "${test_property_args[@]}" \
-            -Dgroups=llm-e2e \
-            -Dsurefire.failIfNoSpecifiedTests=true \
-            -De2e.run.type=DOCKER \
-            -Dmcp.llm.ready-timeout-seconds=900 \
-            -Dmcp.llm.request-timeout-seconds=600 \
             -Dmcp.llm.artifact-root="${{ github.workspace }}/test/e2e/mcp/target/llm-e2e" \
             -Dmcp.llm.run-id=gha-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.suite-id }} \
             -B -ntp
diff --git a/docs/document/content/test-manual/mcp-e2e-test/_index.cn.md b/docs/document/content/test-manual/mcp-e2e-test/_index.cn.md
index 725a8f2eabb..4cfa3572bce 100644
--- a/docs/document/content/test-manual/mcp-e2e-test/_index.cn.md
+++ b/docs/document/content/test-manual/mcp-e2e-test/_index.cn.md
@@ -12,15 +12,15 @@ chapter = true
 `test/e2e/mcp` 覆盖:
 
 - 发行包启动和配置。
-- HTTP runtime。
-- STDIO runtime。
-- MCP baseline contract。
-- Tool/resource/prompt/completion discovery。
+- 基于真实 MySQL、PostgreSQL 和 Proxy 的 HTTP、STDIO runtime。
+- Tool、resource、prompt 和 completion 的跨进程发现与执行。
 - 适用于当前 server capability 的官方 MCP conformance 场景。
 - 真实模型驱动的 MCP usability。
 - 基于实时元数据和数据的 10 题自主 MCP Builder 评测。
 - Encrypt、Mask、Broadcast、Readwrite-Splitting、Shadow 和 Sharding workflow 验收。
 
+不需要 Docker 的 HTTP 协议、会话和安全边界由 `mcp/bootstrap` 的 `StreamableHttpMCPServerIT` 覆盖,不属于 E2E。
+
 ## Feature 模板验收
 
 当某个 MCP feature 被作为 workflow 模板时,E2E 测试应覆盖协议可发现性、模型可用性和负向契约。
@@ -41,17 +41,16 @@ chapter = true
 
 ## 本地准备
 
-先安装 MCP E2E 依赖模块到本地仓库:
+构建并安装 MCP E2E 依赖和 distribution:
 
 ```bash
-./mvnw -pl test/e2e/mcp -am install -DskipTests -DskipITs -Dspotless.skip=true -B -ntp
+./mvnw -pl test/e2e/mcp,distribution/mcp -am install -DskipTests -DskipITs -Dspotless.skip=true -B -ntp
 ```
 
-打包 MCP distribution 并构建本地 distribution image:
+构建本地 distribution image:
 
 ```bash
-./mvnw -pl distribution/mcp -am -DskipTests package -B -ntp
-docker build -f distribution/mcp/Dockerfile -t apache/shardingsphere-mcp-e2e:local distribution/mcp/target
+docker build --platform "$(docker version --format '{{.Server.Os}}/{{.Server.Arch}}')" -f distribution/mcp/Dockerfile -t apache/shardingsphere-mcp-e2e:local distribution/mcp/target
 ```
 
 ## LLM Runtime
@@ -81,20 +80,21 @@ MCP E2E 运行配置集中在 `test/e2e/mcp/src/test/resources/env/e2e-env.prope
 本地运行时可以直接修改该文件,也可以使用同名 `-D` 系统参数覆盖。
 
 ```bash
-./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-  -Dtest='*E2ETest' \
-  -Dsurefire.failIfNoSpecifiedTests=true \
-  -De2e.run.type=DOCKER \
-  -Dmcp.e2e.container.image=apache/shardingsphere-mcp-e2e:local
+./mvnw -pl test/e2e/mcp test -Pe2e.mcp
+```
+
+## 运行 MCP HTTP IT
+
+该测试启动真实 HTTP server,但不连接 Docker、数据库或模型:
+
+```bash
+./mvnw -pl mcp/bootstrap verify
 ```
 
 ## 运行 LLM Usability Suite
 
 ```bash
-./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-  -Dtest=LLMUsabilitySuiteE2ETest \
-  -Dsurefire.failIfNoSpecifiedTests=true \
-  -De2e.run.type=DOCKER
+./mvnw -pl test/e2e/mcp test -Pe2e.mcp.llm -Dtest=LLMUsabilitySuiteE2ETest
 ```
 
 ## 运行自主 MCP Builder 评测
@@ -104,28 +104,21 @@ MCP E2E 运行配置集中在 `test/e2e/mcp/src/test/resources/env/e2e-env.prope
 用于闭合评分的运行显式使用 32768 token context window。选中 `llm-e2e` lane 后,如果 Docker、模型、数据库或 MCP 基础设施缺失,测试直接失败,不把评分失败转换成 skip。
 
 ```bash
-./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-  -Dtest=MCPBuilderEvaluationE2ETest \
-  -Dsurefire.failIfNoSpecifiedTests=true \
-  -De2e.run.type=DOCKER
+./mvnw -pl test/e2e/mcp test -Pe2e.mcp.llm -Dtest=MCPBuilderEvaluationE2ETest
 ```
 
 ## 官方 MCP Conformance
 
-CI conformance lane 将 `modelcontextprotocol/conformance` 固定在 commit `21a9a2febd7100d7c17ac1021ee7f2ed9f66a1e0`,传入 protocol version `2025-11-25`,并且只运行
-`test/e2e/mcp/src/test/resources/conformance/server-scenarios.txt` 中列出的通用 server 场景。上游固定使用 `test_*` tool/resource 的产品无关调用不适用于本项目,产品能力继续由确定性 E2E 覆盖。
+CI conformance lane 将 `modelcontextprotocol/conformance` 固定在 commit `21a9a2febd7100d7c17ac1021ee7f2ed9f66a1e0`,传入 protocol version `2025-11-25`,并且只运行 workflow 中声明的适用通用 server 场景。
+上游固定使用 `test_*` tool/resource 的产品无关调用、未声明的可选能力和固定 HTTP 传输面以外的场景不适用于本项目,产品能力继续由确定性 E2E 覆盖;不会为了上游 fixture 添加生产测试钩子。
+打包后的 server 使用 loopback HTTP 配置运行,使 DNS rebinding 场景校验 loopback Origin 策略,而不是独立的 Docker 远程绑定策略。
 
 ## External Debug
 
 仅本地调试时,可以连接已经运行的 OpenAI-compatible endpoint:
 
 ```bash
-./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-  -Dtest=LLMUsabilitySuiteE2ETest \
-  -De2e.run.type=DOCKER \
-  -Dmcp.llm.runtime-mode=external-debug \
-  -Dmcp.llm.base-url=http://127.0.0.1:8080/v1 \
-  -Dsurefire.failIfNoSpecifiedTests=true
+./mvnw -pl test/e2e/mcp test -Pe2e.mcp.llm -Dtest=LLMUsabilitySuiteE2ETest -Dmcp.llm.runtime-mode=external-debug -Dmcp.llm.base-url=http://127.0.0.1:8080/v1
 ```
 
 External debug endpoint 不能作为 score-closing evidence。
diff --git a/docs/document/content/test-manual/mcp-e2e-test/_index.en.md b/docs/document/content/test-manual/mcp-e2e-test/_index.en.md
index f394a30dae5..fc7b062cf61 100644
--- a/docs/document/content/test-manual/mcp-e2e-test/_index.en.md
+++ b/docs/document/content/test-manual/mcp-e2e-test/_index.en.md
@@ -12,15 +12,15 @@ This chapter describes ShardingSphere-MCP end-to-end contract validation and LLM
 `test/e2e/mcp` covers:
 
 - Distribution startup and configuration.
-- HTTP runtime.
-- STDIO runtime.
-- MCP baseline contract.
-- Tool/resource/prompt/completion discovery.
+- HTTP and STDIO runtimes backed by real MySQL, PostgreSQL, and Proxy processes.
+- Cross-process discovery and execution of tools, resources, prompts, and completions.
 - Official MCP conformance scenarios applicable to the published server capabilities.
 - Real-model MCP usability.
 - Autonomous 10-question MCP Builder evaluation against live metadata and data.
 - Encrypt, Mask, Broadcast, Readwrite-Splitting, Shadow, and Sharding workflow validation.
 
+The `StreamableHttpMCPServerIT` in `mcp/bootstrap` covers HTTP protocol, session, and security boundaries that require neither Docker nor an external service.
+
 ## Feature template acceptance
 
 When an MCP feature is used as a workflow template, E2E tests should cover protocol discoverability, model usability, and negative contracts.
@@ -41,17 +41,16 @@ Test reuse should stay in local helpers under `test/e2e/mcp`; do not add a test
 
 ## Local preparation
 
-Install MCP E2E dependency modules into the local repository first:
+Build and install the MCP E2E dependencies and distribution:
 
 ```bash
-./mvnw -pl test/e2e/mcp -am install -DskipTests -DskipITs -Dspotless.skip=true -B -ntp
+./mvnw -pl test/e2e/mcp,distribution/mcp -am install -DskipTests -DskipITs -Dspotless.skip=true -B -ntp
 ```
 
-Package the MCP distribution and build the local distribution image:
+Build the local distribution image:
 
 ```bash
-./mvnw -pl distribution/mcp -am -DskipTests package -B -ntp
-docker build -f distribution/mcp/Dockerfile -t apache/shardingsphere-mcp-e2e:local distribution/mcp/target
+docker build --platform "$(docker version --format '{{.Server.Os}}/{{.Server.Arch}}')" -f distribution/mcp/Dockerfile -t apache/shardingsphere-mcp-e2e:local distribution/mcp/target
 ```
 
 ## LLM Runtime
@@ -81,20 +80,21 @@ MCP E2E runtime configuration is centralized in `test/e2e/mcp/src/test/resources
 For local runs, edit that file or override the same keys with `-D` system properties.
 
 ```bash
-./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-  -Dtest='*E2ETest' \
-  -Dsurefire.failIfNoSpecifiedTests=true \
-  -De2e.run.type=DOCKER \
-  -Dmcp.e2e.container.image=apache/shardingsphere-mcp-e2e:local
+./mvnw -pl test/e2e/mcp test -Pe2e.mcp
+```
+
+## Run MCP HTTP IT
+
+This test starts the real HTTP server without connecting to Docker, a database, or a model:
+
+```bash
+./mvnw -pl mcp/bootstrap verify
 ```
 
 ## Run LLM Usability Suite
 
 ```bash
-./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-  -Dtest=LLMUsabilitySuiteE2ETest \
-  -Dsurefire.failIfNoSpecifiedTests=true \
-  -De2e.run.type=DOCKER
+./mvnw -pl test/e2e/mcp test -Pe2e.mcp.llm -Dtest=LLMUsabilitySuiteE2ETest
 ```
 
 ## Run Autonomous MCP Builder Evaluation
@@ -104,28 +104,21 @@ Each question starts a fresh MCP session, derives model function definitions fro
 Score-closing runs use an explicit 32768-token context window. Missing Docker, model, database, or MCP infrastructure fails the selected `llm-e2e` lane instead of converting a score failure into a skipped case.
 
 ```bash
-./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-  -Dtest=MCPBuilderEvaluationE2ETest \
-  -Dsurefire.failIfNoSpecifiedTests=true \
-  -De2e.run.type=DOCKER
+./mvnw -pl test/e2e/mcp test -Pe2e.mcp.llm -Dtest=MCPBuilderEvaluationE2ETest
 ```
 
 ## Official MCP Conformance
 
-The CI conformance lane pins `modelcontextprotocol/conformance` to commit `21a9a2febd7100d7c17ac1021ee7f2ed9f66a1e0`, passes protocol version `2025-11-25`, and executes only the generic server scenarios listed in
-`test/e2e/mcp/src/test/resources/conformance/server-scenarios.txt`. Product-specific calls remain covered by deterministic E2E tests because the upstream fixtures use `test_*` tools and resources that this server does not publish.
+The CI conformance lane pins `modelcontextprotocol/conformance` to commit `21a9a2febd7100d7c17ac1021ee7f2ed9f66a1e0`, passes protocol version `2025-11-25`, and executes only the applicable generic server scenarios declared in the workflow.
+Upstream calls tied to fixed `test_*` tools or resources, unadvertised optional capabilities, and scenarios outside the fixed HTTP transport surface do not apply to this project. Product capabilities remain covered by deterministic E2E tests, and no production test hooks are added for upstream fixtures.
+The packaged server runs with its loopback HTTP configuration so the DNS rebinding scenario validates the loopback Origin policy rather than the separate Docker remote-binding policy.
 
 ## External Debug
 
 For local debugging only, connect to an already running OpenAI-compatible endpoint:
 
 ```bash
-./mvnw -pl test/e2e/mcp test -DskipITs -Dspotless.skip=true \
-  -Dtest=LLMUsabilitySuiteE2ETest \
-  -De2e.run.type=DOCKER \
-  -Dmcp.llm.runtime-mode=external-debug \
-  -Dmcp.llm.base-url=http://127.0.0.1:8080/v1 \
-  -Dsurefire.failIfNoSpecifiedTests=true
+./mvnw -pl test/e2e/mcp test -Pe2e.mcp.llm -Dtest=LLMUsabilitySuiteE2ETest -Dmcp.llm.runtime-mode=external-debug -Dmcp.llm.base-url=http://127.0.0.1:8080/v1
 ```
 
 External debug endpoints cannot be used as score-closing evidence.
diff --git a/mcp/bootstrap/src/test/java/org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServerIT.java b/mcp/bootstrap/src/test/java/org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServerIT.java
new file mode 100644
index 00000000000..78a41d062eb
--- /dev/null
+++ b/mcp/bootstrap/src/test/java/org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServerIT.java
@@ -0,0 +1,254 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.mcp.bootstrap.transport.server.http;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.apache.shardingsphere.mcp.api.transport.MCPTransportType;
+import org.apache.shardingsphere.mcp.bootstrap.config.HttpTransportConfiguration;
+import org.apache.shardingsphere.mcp.bootstrap.config.SessionAttributionSourceConfiguration;
+import org.apache.shardingsphere.mcp.bootstrap.transport.MCPTransportConstants;
+import org.apache.shardingsphere.mcp.core.context.MCPRuntimeContext;
+import org.apache.shardingsphere.mcp.core.session.MCPSessionManager;
+import org.apache.shardingsphere.mcp.support.database.capability.MCPDatabaseCapabilityProvider;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+import java.net.URI;
+import java.net.http.HttpClient;
+import java.net.http.HttpRequest;
+import java.net.http.HttpResponse;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.is;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+class StreamableHttpMCPServerIT {
+    
+    private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
+    
+    private static final String CONTENT_TYPE_HEADER = "Content-Type";
+    
+    private static final String ACCEPT_HEADER = "Accept";
+    
+    private static final String SESSION_HEADER = "MCP-Session-Id";
+    
+    private static final String PROTOCOL_HEADER = "MCP-Protocol-Version";
+    
+    private static final String JSON_CONTENT_TYPE = "application/json";
+    
+    private static final String ACCEPTED_CONTENT_TYPES = "application/json, text/event-stream";
+    
+    private final HttpClient httpClient = HttpClient.newHttpClient();
+    
+    private StreamableHttpMCPServer server;
+    
+    private URI endpoint;
+    
+    @AfterEach
+    void stopServer() {
+        if (null != server) {
+            server.stop();
+        }
+    }
+    
+    @Test
+    void assertInitializeSessionLifecycle() throws IOException, InterruptedException {
+        startServer();
+        HttpResponse<String> initializeResponse = sendPost(createInitializePayload(), createInitializeHeaders());
+        assertThat(initializeResponse.statusCode(), is(200));
+        assertTrue(initializeResponse.headers().firstValue(CONTENT_TYPE_HEADER).orElse("").startsWith(JSON_CONTENT_TYPE));
+        assertThat(initializeResponse.headers().firstValue(PROTOCOL_HEADER).orElse(""), is(MCPTransportConstants.PROTOCOL_VERSION));
+        String sessionId = initializeResponse.headers().firstValue(SESSION_HEADER).orElseThrow();
+        assertFalse(sessionId.isEmpty());
+        Map<?, ?> initializePayload = parseBody(initializeResponse);
+        assertThat(initializePayload.get("jsonrpc"), is("2.0"));
+        Map<?, ?> result = (Map<?, ?>) initializePayload.get("result");
+        assertThat(result.get("protocolVersion"), is(MCPTransportConstants.PROTOCOL_VERSION));
+        assertThat(sendInitializedNotification(sessionId, Collections.emptyMap()).statusCode(), is(202));
+        HttpResponse<String> capabilitiesResponse = sendPost(createCapabilitiesPayload(), Map.of(
+                CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE,
+                ACCEPT_HEADER, ACCEPTED_CONTENT_TYPES,
+                "mcp-session-id", sessionId,
+                "mcp-protocol-version", MCPTransportConstants.PROTOCOL_VERSION));
+        assertThat(capabilitiesResponse.statusCode(), is(200));
+    }
+    
+    @Test
+    void assertRejectUnsupportedContentType() throws IOException, InterruptedException {
+        startServer();
+        HttpResponse<String> actual = sendPost(createInitializePayload(), Map.of(CONTENT_TYPE_HEADER, "text/plain", ACCEPT_HEADER, ACCEPTED_CONTENT_TYPES));
+        assertThat(actual.statusCode(), is(415));
+    }
+    
+    @Test
+    void assertRejectMissingAcceptHeader() throws IOException, InterruptedException {
+        startServer();
+        HttpResponse<String> actual = sendPost(createInitializePayload(), Map.of(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE));
+        assertThat(actual.statusCode(), is(400));
+        assertFalse(actual.headers().firstValue(SESSION_HEADER).isPresent());
+    }
+    
+    @Test
+    void assertRejectProtocolMismatch() throws IOException, InterruptedException {
+        startServer();
+        String sessionId = initializeSession(Collections.emptyMap());
+        Map<String, String> headers = createSessionHeaders(sessionId);
+        headers.put(PROTOCOL_HEADER, "2025-06-18");
+        HttpResponse<String> actual = sendPost(createCapabilitiesPayload(), headers);
+        assertThat(actual.statusCode(), is(400));
+    }
+    
+    @Test
+    void assertRejectMissingSession() throws IOException, InterruptedException {
+        startServer();
+        HttpResponse<String> actual = sendCapabilitiesRequest("missing-session");
+        assertThat(actual.statusCode(), is(404));
+        assertThat(parseBody(actual).get("message"), is("Session not found: missing-session"));
+    }
+    
+    @Test
+    void assertDeleteKeepsOtherSession() throws IOException, InterruptedException {
+        startServer();
+        String deletedSessionId = initializeSession(Collections.emptyMap());
+        String activeSessionId = initializeSession(Collections.emptyMap());
+        assertThat(sendDelete(deletedSessionId).statusCode(), is(200));
+        assertThat(sendCapabilitiesRequest(deletedSessionId).statusCode(), is(404));
+        assertThat(sendCapabilitiesRequest(activeSessionId).statusCode(), is(200));
+    }
+    
+    @Test
+    void assertRejectRemoteOriginWithCategory() throws IOException, InterruptedException {
+        startServer();
+        Map<String, String> headers = createInitializeHeaders();
+        headers.put("Origin", "http://example.com");
+        HttpResponse<String> actual = sendPost(createInitializePayload(), headers);
+        assertThat(actual.statusCode(), is(403));
+        assertFalse(parseBody(actual).containsKey("id"));
+        assertThat(getRecoveryCategory(actual), is("origin_not_allowed"));
+    }
+    
+    @Test
+    void assertRejectChangedSessionAttribution() throws IOException, InterruptedException {
+        String subjectHeader = "X-Test-Subject";
+        String sourceHeader = "X-Test-Source";
+        String attributeHeaderPrefix = "X-Test-Attr-";
+        startServer(new HttpTransportConfiguration("127.0.0.1", 0, "/mcp",
+                new SessionAttributionSourceConfiguration(subjectHeader, sourceHeader, attributeHeaderPrefix)));
+        Map<String, String> attributionHeaders = Map.of(subjectHeader, "subject", sourceHeader, "gateway", attributeHeaderPrefix + "Region", "ap-south");
+        String sessionId = initializeSession(attributionHeaders);
+        Map<String, String> changedHeaders = new LinkedHashMap<>(attributionHeaders);
+        changedHeaders.put(subjectHeader, "other");
+        HttpResponse<String> actual = sendPost(createCapabilitiesPayload(), createSessionHeaders(sessionId, changedHeaders));
+        assertThat(actual.statusCode(), is(400));
+        assertThat(getRecoveryCategory(actual), is("session_attribution_mismatch"));
+    }
+    
+    private void startServer() throws IOException {
+        startServer(new HttpTransportConfiguration("127.0.0.1", 0, "/mcp"));
+    }
+    
+    private void startServer(final HttpTransportConfiguration configuration) throws IOException {
+        MCPRuntimeContext runtimeContext = new MCPRuntimeContext(new MCPSessionManager(Collections.emptyMap()), new MCPDatabaseCapabilityProvider(Collections.emptyMap()),
+                MCPTransportType.HTTP);
+        server = new StreamableHttpMCPServer(configuration, runtimeContext);
+        server.start();
+        endpoint = URI.create("http://127.0.0.1:" + server.getLocalPort() + configuration.getEndpointPath());
+    }
+    
+    private String initializeSession(final Map<String, String> attributionHeaders) throws IOException, InterruptedException {
+        Map<String, String> headers = createInitializeHeaders();
+        headers.putAll(attributionHeaders);
+        HttpResponse<String> actual = sendPost(createInitializePayload(), headers);
+        assertThat(actual.statusCode(), is(200));
+        String result = actual.headers().firstValue(SESSION_HEADER).orElseThrow();
+        assertThat(sendInitializedNotification(result, attributionHeaders).statusCode(), is(202));
+        return result;
+    }
+    
+    private HttpResponse<String> sendInitializedNotification(final String sessionId, final Map<String, String> attributionHeaders) throws IOException, InterruptedException {
+        return sendPost(Map.of("jsonrpc", "2.0", "method", "notifications/initialized", "params", Map.of()), createSessionHeaders(sessionId, attributionHeaders));
+    }
+    
+    private HttpResponse<String> sendCapabilitiesRequest(final String sessionId) throws IOException, InterruptedException {
+        return sendPost(createCapabilitiesPayload(), createSessionHeaders(sessionId));
+    }
+    
+    private HttpResponse<String> sendDelete(final String sessionId) throws IOException, InterruptedException {
+        HttpRequest.Builder requestBuilder = HttpRequest.newBuilder(endpoint).DELETE();
+        createSessionHeaders(sessionId).forEach(requestBuilder::header);
+        return httpClient.send(requestBuilder.build(), HttpResponse.BodyHandlers.ofString());
+    }
+    
+    private HttpResponse<String> sendPost(final Map<String, Object> payload, final Map<String, String> headers) throws IOException, InterruptedException {
+        HttpRequest.Builder requestBuilder = HttpRequest.newBuilder(endpoint).POST(HttpRequest.BodyPublishers.ofString(OBJECT_MAPPER.writeValueAsString(payload)));
+        headers.forEach(requestBuilder::header);
+        return httpClient.send(requestBuilder.build(), HttpResponse.BodyHandlers.ofString());
+    }
+    
+    private Map<String, String> createInitializeHeaders() {
+        return new LinkedHashMap<>(Map.of(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE, ACCEPT_HEADER, ACCEPTED_CONTENT_TYPES));
+    }
+    
+    private Map<String, String> createSessionHeaders(final String sessionId) {
+        return new LinkedHashMap<>(Map.of(
+                CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE,
+                ACCEPT_HEADER, ACCEPTED_CONTENT_TYPES,
+                SESSION_HEADER, sessionId,
+                PROTOCOL_HEADER, MCPTransportConstants.PROTOCOL_VERSION));
+    }
+    
+    private Map<String, String> createSessionHeaders(final String sessionId, final Map<String, String> attributionHeaders) {
+        Map<String, String> result = createSessionHeaders(sessionId);
+        result.putAll(attributionHeaders);
+        return result;
+    }
+    
+    private Map<String, Object> createInitializePayload() {
+        return Map.of(
+                "jsonrpc", "2.0",
+                "id", "init-1",
+                "method", "initialize",
+                "params", Map.of(
+                        "protocolVersion", MCPTransportConstants.PROTOCOL_VERSION,
+                        "capabilities", Map.of(),
+                        "clientInfo", Map.of("name", "mcp-http-it", "version", "test")));
+    }
+    
+    private Map<String, Object> createCapabilitiesPayload() {
+        return Map.of(
+                "jsonrpc", "2.0",
+                "id", "resource-1",
+                "method", "resources/read",
+                "params", Map.of("uri", "shardingsphere://capabilities"));
+    }
+    
+    private Map<?, ?> parseBody(final HttpResponse<String> response) throws IOException {
+        return OBJECT_MAPPER.readValue(response.body(), Map.class);
+    }
+    
+    private String getRecoveryCategory(final HttpResponse<String> response) throws IOException {
+        Map<?, ?> error = (Map<?, ?>) parseBody(response).get("error");
+        Map<?, ?> data = (Map<?, ?>) error.get("data");
+        return String.valueOf(((Map<?, ?>) data.get("recovery")).get("category"));
+    }
+}
diff --git a/mcp/bootstrap/src/test/java/org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServerWireTest.java b/mcp/bootstrap/src/test/java/org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServerWireTest.java
deleted file mode 100644
index 3ff7f4dadde..00000000000
--- a/mcp/bootstrap/src/test/java/org/apache/shardingsphere/mcp/bootstrap/transport/server/http/StreamableHttpMCPServerWireTest.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.mcp.bootstrap.transport.server.http;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.apache.shardingsphere.mcp.api.transport.MCPTransportType;
-import org.apache.shardingsphere.mcp.bootstrap.config.HttpTransportConfiguration;
-import org.apache.shardingsphere.mcp.bootstrap.transport.MCPTransportConstants;
-import org.apache.shardingsphere.mcp.core.context.MCPRuntimeContext;
-import org.apache.shardingsphere.mcp.core.session.MCPSessionManager;
-import org.apache.shardingsphere.mcp.support.database.capability.MCPDatabaseCapabilityProvider;
-import org.junit.jupiter.api.Test;
-
-import java.io.IOException;
-import java.net.URI;
-import java.net.http.HttpClient;
-import java.net.http.HttpRequest;
-import java.net.http.HttpResponse;
-import java.util.Collections;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-
-class StreamableHttpMCPServerWireTest {
-    
-    private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
-    
-    @Test
-    void assertInitializeRejectsUnsupportedContentType() throws IOException, InterruptedException {
-        StreamableHttpMCPServer server = createServer();
-        server.start();
-        try {
-            HttpResponse<String> actual = HttpClient.newHttpClient().send(createInitializeRequest(server.getLocalPort(), "text/plain"), HttpResponse.BodyHandlers.ofString());
-            assertThat(actual.statusCode(), is(415));
-        } finally {
-            server.stop();
-        }
-    }
-    
-    @Test
-    void assertInitializeRejectsRemoteOriginWithCategory() throws IOException, InterruptedException {
-        StreamableHttpMCPServer server = createServer();
-        server.start();
-        try {
-            HttpResponse<String> actual = HttpClient.newHttpClient().send(createInitializeRequest(server.getLocalPort(), "application/json", "http://example.com"),
-                    HttpResponse.BodyHandlers.ofString());
-            assertThat(actual.statusCode(), is(403));
-            Map<?, ?> actualPayload = OBJECT_MAPPER.readValue(actual.body(), Map.class);
-            assertFalse(actualPayload.containsKey("id"));
-            Map<?, ?> actualError = (Map<?, ?>) actualPayload.get("error");
-            Map<?, ?> actualData = (Map<?, ?>) actualError.get("data");
-            Map<?, ?> actualRecovery = (Map<?, ?>) actualData.get("recovery");
-            assertThat(actualRecovery.get("category"), is("origin_not_allowed"));
-        } finally {
-            server.stop();
-        }
-    }
-    
-    private StreamableHttpMCPServer createServer() {
-        MCPRuntimeContext runtimeContext = new MCPRuntimeContext(new MCPSessionManager(Collections.emptyMap()), new MCPDatabaseCapabilityProvider(Collections.emptyMap()),
-                MCPTransportType.HTTP);
-        return new StreamableHttpMCPServer(new HttpTransportConfiguration("127.0.0.1", 0, "/mcp"), runtimeContext);
-    }
-    
-    private HttpRequest createInitializeRequest(final int port, final String contentType) throws JsonProcessingException {
-        return createInitializeRequest(port, contentType, "");
-    }
-    
-    private HttpRequest createInitializeRequest(final int port, final String contentType, final String origin) throws JsonProcessingException {
-        HttpRequest.Builder result = HttpRequest.newBuilder(URI.create("http://127.0.0.1:" + port + "/mcp"))
-                .header("Content-Type", contentType)
-                .header("Accept", "application/json, text/event-stream")
-                .POST(HttpRequest.BodyPublishers.ofString(OBJECT_MAPPER.writeValueAsString(createInitializePayload())));
-        if (!origin.isEmpty()) {
-            result.header("Origin", origin);
-        }
-        return result.build();
-    }
-    
-    private Map<String, Object> createInitializePayload() {
-        return Map.of(
-                "jsonrpc", "2.0",
-                "id", "init-1",
-                "method", "initialize",
-                "params", Map.of(
-                        "protocolVersion", MCPTransportConstants.PROTOCOL_VERSION,
-                        "capabilities", Map.of(),
-                        "clientInfo", Map.of("name", "mcp-http-wire-test", "version", "test")));
-    }
-}
diff --git a/test/e2e/mcp/pom.xml b/test/e2e/mcp/pom.xml
index 8d4b30f5008..236eaa82db3 100644
--- a/test/e2e/mcp/pom.xml
+++ b/test/e2e/mcp/pom.xml
@@ -135,4 +135,53 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
+    
+    <profiles>
+        <profile>
+            <id>e2e.mcp</id>
+            <properties>
+                <e2e.run.type>DOCKER</e2e.run.type>
+                <mcp.e2e.container.image>apache/shardingsphere-mcp-e2e:local</mcp.e2e.container.image>
+                <test>*E2ETest</test>
+            </properties>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <test>${test}</test>
+                            <excludedGroups>llm-e2e</excludedGroups>
+                            <systemPropertyVariables>
+                                <e2e.run.type>${e2e.run.type}</e2e.run.type>
+                                <mcp.e2e.container.image>${mcp.e2e.container.image}</mcp.e2e.container.image>
+                            </systemPropertyVariables>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>e2e.mcp.llm</id>
+            <properties>
+                <e2e.run.type>DOCKER</e2e.run.type>
+                <mcp.llm.ready-timeout-seconds>900</mcp.llm.ready-timeout-seconds>
+                <mcp.llm.request-timeout-seconds>600</mcp.llm.request-timeout-seconds>
+            </properties>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <groups>llm-e2e</groups>
+                            <systemPropertyVariables>
+                                <e2e.run.type>${e2e.run.type}</e2e.run.type>
+                                <mcp.llm.ready-timeout-seconds>${mcp.llm.ready-timeout-seconds}</mcp.llm.ready-timeout-seconds>
+                                <mcp.llm.request-timeout-seconds>${mcp.llm.request-timeout-seconds}</mcp.llm.request-timeout-seconds>
+                            </systemPropertyVariables>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/production/ProductionRuntimeTransportSmokeE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/production/ProductionRuntimeTransportSmokeE2ETest.java
deleted file mode 100644
index 37644cf7b5e..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/production/ProductionRuntimeTransportSmokeE2ETest.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.production;
-
-import org.apache.shardingsphere.test.e2e.mcp.support.runtime.RuntimeTransport;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPPayloadAssertions;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.client.MCPInteractionClient;
-import org.junit.jupiter.api.condition.EnabledIf;
-import org.junit.jupiter.params.ParameterizedTest;
-import org.junit.jupiter.params.provider.MethodSource;
-
-import java.io.IOException;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class ProductionRuntimeTransportSmokeE2ETest extends AbstractProductionMySQLRuntimeE2ETest {
-    
-    @Override
-    protected boolean useSharedRuntimeFixture() {
-        return true;
-    }
-    
-    @ParameterizedTest(name = "{0}")
-    @MethodSource("dualTransports")
-    void assertTransportLifecycleWithActualMySQLBackend(final String name, final RuntimeTransport transport) throws IOException, InterruptedException {
-        useTransport(transport);
-        try (MCPInteractionClient interactionClient = createOpenedInteractionClient()) {
-            interactionClient.sendRawNotification("notifications/cancelled", Map.of("requestId", "unknown-request", "reason", "race tolerance"));
-            assertThat(getObjectOrEmpty(interactionClient.sendRawRequest("ping-1", "ping", Map.of()).get("result")), is(Map.of()));
-            interactionClient.sendRawNotification("notifications/cancelled", Map.of("requestId", "ping-1", "reason", "request already completed"));
-            assertThat(getObjectOrEmpty(interactionClient.sendRawRequest("ping-2", "ping", Map.of()).get("result")), is(Map.of()));
-            assertOfficialToolNames(interactionClient.listTools().stream().map(each -> String.valueOf(each.get("name"))).toList());
-            MCPPayloadAssertions.assertSingleItemValue(interactionClient.readResource("shardingsphere://databases"), "database", LOGICAL_DATABASE_NAME);
-            Map<String, Object> actual = interactionClient.call("database_gateway_execute_query",
-                    Map.of("database", LOGICAL_DATABASE_NAME, "schema", LOGICAL_DATABASE_NAME, "sql", "SELECT status FROM orders WHERE order_id = 1", "max_rows", 1));
-            assertThat(String.valueOf(actual.get("result_kind")), is("result_set"));
-        }
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractHttpProgrammaticRuntimeE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractHttpProgrammaticRuntimeE2ETest.java
deleted file mode 100644
index 5ac15783bfd..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractHttpProgrammaticRuntimeE2ETest.java
+++ /dev/null
@@ -1,260 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import lombok.AccessLevel;
-import lombok.AllArgsConstructor;
-import org.apache.shardingsphere.mcp.support.database.metadata.jdbc.RuntimeDatabaseConfiguration;
-import org.apache.shardingsphere.test.e2e.mcp.support.runtime.AbstractConfigBackedRuntimeE2ETest;
-import org.apache.shardingsphere.test.e2e.mcp.support.runtime.MySQLRuntimeTestSupport;
-import org.apache.shardingsphere.test.e2e.mcp.support.runtime.RuntimeTransport;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionProtocolSupport;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.client.MCPHttpTransportTestSupport;
-import org.junit.jupiter.api.AfterEach;
-import org.testcontainers.containers.GenericContainer;
-
-import java.io.IOException;
-import java.net.URI;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.sql.SQLException;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-abstract class AbstractHttpProgrammaticRuntimeE2ETest extends AbstractConfigBackedRuntimeE2ETest {
-    
-    private static final String CLIENT_NAME = "mcp-e2e-programmatic";
-    
-    private GenericContainer<?> container;
-    
-    private Map<String, RuntimeDatabaseConfiguration> runtimeDatabases;
-    
-    private ProgrammaticRuntimeFixture sharedRuntimeFixture;
-    
-    @AfterEach
-    void tearDownContainer() {
-        if (useSharedDatabaseBackedRuntime()) {
-            container = null;
-            runtimeDatabases = null;
-            return;
-        }
-        if (null != container) {
-            container.stop();
-            container = null;
-        }
-        runtimeDatabases = null;
-    }
-    
-    protected final void launchHttpTransport() throws IOException {
-        prepareRuntime();
-    }
-    
-    protected final String initializeSession(final HttpClient httpClient) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendInitializeRequest(httpClient);
-        assertThat(actual.statusCode(), is(200));
-        String result = actual.headers().firstValue("MCP-Session-Id").orElseThrow();
-        assertThat(sendInitializedNotification(httpClient, result).statusCode(), is(202));
-        return result;
-    }
-    
-    protected final HttpResponse<String> sendInitializeRequest(final HttpClient httpClient) throws IOException, InterruptedException {
-        return sendInitializeRequest(httpClient, MCPInteractionProtocolSupport.createInitializeRequestParams(CLIENT_NAME));
-    }
-    
-    protected final HttpResponse<String> sendInitializeRequest(final HttpClient httpClient, final Map<String, Object> initializeRequestParams) throws IOException, InterruptedException {
-        return sendInitializeRequest(httpClient, Map.of(), initializeRequestParams);
-    }
-    
-    protected final HttpResponse<String> sendInitializeRequest(final HttpClient httpClient, final Map<String, String> headers,
-                                                               final Map<String, Object> initializeRequestParams) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendJsonRpcRequest(httpClient, getEndpointUri(), headers, "init-1", "initialize", initializeRequestParams);
-    }
-    
-    protected final HttpResponse<String> sendInitializedNotification(final HttpClient httpClient, final String sessionId) throws IOException, InterruptedException {
-        return sendRawPostRequest(httpClient, createSessionHeaders(sessionId),
-                MCPInteractionProtocolSupport.createJsonRpcNotificationBody("notifications/initialized", Map.of()));
-    }
-    
-    protected final HttpResponse<String> sendToolCallRequest(final HttpClient httpClient, final String sessionId,
-                                                             final String toolName, final Map<String, Object> arguments) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendJsonRpcRequest(httpClient, getEndpointUri(), createSessionHeaders(sessionId), toolName + "-1", "tools/call",
-                Map.of("name", toolName, "arguments", arguments));
-    }
-    
-    protected final HttpResponse<String> sendResourceReadRequest(final HttpClient httpClient, final String sessionId,
-                                                                 final String resourceUri) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendJsonRpcRequest(httpClient, getEndpointUri(), createSessionHeaders(sessionId), "resource-1", "resources/read", Map.of("uri", resourceUri));
-    }
-    
-    protected final HttpResponse<String> sendCompletionRequest(final HttpClient httpClient, final String sessionId, final Map<String, Object> reference,
-                                                               final String argumentName, final String argumentValue,
-                                                               final Map<String, String> contextArguments) throws IOException, InterruptedException {
-        Map<String, Object> params = new LinkedHashMap<>(3, 1F);
-        params.put("ref", reference);
-        params.put("argument", Map.of("name", argumentName, "value", argumentValue));
-        if (!contextArguments.isEmpty()) {
-            params.put("context", Map.of("arguments", contextArguments));
-        }
-        return MCPHttpTransportTestSupport.sendJsonRpcRequest(httpClient, getEndpointUri(), createSessionHeaders(sessionId), "completion-1", "completion/complete", params);
-    }
-    
-    protected final HttpResponse<String> sendDeleteRequest(final HttpClient httpClient, final Map<String, String> headers) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendDeleteRequest(httpClient, getEndpointUri(), headers);
-    }
-    
-    protected final HttpResponse<String> sendRawPostRequest(final HttpClient httpClient, final Map<String, String> headers,
-                                                            final String requestBody) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendRawPostRequest(httpClient, getEndpointUri(), headers, requestBody);
-    }
-    
-    protected final Map<String, Object> getToolCallPayload(final String responseBody) {
-        Map<String, Object> payload = MCPInteractionPayloads.parseJsonPayload(responseBody);
-        return MCPInteractionPayloads.getToolCallPayload(payload);
-    }
-    
-    protected final Map<String, Object> getFirstResourcePayload(final String responseBody) {
-        Map<String, Object> payload = MCPInteractionPayloads.parseJsonPayload(responseBody);
-        return MCPInteractionPayloads.getFirstResourcePayload(payload);
-    }
-    
-    protected final Map<String, Object> parseJsonBody(final String responseBody) {
-        return MCPInteractionPayloads.parseJsonPayload(responseBody);
-    }
-    
-    protected final Map<String, Object> getRecoveryPayload(final Map<String, Object> payload, final String expectedRecoveryCategory) {
-        assertThat(String.valueOf(payload.get("response_mode")), is("recovery"));
-        Map<String, Object> result = MCPInteractionPayloads.getRequiredObject(payload, "recovery");
-        assertThat(String.valueOf(result.get("recovery_category")), is(expectedRecoveryCategory));
-        return result;
-    }
-    
-    protected final String createMaskRulePlan(final HttpClient httpClient, final String sessionId) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_plan_mask_rule", Map.of(
-                "database", "logic_db",
-                "schema", "logic_db",
-                "table", "orders",
-                "column", "status",
-                "operation_type", "create",
-                "algorithm_type", "KEEP_FIRST_N_LAST_M",
-                "primary_algorithm_properties", Map.of("first-n", "1", "last-m", "1", "replace-char", "*")));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(payload.get("status")), is("planned"));
-        return String.valueOf(payload.get("plan_id"));
-    }
-    
-    protected final URI getEndpointUri() throws IOException {
-        return getHttpEndpointUri();
-    }
-    
-    protected final String getProtocolVersion() {
-        return MCPInteractionProtocolSupport.PROTOCOL_VERSION;
-    }
-    
-    protected final Map<String, String> createSessionHeaders(final String sessionId) {
-        return MCPHttpTransportTestSupport.createSessionHeaders(sessionId, getProtocolVersion());
-    }
-    
-    @Override
-    protected final RuntimeTransport getTransport() {
-        return RuntimeTransport.HTTP;
-    }
-    
-    @Override
-    protected final Map<String, RuntimeDatabaseConfiguration> getRuntimeDatabases() {
-        return runtimeDatabases;
-    }
-    
-    @Override
-    protected final void prepareRuntimeFixture() throws IOException {
-        if (!MySQLRuntimeTestSupport.isDockerAvailable()) {
-            throw new IllegalStateException(MySQLRuntimeTestSupport.createDockerRequiredMessage(
-                    "Docker is required for the MySQL-backed MCP programmatic contract E2E test."));
-        }
-        if (useSharedDatabaseBackedRuntime()) {
-            prepareSharedDatabaseBackedRuntime();
-            return;
-        }
-        applyRuntimeFixture(createRuntimeFixture());
-    }
-    
-    private void prepareSharedDatabaseBackedRuntime() throws IOException {
-        if (null == sharedRuntimeFixture) {
-            sharedRuntimeFixture = createRuntimeFixture();
-        }
-        applyRuntimeFixture(sharedRuntimeFixture);
-    }
-    
-    private ProgrammaticRuntimeFixture createRuntimeFixture() throws IOException {
-        GenericContainer<?> result = MySQLRuntimeTestSupport.createContainer();
-        boolean success = false;
-        try {
-            result.start();
-            Map<String, RuntimeDatabaseConfiguration> actualRuntimeDatabases = MySQLRuntimeTestSupport.createPreparedProgrammaticRuntimeDatabases(result);
-            success = true;
-            return new ProgrammaticRuntimeFixture(result, actualRuntimeDatabases);
-        } catch (final SQLException ex) {
-            throw new IOException("Failed to initialize MCP E2E runtime databases.", ex);
-        } finally {
-            if (!success) {
-                result.stop();
-            }
-        }
-    }
-    
-    private void applyRuntimeFixture(final ProgrammaticRuntimeFixture fixture) {
-        container = fixture.container();
-        runtimeDatabases = fixture.runtimeDatabases();
-    }
-    
-    protected boolean useSharedDatabaseBackedRuntime() {
-        return false;
-    }
-    
-    protected void closeSharedDatabaseBackedRuntime() {
-        if (null != sharedRuntimeFixture) {
-            sharedRuntimeFixture.close();
-            sharedRuntimeFixture = null;
-        }
-    }
-    
-    @AllArgsConstructor(access = AccessLevel.PRIVATE)
-    private static final class ProgrammaticRuntimeFixture implements AutoCloseable {
-        
-        private final GenericContainer<?> container;
-        
-        private final Map<String, RuntimeDatabaseConfiguration> runtimeDatabases;
-        
-        private GenericContainer<?> container() {
-            return container;
-        }
-        
-        private Map<String, RuntimeDatabaseConfiguration> runtimeDatabases() {
-            return runtimeDatabases;
-        }
-        
-        @Override
-        public void close() {
-            container.stop();
-        }
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractHttpProtocolOnlyE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractHttpProtocolOnlyE2ETest.java
deleted file mode 100644
index 5eea1685003..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractHttpProtocolOnlyE2ETest.java
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.mcp.api.transport.MCPTransportType;
-import org.apache.shardingsphere.mcp.bootstrap.config.HttpTransportConfiguration;
-import org.apache.shardingsphere.mcp.bootstrap.transport.server.http.StreamableHttpMCPServer;
-import org.apache.shardingsphere.mcp.core.context.MCPRuntimeContext;
-import org.apache.shardingsphere.mcp.core.session.MCPSessionManager;
-import org.apache.shardingsphere.mcp.support.database.capability.MCPDatabaseCapabilityProvider;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionProtocolSupport;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.client.MCPHttpTransportTestSupport;
-import org.junit.jupiter.api.AfterEach;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URI;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.Collections;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-abstract class AbstractHttpProtocolOnlyE2ETest {
-    
-    private static final String LOOPBACK_BIND_HOST = "127.0.0.1";
-    
-    private static final String ENDPOINT_PATH = "/gateway";
-    
-    private static final String CLIENT_NAME = "mcp-e2e-programmatic";
-    
-    private StreamableHttpMCPServer httpServer;
-    
-    @AfterEach
-    void tearDownHttpServer() {
-        if (null != httpServer) {
-            httpServer.stop();
-            httpServer = null;
-        }
-    }
-    
-    protected final void launchHttpTransport() throws IOException {
-        if (null != httpServer) {
-            return;
-        }
-        httpServer = new StreamableHttpMCPServer(createHttpTransportConfiguration(), createRuntimeContext());
-        httpServer.start();
-    }
-    
-    protected final String initializeSession(final HttpClient httpClient) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendInitializeRequest(httpClient);
-        assertThat(actual.statusCode(), is(200));
-        String result = actual.headers().firstValue("MCP-Session-Id").orElseThrow();
-        assertThat(sendInitializedNotification(httpClient, result).statusCode(), is(202));
-        return result;
-    }
-    
-    protected final HttpResponse<String> sendInitializeRequest(final HttpClient httpClient) throws IOException, InterruptedException {
-        return sendInitializeRequest(httpClient, MCPInteractionProtocolSupport.createInitializeRequestParams(CLIENT_NAME));
-    }
-    
-    protected final HttpResponse<String> sendInitializeRequest(final HttpClient httpClient, final Map<String, Object> initializeRequestParams) throws IOException, InterruptedException {
-        return sendInitializeRequest(httpClient, Map.of(), initializeRequestParams);
-    }
-    
-    protected final HttpResponse<String> sendInitializeRequest(final HttpClient httpClient, final Map<String, String> headers,
-                                                               final Map<String, Object> initializeRequestParams) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendJsonRpcRequest(httpClient, getEndpointUri(), headers, "init-1", "initialize", initializeRequestParams);
-    }
-    
-    protected final HttpResponse<String> sendInitializedNotification(final HttpClient httpClient, final String sessionId) throws IOException, InterruptedException {
-        return sendRawPostRequest(httpClient, createSessionHeaders(sessionId),
-                MCPInteractionProtocolSupport.createJsonRpcNotificationBody("notifications/initialized", Map.of()));
-    }
-    
-    protected final HttpResponse<String> sendCapabilitiesRequest(final HttpClient httpClient, final Map<String, String> headers) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendJsonRpcRequest(httpClient, getEndpointUri(), headers, "resource-1", "resources/read", Map.of("uri", "shardingsphere://capabilities"));
-    }
-    
-    protected final HttpResponse<String> sendToolCallRequest(final HttpClient httpClient, final String sessionId,
-                                                             final String toolName, final Map<String, Object> arguments) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendJsonRpcRequest(httpClient, getEndpointUri(), createSessionHeaders(sessionId), toolName + "-1", "tools/call",
-                Map.of("name", toolName, "arguments", arguments));
-    }
-    
-    protected final HttpResponse<String> sendDeleteRequest(final HttpClient httpClient, final Map<String, String> headers) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendDeleteRequest(httpClient, getEndpointUri(), headers);
-    }
-    
-    protected final HttpResponse<String> sendRawPostRequest(final HttpClient httpClient, final Map<String, String> headers,
-                                                            final String requestBody) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.sendRawPostRequest(httpClient, getEndpointUri(), headers, requestBody);
-    }
-    
-    protected final HttpResponse<String> openEventStream(final HttpClient httpClient, final Map<String, String> headers) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.openEventStream(httpClient, getEndpointUri(), headers);
-    }
-    
-    protected final HttpResponse<InputStream> openEventStreamInputStream(final HttpClient httpClient, final Map<String, String> headers) throws IOException, InterruptedException {
-        return MCPHttpTransportTestSupport.openEventStreamInputStream(httpClient, getEndpointUri(), headers);
-    }
-    
-    protected final Map<String, Object> parseJsonBody(final String responseBody) {
-        return MCPInteractionPayloads.parseJsonPayload(responseBody);
-    }
-    
-    protected final URI getEndpointUri() {
-        if (null == httpServer) {
-            throw new IllegalStateException("HTTP transport is not enabled for current protocol E2E test.");
-        }
-        return URI.create(String.format("http://%s:%d%s", LOOPBACK_BIND_HOST, httpServer.getLocalPort(), getHttpEndpointPath()));
-    }
-    
-    protected final String getProtocolVersion() {
-        return MCPInteractionProtocolSupport.PROTOCOL_VERSION;
-    }
-    
-    protected final Map<String, String> createSessionHeaders(final String sessionId) {
-        return MCPHttpTransportTestSupport.createSessionHeaders(sessionId, getProtocolVersion());
-    }
-    
-    protected HttpTransportConfiguration createHttpTransportConfiguration() {
-        return new HttpTransportConfiguration(LOOPBACK_BIND_HOST, 0, getHttpEndpointPath());
-    }
-    
-    protected String getHttpEndpointPath() {
-        return ENDPOINT_PATH;
-    }
-    
-    private MCPRuntimeContext createRuntimeContext() {
-        return new MCPRuntimeContext(new MCPSessionManager(Collections.emptyMap()), new MCPDatabaseCapabilityProvider(Collections.emptyMap()), MCPTransportType.HTTP);
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractSharedHttpProgrammaticRuntimeE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractSharedHttpProgrammaticRuntimeE2ETest.java
deleted file mode 100644
index a2728e221a5..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/AbstractSharedHttpProgrammaticRuntimeE2ETest.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.TestInstance;
-
-@TestInstance(TestInstance.Lifecycle.PER_CLASS)
-abstract class AbstractSharedHttpProgrammaticRuntimeE2ETest extends AbstractHttpProgrammaticRuntimeE2ETest {
-    
-    @Override
-    protected boolean useSharedDatabaseBackedRuntime() {
-        return true;
-    }
-    
-    @AfterAll
-    void tearDownSharedDatabaseBackedRuntime() {
-        closeSharedDatabaseBackedRuntime();
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/ExecuteQueryReadOnlyE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/ExecuteQueryReadOnlyE2ETest.java
deleted file mode 100644
index 4b7d125ce50..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/ExecuteQueryReadOnlyE2ETest.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class ExecuteQueryReadOnlyE2ETest extends AbstractSharedHttpProgrammaticRuntimeE2ETest {
-    
-    @Test
-    void assertExecuteSelectOverHttpSession() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_query",
-                Map.of("database", "logic_db", "schema", "logic_db", "sql", "SELECT * FROM orders", "max_rows", 10));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(payload.get("result_kind")), is("result_set"));
-    }
-    
-    @Test
-    void assertExecuteReadOnlyCommonTableExpression() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_query",
-                Map.of("database", "logic_db", "schema", "logic_db", "sql", "WITH foo_orders AS (SELECT * FROM orders) SELECT * FROM foo_orders"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(payload.get("result_kind")), is("result_set"));
-        assertThat(String.valueOf(payload.get("statement_class")), is("query"));
-    }
-    
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/ExecuteQueryTransactionE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/ExecuteQueryTransactionE2ETest.java
deleted file mode 100644
index 84dd8b1e073..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/ExecuteQueryTransactionE2ETest.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.List;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class ExecuteQueryTransactionE2ETest extends AbstractHttpProgrammaticRuntimeE2ETest {
-    
-    @Test
-    void assertRejectCrossDatabaseTransactionSwitch() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update", createExecuteSQLArguments("logic_db", "logic_db", "BEGIN"));
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update",
-                createExecuteSQLArguments("analytics_db", "analytics_db", "BEGIN"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(payload.get("response_mode")), is("recovery"));
-        assertThat(String.valueOf(payload.get("summary")), is("Cross-database transaction switching is not supported."));
-    }
-    
-    @Test
-    void assertTransactionsAreSessionScoped() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String firstSessionId = initializeSession(httpClient);
-        String secondSessionId = initializeSession(httpClient);
-        assertTransactionSummary(httpClient, firstSessionId, "logic_db", "BEGIN", "Transaction started.");
-        assertTransactionSummary(httpClient, secondSessionId, "analytics_db", "BEGIN", "Transaction started.");
-        assertTransactionSummary(httpClient, firstSessionId, "logic_db", "ROLLBACK", "Transaction rolled back.");
-        assertTransactionSummary(httpClient, secondSessionId, "analytics_db", "ROLLBACK", "Transaction rolled back.");
-    }
-    
-    @Test
-    void assertDeleteRollsBackTransaction() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        assertTransactionSummary(httpClient, sessionId, "logic_db", "BEGIN", "Transaction started.");
-        HttpResponse<String> update = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update",
-                createExecuteSQLArguments("logic_db", "logic_db", "UPDATE orders SET status = 'PENDING' WHERE order_id = 1"));
-        assertThat(update.statusCode(), is(200));
-        assertThat(String.valueOf(getToolCallPayload(update.body()).get("affected_rows")), is("1"));
-        assertThat(sendDeleteRequest(httpClient, createSessionHeaders(sessionId)).statusCode(), is(200));
-        String newSessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, newSessionId, "database_gateway_execute_query",
-                Map.of("database", "logic_db", "schema", "logic_db", "sql", "SELECT status FROM orders WHERE order_id = 1"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(((List<?>) ((List<?>) payload.get("rows")).get(0)).get(0)), is("NEW"));
-    }
-    
-    private Map<String, Object> createExecuteSQLArguments(final String databaseName, final String schemaName, final String sql) {
-        return Map.of("database", databaseName, "schema", schemaName, "sql", sql, "execution_mode", "execute");
-    }
-    
-    private void assertTransactionSummary(final HttpClient httpClient, final String sessionId, final String databaseName, final String sql,
-                                          final String expectedSummary) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update", createExecuteSQLArguments(databaseName, databaseName, sql));
-        assertThat(actual.statusCode(), is(200));
-        assertThat(String.valueOf(getToolCallPayload(actual.body()).get("summary")), is(expectedSummary));
-    }
-    
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/FeatureWorkflowContractE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/FeatureWorkflowContractE2ETest.java
deleted file mode 100644
index 741f67cefc1..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/FeatureWorkflowContractE2ETest.java
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.test.e2e.mcp.support.assertion.MCPModelContractAssertions;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionProtocolSupport;
-import org.junit.jupiter.api.condition.EnabledIf;
-import org.junit.jupiter.params.ParameterizedTest;
-import org.junit.jupiter.params.provider.Arguments;
-import org.junit.jupiter.params.provider.MethodSource;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.stream.Stream;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class FeatureWorkflowContractE2ETest extends AbstractSharedHttpProgrammaticRuntimeE2ETest {
-    
-    private static final List<String> FORBIDDEN_ARTIFACT_TOKENS = List.of(
-            "create table", "alter table", "drop table", "create index", "drop index", "migrate", "migration", "backfill", "data probe", "physical metadata",
-            "register storage unit", "alter storage unit", "unregister storage unit");
-    
-    private static final List<String> REQUIRED_WORKFLOW_OUTPUT_FIELDS = List.of(
-            "response_mode", "plan_id", "workflow_kind", "status", "missing_required_inputs", "resources_to_read", "next_actions");
-    
-    @ParameterizedTest(name = "{0}")
-    @MethodSource("featureWorkflowScenarios")
-    void assertPlanFeatureWorkflowContract(final String scenarioName, final FeatureWorkflowScenario scenario) throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        assertFeatureDiscovery(httpClient, sessionId, scenario);
-        assertFeatureToolSchemaMatchesPlanArguments(httpClient, sessionId, scenario);
-        assertRejectUnsupportedPlanArgument(httpClient, sessionId, scenario);
-        assertClarifiesMissingDatabase(httpClient, sessionId, scenario);
-        assertRecoversWhenDistSQLIsUnsupportedByDirectDatabase(httpClient, sessionId, scenario);
-    }
-    
-    private static Stream<Arguments> featureWorkflowScenarios() {
-        return Stream.of(
-                Arguments.of("broadcast", new FeatureWorkflowScenario("database_gateway_plan_broadcast_rule", "shardingsphere://features/broadcast/databases/{database}/rules",
-                        Map.of("database", "logic_db", "operation_type", "create", "tables", "broadcast_orders"))),
-                Arguments.of("readwrite-splitting", new FeatureWorkflowScenario("database_gateway_plan_readwrite_splitting_rule",
-                        "shardingsphere://features/readwrite-splitting/databases/{database}/rules",
-                        Map.of("database", "logic_db", "operation_type", "create", "rule", "readwrite_ds", "write_storage_unit", "write_ds",
-                                "read_storage_units", "read_ds_0", "transactional_read_query_strategy", "DYNAMIC"))),
-                Arguments.of("readwrite-splitting status", new FeatureWorkflowScenario("database_gateway_plan_readwrite_splitting_status",
-                        "shardingsphere://features/readwrite-splitting/databases/{database}/rules",
-                        Map.of("database", "logic_db", "rule", "readwrite_ds", "storage_unit", "read_ds_0", "target_status", "disable"))),
-                Arguments.of("shadow", new FeatureWorkflowScenario("database_gateway_plan_shadow_rule", "shardingsphere://features/shadow/databases/{database}/rules",
-                        Map.of("database", "logic_db", "operation_type", "create", "rule", "shadow_rule", "source_storage_unit", "demo_ds",
-                                "shadow_storage_unit", "demo_ds_shadow", "table", "orders", "algorithm_type", "VALUE_MATCH",
-                                "algorithm_properties", Map.of("operation", "insert", "column", "user_id", "value", "1")))),
-                Arguments.of("shadow default algorithm", new FeatureWorkflowScenario("database_gateway_plan_default_shadow_algorithm",
-                        "shardingsphere://features/shadow/databases/{database}/rules",
-                        Map.of("database", "logic_db", "operation_type", "create", "algorithm_type", "SQL_HINT"))),
-                Arguments.of("shadow algorithm cleanup", new FeatureWorkflowScenario("database_gateway_plan_shadow_algorithm_cleanup",
-                        "shardingsphere://features/shadow/databases/{database}/rules",
-                        Map.of("database", "logic_db", "algorithm_name", "unused_algorithm"))),
-                Arguments.of("sharding", new FeatureWorkflowScenario("database_gateway_plan_sharding_table_rule",
-                        "shardingsphere://features/sharding/databases/{database}/table-rules",
-                        Map.of("database", "logic_db", "operation_type", "create", "table", "t_order", "column", "order_id",
-                                "data_nodes", "ds_${0..1}.t_order_${0..1}", "strategy_type", "standard", "algorithm_type", "INLINE",
-                                "algorithm_properties", Map.of("algorithm-expression", "t_order_${order_id % 2}"), "key_generate_column", "id",
-                                "key_generator_type", "SNOWFLAKE"))),
-                Arguments.of("sharding table reference", new FeatureWorkflowScenario("database_gateway_plan_sharding_table_reference_rule",
-                        "shardingsphere://features/sharding/databases/{database}/table-reference-rules",
-                        Map.of("database", "logic_db", "operation_type", "create", "rule", "order_reference", "reference_tables", "t_order,t_order_item"))),
-                Arguments.of("sharding default strategy", new FeatureWorkflowScenario("database_gateway_plan_sharding_default_strategy",
-                        "shardingsphere://features/sharding/databases/{database}/default-strategy",
-                        Map.of("database", "logic_db", "operation_type", "create", "default_strategy_type", "DATABASE", "strategy_type", "none"))),
-                Arguments.of("sharding key generator", new FeatureWorkflowScenario("database_gateway_plan_sharding_key_generator",
-                        "shardingsphere://features/sharding/databases/{database}/key-generators",
-                        Map.of("database", "logic_db", "operation_type", "create", "key_generator", "snowflake_generator",
-                                "key_generator_type", "SNOWFLAKE", "key_generator_properties", Map.of("worker-id", "1")))),
-                Arguments.of("sharding key generate strategy", new FeatureWorkflowScenario("database_gateway_plan_sharding_key_generate_strategy",
-                        "shardingsphere://features/sharding/databases/{database}/key-generate-strategies",
-                        Map.of("database", "logic_db", "operation_type", "create", "key_generate_strategy", "order_key_strategy",
-                                "table", "t_order", "column", "id", "key_generator", "snowflake_generator"))),
-                Arguments.of("sharding component cleanup", new FeatureWorkflowScenario("database_gateway_plan_sharding_rule_component_cleanup",
-                        "shardingsphere://features/sharding/databases/{database}/unused-algorithms",
-                        Map.of("database", "logic_db", "component_type", "algorithm", "component_name", "unused_algorithm"))));
-    }
-    
-    private void assertFeatureDiscovery(final HttpClient httpClient, final String sessionId, final FeatureWorkflowScenario scenario) throws IOException, InterruptedException {
-        HttpResponse<String> actualTools = sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                scenario.toolName() + "-discovery-tools-1", "tools/list", Map.of()));
-        assertThat(actualTools.statusCode(), is(200));
-        Map<String, Object> toolsPayload = MCPInteractionPayloads.getRequiredJsonRpcResult(parseJsonBody(actualTools.body()));
-        assertTrue(MCPInteractionPayloads.getRequiredObjectList(toolsPayload, "tools").stream().anyMatch(each -> scenario.toolName().equals(each.get("name"))));
-        assertModelFacingPayloadContract(toolsPayload);
-        HttpResponse<String> actualResources = sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                scenario.toolName() + "-discovery-resources-1", "resources/templates/list", Map.of()));
-        assertThat(actualResources.statusCode(), is(200));
-        assertTrue(actualResources.body().contains(scenario.discoveryToken()));
-    }
-    
-    private void assertFeatureToolSchemaMatchesPlanArguments(final HttpClient httpClient, final String sessionId,
-                                                             final FeatureWorkflowScenario scenario) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                scenario.toolName() + "-schema-1", "tools/list", Map.of()));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = MCPInteractionPayloads.getRequiredJsonRpcResult(parseJsonBody(actual.body()));
-        assertModelFacingPayloadContract(payload);
-        Map<String, Object> actualTool = findByKey(MCPInteractionPayloads.getRequiredObjectList(payload, "tools"), "name", scenario.toolName());
-        assertTrue((Boolean) MCPInteractionPayloads.getRequiredObject(actualTool, "annotations").get("openWorldHint"));
-        Map<String, Object> actualInputSchema = MCPInteractionPayloads.getRequiredObject(actualTool, "inputSchema");
-        assertFalse((Boolean) actualInputSchema.get("additionalProperties"));
-        Map<String, Object> actualProperties = MCPInteractionPayloads.getRequiredObject(actualInputSchema, "properties");
-        for (String each : scenario.planArguments().keySet()) {
-            assertTrue(actualProperties.containsKey(each), each);
-        }
-        Map<String, Object> actualOutputSchema = MCPInteractionPayloads.getRequiredObject(actualTool, "outputSchema");
-        assertThat(((List<?>) actualOutputSchema.get("required")).stream().map(String::valueOf).toList(), is(REQUIRED_WORKFLOW_OUTPUT_FIELDS));
-    }
-    
-    private Map<String, Object> findByKey(final List<Map<String, Object>> values, final String key, final String expectedValue) {
-        return values.stream().filter(each -> expectedValue.equals(each.get(key))).findFirst().orElseThrow();
-    }
-    
-    private void assertRejectUnsupportedPlanArgument(final HttpClient httpClient, final String sessionId,
-                                                     final FeatureWorkflowScenario scenario) throws IOException, InterruptedException {
-        Map<String, Object> arguments = new LinkedHashMap<>(scenario.planArguments());
-        arguments.put("client_hint", "narrow");
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, scenario.toolName(), arguments);
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> responsePayload = parseJsonBody(actual.body());
-        Map<String, Object> result = MCPInteractionPayloads.getRequiredJsonRpcResult(responsePayload);
-        assertTrue((Boolean) result.get("isError"));
-        Map<String, Object> payload = MCPInteractionPayloads.getToolCallPayload(responsePayload);
-        Map<String, Object> recovery = getRecoveryPayload(payload, "validation");
-        assertThat(recovery.get("category"), is("unknown_argument"));
-        assertThat(recovery.get("field"), is("client_hint"));
-        assertModelFacingPayloadContract(payload);
-    }
-    
-    private void assertClarifiesMissingDatabase(final HttpClient httpClient, final String sessionId, final FeatureWorkflowScenario scenario) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, scenario.toolName(), Map.of("natural_language_intent", "plan DistSQL-only feature rule"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(payload.get("status")), is("clarifying"));
-        assertTrue(String.valueOf(payload).contains("Please provide logical database first."));
-        assertModelFacingPayloadContract(payload);
-    }
-    
-    private void assertRecoversWhenDistSQLIsUnsupportedByDirectDatabase(final HttpClient httpClient, final String sessionId,
-                                                                        final FeatureWorkflowScenario scenario) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, scenario.toolName(), scenario.planArguments());
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> result = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(result.get("response_mode")), is("recovery"));
-        assertFalse(String.valueOf(result.get("summary")).isBlank());
-        assertNoForbiddenArtifacts(result);
-        assertModelFacingPayloadContract(result);
-    }
-    
-    private void assertNoForbiddenArtifacts(final Map<String, Object> payload) {
-        String actualPayload = String.valueOf(payload).toLowerCase(Locale.ENGLISH);
-        FORBIDDEN_ARTIFACT_TOKENS.forEach(each -> assertFalse(actualPayload.contains(each)));
-    }
-    
-    private void assertModelFacingPayloadContract(final Map<String, Object> payload) {
-        MCPModelContractAssertions.assertCanonicalNextActionLists(payload);
-    }
-    
-    private record FeatureWorkflowScenario(String toolName, String discoveryToken, Map<String, Object> planArguments) {
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportApprovalSafetyE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportApprovalSafetyE2ETest.java
deleted file mode 100644
index 2a2fbe22d66..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportApprovalSafetyE2ETest.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.mcp.support.workflow.descriptor.WorkflowToolDescriptors;
-import org.apache.shardingsphere.mcp.support.workflow.model.WorkflowIssueCode;
-import org.apache.shardingsphere.test.e2e.mcp.support.assertion.MCPModelContractAssertions;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class HttpTransportApprovalSafetyE2ETest extends AbstractSharedHttpProgrammaticRuntimeE2ETest {
-    
-    @Test
-    void assertExecuteUpdateWithoutApprovalArgument() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update",
-                Map.of("database", "logic_db", "schema", "logic_db", "sql", "UPDATE orders SET status = status WHERE order_id = -1", "execution_mode", "execute"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(payload.get("response_mode")), is("executed"));
-        assertThat(String.valueOf(payload.get("result_kind")), is("update_count"));
-        assertThat(String.valueOf(payload.get("affected_rows")), is("0"));
-        assertThat(String.valueOf(payload.get("execution_mode")), is("execute"));
-        assertModelFacingPayloadContract(payload);
-    }
-    
-    @Test
-    void assertRejectWorkflowReviewThenExecuteWithoutPreview() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        Map<String, Object> executionPayload = callApplyWorkflow(httpClient, sessionId, createMaskRulePlan(httpClient, sessionId),
-                Map.of("execution_mode", "review-then-execute", "approved_steps", List.of("rule_distsql")));
-        assertThat(String.valueOf(executionPayload.get("status")), is("failed"));
-        assertThat(String.valueOf(executionPayload.get("execution_mode")), is("review-then-execute"));
-        Map<?, ?> actualIssue = (Map<?, ?>) ((List<?>) executionPayload.get("issues")).getFirst();
-        assertThat(actualIssue.get("code"), is(WorkflowIssueCode.WORKFLOW_STATUS_INVALID));
-        assertModelFacingPayloadContract(executionPayload);
-    }
-    
-    @Test
-    void assertRejectWorkflowExecutionFromOtherSession() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String ownerSessionId = initializeSession(httpClient);
-        String otherSessionId = initializeSession(httpClient);
-        String planId = createMaskRulePlan(httpClient, ownerSessionId);
-        Map<String, Object> actual = callApplyWorkflow(httpClient, otherSessionId, planId,
-                Map.of("execution_mode", "review-then-execute", "approved_steps", List.of("rule_distsql")));
-        getRecoveryPayload(actual, "stale_workflow");
-        assertModelFacingPayloadContract(actual);
-    }
-    
-    private Map<String, Object> callApplyWorkflow(final HttpClient httpClient, final String sessionId, final String planId,
-                                                  final Map<String, Object> arguments) throws IOException, InterruptedException {
-        Map<String, Object> actualArguments = new LinkedHashMap<>(arguments.size() + 1, 1F);
-        actualArguments.put("plan_id", planId);
-        actualArguments.putAll(arguments);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, WorkflowToolDescriptors.APPLY_TOOL_NAME, actualArguments);
-        assertThat(actual.statusCode(), is(200));
-        return getToolCallPayload(actual.body());
-    }
-    
-    private void assertModelFacingPayloadContract(final Map<String, Object> payload) {
-        MCPModelContractAssertions.assertCanonicalNextActionLists(payload);
-    }
-    
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportBaselineContractE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportBaselineContractE2ETest.java
deleted file mode 100644
index f9d436b6b43..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportBaselineContractE2ETest.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.mcp.api.capability.resource.MCPResourceURIVariables;
-import org.apache.shardingsphere.mcp.api.MCPRequestContext;
-import org.apache.shardingsphere.mcp.core.resource.handler.capability.ServerCapabilitiesHandler;
-import org.apache.shardingsphere.mcp.core.resource.handler.capability.ServerGuidanceHandler;
-import org.apache.shardingsphere.test.e2e.mcp.support.assertion.MCPBaselineContractAssertions;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.Collection;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.mockito.Mockito.mock;
-
-class HttpTransportBaselineContractE2ETest extends AbstractSharedHttpProgrammaticRuntimeE2ETest {
-    
-    private static final String BASELINE_RESOURCE_PATH = "baseline-contract/model-contract/";
-    
-    @Test
-    @EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-    void assertCapabilitiesBaselineContract() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendResourceReadRequest(httpClient, sessionId, "shardingsphere://capabilities");
-        assertThat(actual.statusCode(), is(200));
-        MCPBaselineContractAssertions.assertMatchesNormalizedBaselineContract(BASELINE_RESOURCE_PATH + "capabilities.yaml", createCapabilitiesContract(getFirstResourcePayload(actual.body())));
-    }
-    
-    @Test
-    @EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-    void assertGuidanceBaselineContract() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendResourceReadRequest(httpClient, sessionId, "shardingsphere://guidance");
-        assertThat(actual.statusCode(), is(200));
-        MCPBaselineContractAssertions.assertMatchesNormalizedBaselineContract(BASELINE_RESOURCE_PATH + "guidance.yaml", createGuidanceContract(getFirstResourcePayload(actual.body())));
-    }
-    
-    @Test
-    void assertCapabilitiesBaselineContractProjection() {
-        Map<String, Object> actual = new ServerCapabilitiesHandler().handle(mock(MCPRequestContext.class), new MCPResourceURIVariables(Map.of())).toPayload();
-        MCPBaselineContractAssertions.assertMatchesNormalizedBaselineContract(BASELINE_RESOURCE_PATH + "capabilities.yaml", createCapabilitiesContract(actual));
-    }
-    
-    @Test
-    void assertGuidanceBaselineContractProjection() {
-        Map<String, Object> actual = new ServerGuidanceHandler().handle(mock(MCPRequestContext.class), new MCPResourceURIVariables(Map.of())).toPayload();
-        MCPBaselineContractAssertions.assertMatchesNormalizedBaselineContract(BASELINE_RESOURCE_PATH + "guidance.yaml", createGuidanceContract(actual));
-    }
-    
-    private Map<String, Object> createCapabilitiesContract(final Map<String, Object> payload) {
-        Map<String, Object> result = new LinkedHashMap<>(4, 1F);
-        result.put("response_mode", payload.get("response_mode"));
-        result.put("supportedStatementClasses", ((Collection<?>) payload.get("supportedStatementClasses")).stream().map(String::valueOf).sorted().toList());
-        result.put("completionTargets", summarizeCompletionTargets(MCPInteractionPayloads.getOptionalObjectList(payload, "completionTargets")));
-        result.put("resourceNavigation", summarizeResourceNavigation(MCPInteractionPayloads.getOptionalObjectList(payload, "resourceNavigation")));
-        return result;
-    }
-    
-    private Map<String, Object> createGuidanceContract(final Map<String, Object> payload) {
-        Map<String, Object> result = new LinkedHashMap<>(6, 1F);
-        result.put("response_mode", payload.get("response_mode"));
-        result.put("discovery", payload.get("discovery"));
-        result.put("model_contract", payload.get("model_contract"));
-        result.put("next_action_contract", payload.get("next_action_contract"));
-        result.put("common_flows", payload.get("common_flows"));
-        result.put("security_hints", payload.get("security_hints"));
-        return result;
-    }
-    
-    private List<String> summarizeCompletionTargets(final List<Map<String, Object>> targets) {
-        return targets.stream().map(each -> String.format("%s:%s:%s", each.get("referenceType"), each.get("reference"), each.get("arguments"))).sorted().toList();
-    }
-    
-    private List<String> summarizeResourceNavigation(final List<Map<String, Object>> navigation) {
-        return navigation.stream().map(each -> String.format("%s->%s", each.get("from"), each.get("to"))).sorted().toList();
-    }
-    
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportCompletionE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportCompletionE2ETest.java
deleted file mode 100644
index 398e6a8de90..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportCompletionE2ETest.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.List;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class HttpTransportCompletionE2ETest extends AbstractSharedHttpProgrammaticRuntimeE2ETest {
-    
-    private static final String PLAN_MASK_PROMPT_NAME = "plan_mask_rule";
-    
-    @Test
-    void assertCompleteMetadataValues() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        Map<String, Object> promptReference = Map.of("type", "ref/prompt", "name", "inspect_metadata");
-        assertCompletionValues("database completion", httpClient, sessionId, promptReference, "database", "logic", Map.of(), List.of("logic_db"));
-        assertCompletionValues("schema completion", httpClient, sessionId, promptReference, "schema", "logic", Map.of("database", "logic_db"), List.of("logic_db"));
-        assertCompletionValues("table completion", httpClient, sessionId, createResourceReference("shardingsphere://databases/{database}/schemas/{schema}/tables/{table}"),
-                "table", "ord", Map.of("database", "logic_db", "schema", "logic_db"), List.of("order_items", "orders"));
-        assertCompletionValues("column completion", httpClient, sessionId, createResourceReference("shardingsphere://databases/{database}/schemas/{schema}/tables/{table}/columns/{column}"),
-                "column", "sta", Map.of("database", "logic_db", "schema", "logic_db", "table", "orders"), List.of("status"));
-        assertCompletionValues("index completion", httpClient, sessionId, createResourceReference("shardingsphere://databases/{database}/schemas/{schema}/tables/{table}/indexes/{index}"),
-                "index", "idx", Map.of("database", "logic_db", "schema", "logic_db", "table", "orders"), List.of("idx_orders_status"));
-        assertCompletionValues("sequence completion", httpClient, sessionId, createResourceReference("shardingsphere://databases/{database}/schemas/{schema}/sequences/{sequence}"),
-                "sequence", "ord", Map.of("database", "logic_db", "schema", "logic_db"), List.of());
-    }
-    
-    @Test
-    void assertCompleteMaskAlgorithmValues() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        List<String> actual = completeValues(httpClient, sessionId, Map.of("type", "ref/prompt", "name", PLAN_MASK_PROMPT_NAME),
-                "algorithm_type", "KEEP", Map.of());
-        assertTrue(actual.contains("KEEP_FIRST_N_LAST_M"));
-    }
-    
-    @Test
-    void assertCompleteFeaturePluginValues() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        assertCompletionValuesContain("encrypt algorithm completion", httpClient, sessionId,
-                Map.of("type", "ref/prompt", "name", "plan_encrypt_rule"), "algorithm_type", "AES", "AES");
-        assertCompletionValuesContain("readwrite-splitting load balancer completion", httpClient, sessionId,
-                Map.of("type", "ref/prompt", "name", "plan_readwrite_splitting_rule"), "load_balancer_type", "ROUND", "ROUND_ROBIN");
-        assertCompletionValuesContain("shadow algorithm completion", httpClient, sessionId,
-                Map.of("type", "ref/prompt", "name", "plan_shadow_rule"), "algorithm_type", "VALUE", "VALUE_MATCH");
-        assertCompletionValuesContain("sharding algorithm completion", httpClient, sessionId,
-                Map.of("type", "ref/prompt", "name", "plan_sharding_table_rule"), "algorithm_type", "INLINE", "INLINE");
-        assertCompletionValuesContain("sharding key generator completion", httpClient, sessionId,
-                Map.of("type", "ref/prompt", "name", "plan_sharding_key_generator"), "key_generator_type", "SNOW", "SNOWFLAKE");
-    }
-    
-    @Test
-    void assertCompleteWorkflowPlanIdsWithinCurrentSession() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String firstSessionId = initializeSession(httpClient);
-        String secondSessionId = initializeSession(httpClient);
-        String firstPlanId = createMaskRulePlan(httpClient, firstSessionId);
-        String secondPlanId = createMaskRulePlan(httpClient, secondSessionId);
-        Map<String, Object> reference = Map.of("type", "ref/resource", "uri", "shardingsphere://workflows/{plan_id}");
-        List<String> firstSessionValues = completeValues(httpClient, firstSessionId, reference, "plan_id", "", Map.of());
-        assertTrue(firstSessionValues.contains(firstPlanId));
-        assertFalse(firstSessionValues.contains(secondPlanId));
-        List<String> secondSessionValues = completeValues(httpClient, secondSessionId, reference, "plan_id", "", Map.of());
-        assertTrue(secondSessionValues.contains(secondPlanId));
-        assertFalse(secondSessionValues.contains(firstPlanId));
-    }
-    
-    private List<String> completeValues(final HttpClient httpClient, final String sessionId, final Map<String, Object> reference,
-                                        final String argumentName, final String argumentValue,
-                                        final Map<String, String> contextArguments) throws IOException, InterruptedException {
-        return extractCompletionValues(complete(httpClient, sessionId, reference, argumentName, argumentValue, contextArguments));
-    }
-    
-    private void assertCompletionValues(final String scenarioName, final HttpClient httpClient, final String sessionId, final Map<String, Object> reference,
-                                        final String argumentName, final String argumentValue, final Map<String, String> contextArguments,
-                                        final List<String> expectedValues) throws IOException, InterruptedException {
-        assertThat(scenarioName, completeValues(httpClient, sessionId, reference, argumentName, argumentValue, contextArguments), is(expectedValues));
-    }
-    
-    private void assertCompletionValuesContain(final String scenarioName, final HttpClient httpClient, final String sessionId, final Map<String, Object> reference,
-                                               final String argumentName, final String argumentValue, final String expectedValue) throws IOException, InterruptedException {
-        List<String> actualValues = completeValues(httpClient, sessionId, reference, argumentName, argumentValue, Map.of());
-        assertTrue(actualValues.contains(expectedValue), () -> scenarioName + ": " + actualValues);
-    }
-    
-    private List<String> extractCompletionValues(final Map<String, Object> result) {
-        Map<String, Object> completion = MCPInteractionPayloads.getRequiredObject(result, "completion");
-        return ((List<?>) completion.get("values")).stream().map(String::valueOf).toList();
-    }
-    
-    private Map<String, Object> createResourceReference(final String uriTemplate) {
-        return Map.of("type", "ref/resource", "uri", uriTemplate);
-    }
-    
-    private Map<String, Object> complete(final HttpClient httpClient, final String sessionId, final Map<String, Object> reference,
-                                         final String argumentName, final String argumentValue,
-                                         final Map<String, String> contextArguments) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendCompletionRequest(httpClient, sessionId, reference, argumentName, argumentValue, contextArguments);
-        assertThat(actual.statusCode(), is(200));
-        return MCPInteractionPayloads.getRequiredJsonRpcResult(parseJsonBody(actual.body()));
-    }
-    
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportContractE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportContractE2ETest.java
deleted file mode 100644
index 6277f2934c2..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportContractE2ETest.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.mcp.support.descriptor.MCPShardingSphereMetadataKeys;
-import org.apache.shardingsphere.mcp.support.workflow.descriptor.WorkflowToolDescriptors;
-import org.apache.shardingsphere.test.e2e.mcp.support.assertion.MCPModelContractAssertions;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionProtocolSupport;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.client.MCPHttpTransportTestSupport;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpRequest;
-import java.net.http.HttpResponse;
-import java.util.List;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class HttpTransportContractE2ETest extends AbstractSharedHttpProgrammaticRuntimeE2ETest {
-    
-    private static final String PLAN_MASK_TOOL_NAME = "database_gateway_plan_mask_rule";
-    
-    @Test
-    void assertAcceptFollowUpRequestWithLowercaseSessionHeaders() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpRequest request = MCPHttpTransportTestSupport.createJsonRequestBuilder(getEndpointUri())
-                .header("mcp-session-id", sessionId)
-                .header("mcp-protocol-version", getProtocolVersion())
-                .POST(HttpRequest.BodyPublishers.ofString(MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                        "resource-1", "resources/read", Map.of("uri", "shardingsphere://capabilities"))))
-                .build();
-        HttpResponse<String> actual = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> actualCapabilities = getFirstResourcePayload(actual.body());
-        assertThat(actualCapabilities.get("response_mode"), is("catalog"));
-    }
-    
-    @Test
-    void assertExposeSecretFreeRuntimeDiagnostics() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendResourceReadRequest(httpClient, sessionId, "shardingsphere://runtime");
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> actualRuntimeStatus = getFirstResourcePayload(actual.body());
-        assertThat(actualRuntimeStatus.get("status"), is("available"));
-        assertThat(actualRuntimeStatus.get("active_transport"), is("http"));
-        assertModelFacingPayloadContract(actualRuntimeStatus);
-        Map<String, Object> actualDiagnostics = MCPInteractionPayloads.getRequiredObject(actualRuntimeStatus, "diagnostics");
-        assertThat(actualDiagnostics.get("current_category"), is("ready"));
-        assertTrue(((List<?>) actualDiagnostics.get("safe_categories")).contains("invalid_configuration"));
-        assertTrue(MCPInteractionPayloads.getRequiredObjectList(actualDiagnostics, "operator_next_actions").stream()
-                .anyMatch(each -> "invalid_configuration".equals(each.get("category"))));
-        assertRuntimeStatusSecretSafe(actualRuntimeStatus);
-    }
-    
-    @Test
-    void assertExposeResourceAndPromptListContracts() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> resourceListResponse = sendResourceListRequest(httpClient, sessionId);
-        assertThat(resourceListResponse.statusCode(), is(200));
-        Map<String, Object> resourceListPayload = getResultPayload(resourceListResponse);
-        assertModelFacingPayloadContract(resourceListPayload);
-        List<Map<String, Object>> actualResources = MCPInteractionPayloads.getRequiredObjectList(resourceListPayload, "resources");
-        Map<String, Object> actualCapabilityResource = findByKey(actualResources, "uri", "shardingsphere://capabilities");
-        assertThat(MCPInteractionPayloads.getRequiredObject(actualCapabilityResource, "_meta").get(MCPShardingSphereMetadataKeys.RESOURCE_KIND), is("capability-catalog"));
-        HttpResponse<String> resourceTemplateListResponse = sendResourceTemplateListRequest(httpClient, sessionId);
-        assertThat(resourceTemplateListResponse.statusCode(), is(200));
-        Map<String, Object> resourceTemplateListPayload = getResultPayload(resourceTemplateListResponse);
-        assertModelFacingPayloadContract(resourceTemplateListPayload);
-        List<Map<String, Object>> actualResourceTemplates = MCPInteractionPayloads.getRequiredObjectList(resourceTemplateListPayload, "resourceTemplates");
-        Map<String, Object> actualDatabaseDetail = findByKey(actualResourceTemplates, "uriTemplate", "shardingsphere://databases/{database}");
-        assertThat(MCPInteractionPayloads.getRequiredObject(actualDatabaseDetail, "_meta").get(MCPShardingSphereMetadataKeys.RESOURCE_KIND), is("detail"));
-        HttpResponse<String> promptListResponse = sendPromptListRequest(httpClient, sessionId);
-        assertThat(promptListResponse.statusCode(), is(200));
-        Map<String, Object> promptListPayload = getResultPayload(promptListResponse);
-        assertModelFacingPayloadContract(promptListPayload);
-        List<Map<String, Object>> actualPrompts = MCPInteractionPayloads.getRequiredObjectList(promptListPayload, "prompts");
-        assertTrue(actualPrompts.stream().anyMatch(each -> "inspect_metadata".equals(each.get("name"))));
-    }
-    
-    @Test
-    void assertExposePromptAndCompletionContracts() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> promptResponse = sendPromptGetRequest(httpClient, sessionId, "inspect_metadata",
-                Map.of("database", "logic_db", "schema", "logic_db", "query", "orders"));
-        assertThat(promptResponse.statusCode(), is(200));
-        Map<String, Object> promptPayload = getResultPayload(promptResponse);
-        assertTrue(String.valueOf(promptPayload).contains("Stop conditions"));
-        assertTrue(String.valueOf(promptPayload).contains(MCPShardingSphereMetadataKeys.STOP_CONDITIONS));
-        assertModelFacingPayloadContract(promptPayload);
-        HttpResponse<String> completionResponse = sendCompletionRequest(httpClient, sessionId, Map.of("type", "ref/prompt", "name", "inspect_metadata"),
-                "schema", "pub", Map.of());
-        assertThat(completionResponse.statusCode(), is(200));
-        Map<String, Object> completionPayload = getResultPayload(completionResponse);
-        assertTrue(String.valueOf(completionPayload).contains("missing_context"));
-        assertTrue(String.valueOf(completionPayload).contains(MCPShardingSphereMetadataKeys.MISSING_CONTEXT_ARGUMENTS));
-        assertModelFacingPayloadContract(completionPayload);
-    }
-    
-    @Test
-    void assertExposeModelFacingOutputSchemas() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendRawPostRequest(httpClient, createSessionHeaders(sessionId),
-                MCPInteractionProtocolSupport.createJsonRpcRequestBody("tools-list-1", "tools/list", Map.of()));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> actualResult = getResultPayload(actual);
-        assertModelFacingPayloadContract(actualResult);
-        List<Map<String, Object>> actualTools = MCPInteractionPayloads.getRequiredObjectList(actualResult, "tools");
-        Map<String, Object> actualSearchMetadataTool = actualTools.stream()
-                .filter(each -> "database_gateway_search_metadata".equals(each.get("name"))).findFirst().orElseThrow(IllegalStateException::new);
-        Map<String, Object> actualSearchMetadataOutputSchema = MCPInteractionPayloads.getRequiredObject(actualSearchMetadataTool, "outputSchema");
-        Map<String, Object> actualSearchMetadataOutputProperties = MCPInteractionPayloads.getRequiredObject(actualSearchMetadataOutputSchema, "properties");
-        Map<String, Object> actualSearchMetadataItems = MCPInteractionPayloads.getRequiredObject(actualSearchMetadataOutputProperties, "items");
-        Map<String, Object> actualSearchMetadataItem = MCPInteractionPayloads.getRequiredObject(actualSearchMetadataItems, "items");
-        Map<String, Object> actualSearchMetadataItemProperties = MCPInteractionPayloads.getRequiredObject(actualSearchMetadataItem, "properties");
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredObject(actualSearchMetadataItemProperties, "resource").get("type")), is("object"));
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredObject(actualSearchMetadataItemProperties, "next_resources").get("type")), is("array"));
-        Map<String, Object> actualTool = actualTools.stream()
-                .filter(each -> "database_gateway_execute_update".equals(each.get("name"))).findFirst().orElseThrow(IllegalStateException::new);
-        Map<String, Object> actualOutputSchema = MCPInteractionPayloads.getRequiredObject(actualTool, "outputSchema");
-        Map<String, Object> actualOutputProperties = MCPInteractionPayloads.getRequiredObject(actualOutputSchema, "properties");
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredObject(actualOutputProperties, "next_actions").get("type")), is("array"));
-    }
-    
-    @Test
-    void assertExposeWorkflowPayloadContracts() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> planResponse = sendToolCallRequest(httpClient, sessionId, PLAN_MASK_TOOL_NAME,
-                createMaskRulePlanArguments());
-        assertThat(planResponse.statusCode(), is(200));
-        Map<String, Object> planPayload = getToolCallPayload(planResponse.body());
-        assertThat(planResponse.body(), String.valueOf(planPayload.get("status")), is("planned"));
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredObjectList(planPayload, "next_actions").getFirst().get("tool_name")), is(WorkflowToolDescriptors.APPLY_TOOL_NAME));
-        assertModelFacingPayloadContract(planPayload);
-        String planId = String.valueOf(planPayload.get("plan_id"));
-        HttpResponse<String> previewResponse = sendToolCallRequest(httpClient, sessionId, WorkflowToolDescriptors.APPLY_TOOL_NAME,
-                Map.of("plan_id", planId, "execution_mode", "preview"));
-        assertThat(previewResponse.statusCode(), is(200));
-        Map<String, Object> previewPayload = getToolCallPayload(previewResponse.body());
-        assertThat(String.valueOf(previewPayload.get("status")), is("preview"));
-        assertFalse((Boolean) previewPayload.get("would_apply"));
-        assertModelFacingPayloadContract(previewPayload);
-        HttpResponse<String> manualApplyResponse = sendToolCallRequest(httpClient, sessionId, WorkflowToolDescriptors.APPLY_TOOL_NAME,
-                Map.of("plan_id", planId, "execution_mode", "manual-only"));
-        assertThat(manualApplyResponse.statusCode(), is(200));
-        Map<String, Object> manualApplyPayload = getToolCallPayload(manualApplyResponse.body());
-        assertThat(String.valueOf(manualApplyPayload.get("status")), is("awaiting-manual-execution"));
-        assertModelFacingPayloadContract(manualApplyPayload);
-        HttpResponse<String> validationResponse = sendToolCallRequest(httpClient, sessionId, WorkflowToolDescriptors.VALIDATE_TOOL_NAME, Map.of("plan_id", planId));
-        assertThat(validationResponse.statusCode(), is(200));
-        Map<String, Object> validationPayload = getToolCallPayload(validationResponse.body());
-        assertThat(String.valueOf(validationPayload.get("status")), is("failed"));
-        assertFalse(String.valueOf(validationPayload.get("recovery_guidance")).isEmpty());
-        assertModelFacingPayloadContract(validationPayload);
-    }
-    
-    @Test
-    void assertPreserveUtf8ToolArgumentsForWorkflowIntent() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_plan_encrypt_rule",
-                Map.of("table", "orders", "column", "status", "natural_language_intent", "encrypt status with reversible encryption, no equality, no like"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> structuredContent = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(structuredContent.get("status")), is("clarifying"));
-        assertThat(MCPInteractionPayloads.getRequiredObjectList(structuredContent, "clarification_questions").stream()
-                .map(each -> String.valueOf(each.get("display_message"))).toList(),
-                is(List.of("Please provide logical database first.")));
-    }
-    
-    private HttpResponse<String> sendResourceListRequest(final HttpClient httpClient, final String sessionId) throws IOException, InterruptedException {
-        return sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                "resources-list-1", "resources/list", Map.of()));
-    }
-    
-    private HttpResponse<String> sendResourceTemplateListRequest(final HttpClient httpClient, final String sessionId) throws IOException, InterruptedException {
-        return sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                "resource-templates-list-1", "resources/templates/list", Map.of()));
-    }
-    
-    private HttpResponse<String> sendPromptListRequest(final HttpClient httpClient, final String sessionId) throws IOException, InterruptedException {
-        return sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                "prompts-list-1", "prompts/list", Map.of()));
-    }
-    
-    private HttpResponse<String> sendPromptGetRequest(final HttpClient httpClient, final String sessionId, final String promptName,
-                                                      final Map<String, Object> arguments) throws IOException, InterruptedException {
-        return sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                "prompt-1", "prompts/get", Map.of("name", promptName, "arguments", arguments)));
-    }
-    
-    private Map<String, Object> createMaskRulePlanArguments() {
-        return Map.of(
-                "database", "logic_db",
-                "schema", "logic_db",
-                "table", "orders",
-                "column", "status",
-                "operation_type", "create",
-                "algorithm_type", "KEEP_FIRST_N_LAST_M",
-                "primary_algorithm_properties", Map.of("first-n", "1", "last-m", "1", "replace-char", "*"));
-    }
-    
-    private Map<String, Object> getResultPayload(final HttpResponse<String> response) {
-        return MCPInteractionPayloads.getRequiredJsonRpcResult(parseJsonBody(response.body()));
-    }
-    
-    private void assertModelFacingPayloadContract(final Map<String, Object> payload) {
-        MCPModelContractAssertions.assertCanonicalNextActionLists(payload);
-    }
-    
-    private void assertRuntimeStatusSecretSafe(final Map<String, Object> runtimeStatus) {
-        String actualPayload = String.valueOf(runtimeStatus);
-        assertFalse(actualPayload.contains("Authorization: Bearer"));
-        assertFalse(actualPayload.contains("runtime-secret"));
-        assertFalse(actualPayload.contains("jdbc:"));
-        assertFalse(actualPayload.contains("at org.apache."));
-    }
-    
-    private Map<String, Object> findByKey(final List<Map<String, Object>> values, final String key, final String expectedValue) {
-        return values.stream().filter(each -> expectedValue.equals(each.get(key))).findFirst().orElseThrow();
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportProtocolContractE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportProtocolContractE2ETest.java
deleted file mode 100644
index 42b769cebec..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportProtocolContractE2ETest.java
+++ /dev/null
@@ -1,348 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.mcp.support.security.MCPRuntimeProtectionPolicy;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionProtocolSupport;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.params.ParameterizedTest;
-import org.junit.jupiter.params.provider.Arguments;
-import org.junit.jupiter.params.provider.MethodSource;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.http.HttpClient;
-import java.net.http.HttpRequest;
-import java.net.http.HttpResponse;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Stream;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-class HttpTransportProtocolContractE2ETest extends AbstractHttpProtocolOnlyE2ETest {
-    
-    @Test
-    void assertInitializeSessionAndProtocolHeaders() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpResponse<String> actual = sendInitializeRequest(httpClient);
-        assertThat(actual.statusCode(), is(200));
-        assertTrue(actual.headers().firstValue("Content-Type").orElse("").startsWith("application/json"));
-        assertThat(actual.headers().firstValue("MCP-Protocol-Version").orElse(""), is(getProtocolVersion()));
-        String actualSessionId = actual.headers().firstValue("MCP-Session-Id").orElse("");
-        assertFalse(actualSessionId.isEmpty());
-        assertTrue(actualSessionId.chars().allMatch(each -> 0x21 <= each && each <= 0x7E));
-        Map<String, Object> actualPayload = parseJsonBody(actual.body());
-        Map<String, Object> actualResult = MCPInteractionPayloads.getRequiredJsonRpcResult(actualPayload);
-        assertThat(String.valueOf(actualPayload.get("jsonrpc")), is("2.0"));
-        assertThat(String.valueOf(actualResult.get("protocolVersion")), is(getProtocolVersion()));
-        assertServerCapabilities(MCPInteractionPayloads.getRequiredObject(actualResult, "capabilities"));
-        assertThat(sendInitializedNotification(httpClient, actualSessionId).statusCode(), is(202));
-    }
-    
-    @Test
-    void assertRejectInitializeWithoutAcceptHeader() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpRequest request = HttpRequest.newBuilder(getEndpointUri())
-                .header("Content-Type", "application/json")
-                .POST(HttpRequest.BodyPublishers.ofString(MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                        "init-1", "initialize", MCPInteractionProtocolSupport.createInitializeRequestParams("mcp-e2e-programmatic"))))
-                .build();
-        HttpResponse<String> actual = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
-        assertThat(actual.statusCode(), is(400));
-        assertFalse(actual.headers().firstValue("MCP-Session-Id").isPresent());
-    }
-    
-    @Test
-    void assertRejectInitializeWithUnsupportedAcceptHeader() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpResponse<String> actual = sendInitializeRequest(httpClient, Map.of("Accept", "application/json"),
-                MCPInteractionProtocolSupport.createInitializeRequestParams("mcp-e2e-programmatic"));
-        assertThat(actual.statusCode(), is(400));
-        assertFalse(actual.headers().firstValue("MCP-Session-Id").isPresent());
-    }
-    
-    @Test
-    void assertAcceptInitializeWithParameterizedAcceptHeader() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpResponse<String> actual = sendInitializeRequest(httpClient,
-                Map.of("Accept", "application/json; charset=utf-8, text/event-stream; charset=utf-8"),
-                MCPInteractionProtocolSupport.createInitializeRequestParams("mcp-e2e-programmatic"));
-        assertThat(actual.statusCode(), is(200));
-        assertThat(actual.headers().firstValue("MCP-Protocol-Version").orElse(""), is(getProtocolVersion()));
-    }
-    
-    @Test
-    void assertRejectEventStreamWithoutAcceptHeader() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = openEventStream(httpClient, createSessionHeaders(sessionId));
-        assertThat(actual.statusCode(), is(400));
-    }
-    
-    @Test
-    void assertRejectUnsupportedActiveEventStream() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        Map<String, String> headers = new LinkedHashMap<>(createSessionHeaders(sessionId));
-        headers.put("Accept", "text/event-stream");
-        HttpResponse<InputStream> actual = openEventStreamInputStream(httpClient, headers);
-        try (InputStream ignored = actual.body()) {
-            assertThat(actual.statusCode(), is(405));
-        }
-    }
-    
-    @Test
-    void assertReturnToolErrorForInvalidIntegerArgument() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update", createInvalidUpdateArguments());
-        Map<String, Object> actualRecovery = assertToolErrorRecovery(actual, "invalid_integer_argument");
-        assertThat(actualRecovery.get("field"), is("max_rows"));
-        assertThat(actualRecovery.get("minimum_value"), is(0));
-        assertThat(actualRecovery.get("maximum_value"), is(5000));
-        assertThat(actualRecovery.get("suggested_value"), is(100));
-    }
-    
-    @Test
-    void assertReturnToolErrorForSchemaAdditionalProperties() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_plan_readwrite_splitting_rule",
-                Map.of("load_balancer_properties", Map.of("weight", 1)));
-        Map<String, Object> actualRecovery = assertToolErrorRecovery(actual, "invalid_argument_type");
-        assertThat(actualRecovery.get("field"), is("load_balancer_properties.weight"));
-        assertThat(actualRecovery.get("expected_type"), is("string"));
-    }
-    
-    @Test
-    void assertReturnJsonRpcErrorForUnsupportedTool() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(
-                "missing-tool-1", "tools/call", Map.of("name", "database_gateway_missing_tool", "arguments", Map.of())));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> actualPayload = parseJsonBody(actual.body());
-        assertTrue(MCPInteractionPayloads.hasJsonRpcError(actualPayload));
-        assertFalse(actualPayload.containsKey("result"));
-        Map<String, Object> actualError = MCPInteractionPayloads.getRequiredObject(actualPayload, "error");
-        assertTrue(actualError.containsKey("code"));
-        assertTrue(actualError.containsKey("message"));
-    }
-    
-    @Test
-    void assertExposeToolInputSchemaConstraints() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        Map<String, Object> actualResult = sendInitializedRequest(httpClient, sessionId, "tools-list-constraints", "tools/list", Map.of());
-        Map<String, Object> actualTool = MCPInteractionPayloads.getRequiredObjectList(actualResult, "tools").stream()
-                .filter(each -> "database_gateway_execute_update".equals(each.get("name"))).findFirst().orElseThrow();
-        Map<String, Object> actualInputSchema = MCPInteractionPayloads.getRequiredObject(actualTool, "inputSchema");
-        Map<String, Object> actualProperties = MCPInteractionPayloads.getRequiredObject(actualInputSchema, "properties");
-        Map<String, Object> actualMaxRows = MCPInteractionPayloads.getRequiredObject(actualProperties, "max_rows");
-        assertThat(actualMaxRows.get("minimum"), is(0));
-        assertThat(actualMaxRows.get("maximum"), is(5000));
-        assertThat(MCPInteractionPayloads.getRequiredObject(actualProperties, "execution_mode").get("enum"), is(List.of("execute", "preview")));
-    }
-    
-    @ParameterizedTest(name = "{0}")
-    @MethodSource("listMethodCases")
-    void assertListMethodCompletesWithoutPaginationCursor(final String method, final String resultKey) throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        Map<String, Object> actualResult = sendInitializedRequest(httpClient, sessionId, method + "-1", method, Map.of());
-        assertFalse(MCPInteractionPayloads.getRequiredObjectList(actualResult, resultKey).isEmpty());
-        assertFalse(actualResult.containsKey("nextCursor"));
-    }
-    
-    @ParameterizedTest(name = "{0}")
-    @MethodSource("listMethodCases")
-    void assertListMethodAcceptsPaginationCursorParameter(final String method, final String resultKey) throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        Map<String, Object> actualResult = sendInitializedRequest(httpClient, sessionId, method + "-cursor-1", method, Map.of("cursor", "opaque-cursor"));
-        assertFalse(MCPInteractionPayloads.getRequiredObjectList(actualResult, resultKey).isEmpty());
-        assertFalse(actualResult.containsKey("nextCursor"));
-    }
-    
-    @Test
-    void assertEnforceToolCallLimitPerSession() throws IOException, InterruptedException {
-        String propertyName = MCPRuntimeProtectionPolicy.MAX_TOOL_CALLS_PER_SESSION_PROPERTY;
-        String originalValue = System.getProperty(propertyName);
-        System.setProperty(propertyName, "1");
-        try {
-            launchHttpTransport();
-            HttpClient httpClient = HttpClient.newHttpClient();
-            String sessionId = initializeSession(httpClient);
-            assertToolErrorRecovery(sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update", createInvalidUpdateArguments()), "invalid_integer_argument");
-            Map<String, Object> actualRecovery = assertToolErrorRecovery(
-                    sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update", createInvalidUpdateArguments()), "tool_call_limit_exceeded");
-            assertThat(actualRecovery.get("session_id"), is(sessionId));
-            assertThat(actualRecovery.get("max_tool_calls_per_session"), is(1));
-            String otherSessionId = initializeSession(httpClient);
-            assertToolErrorRecovery(sendToolCallRequest(httpClient, otherSessionId, "database_gateway_execute_update", createInvalidUpdateArguments()), "invalid_integer_argument");
-        } finally {
-            restoreProperty(propertyName, originalValue);
-        }
-    }
-    
-    @Test
-    void assertAcceptInitializeWithUnsupportedProtocolVersion() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        Map<String, Object> initializeRequestParams = new LinkedHashMap<>(MCPInteractionProtocolSupport.createInitializeRequestParams("mcp-e2e-programmatic"));
-        initializeRequestParams.put("protocolVersion", "2025-06-18");
-        HttpResponse<String> actual = sendInitializeRequest(httpClient, initializeRequestParams);
-        assertThat(actual.statusCode(), is(200));
-        assertThat(actual.headers().firstValue("MCP-Protocol-Version").orElse(""), is(getProtocolVersion()));
-        Map<String, Object> actualPayload = parseJsonBody(actual.body());
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredJsonRpcResult(actualPayload).get("protocolVersion")), is(getProtocolVersion()));
-    }
-    
-    @Test
-    void assertRejectInitializeWithoutProtocolVersion() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        Map<String, Object> initializeRequestParams = new LinkedHashMap<>(MCPInteractionProtocolSupport.createInitializeRequestParams("mcp-e2e-programmatic"));
-        initializeRequestParams.remove("protocolVersion");
-        HttpResponse<String> actual = sendInitializeRequest(httpClient, initializeRequestParams);
-        assertThat(actual.statusCode(), is(400));
-        assertFalse(actual.headers().firstValue("MCP-Session-Id").isPresent());
-    }
-    
-    @Test
-    void assertRejectFollowUpRequestWithProtocolMismatch() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendCapabilitiesRequest(httpClient, Map.of("MCP-Session-Id", sessionId, "MCP-Protocol-Version", "2025-06-18"));
-        assertThat(actual.statusCode(), is(400));
-    }
-    
-    @Test
-    void assertRejectFollowUpRequestWithoutProtocolHeader() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendCapabilitiesRequest(httpClient, Map.of("MCP-Session-Id", sessionId));
-        assertThat(actual.statusCode(), is(400));
-    }
-    
-    @Test
-    void assertRejectFollowUpRequestWithMissingSession() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        initializeSession(httpClient);
-        HttpResponse<String> actual = sendCapabilitiesRequest(httpClient, Map.of("MCP-Session-Id", "missing-session"));
-        assertThat(actual.statusCode(), is(404));
-        assertThat(String.valueOf(parseJsonBody(actual.body()).get("message")), is("Session not found: missing-session"));
-    }
-    
-    @Test
-    void assertRejectDeleteWithoutSessionHeader() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpResponse<String> actual = sendDeleteRequest(httpClient, Map.of("MCP-Protocol-Version", getProtocolVersion()));
-        assertThat(actual.statusCode(), is(400));
-        assertThat(String.valueOf(parseJsonBody(actual.body()).get("message")), is("Session ID required in mcp-session-id header"));
-    }
-    
-    @Test
-    void assertCloseSessionOnDelete() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        Map<String, String> sessionHeaders = Map.of("MCP-Session-Id", sessionId, "MCP-Protocol-Version", getProtocolVersion());
-        HttpResponse<String> deleteResponse = sendDeleteRequest(httpClient, sessionHeaders);
-        HttpResponse<String> actual = sendCapabilitiesRequest(httpClient, sessionHeaders);
-        assertThat(deleteResponse.statusCode(), is(200));
-        assertThat(actual.statusCode(), is(404));
-        assertThat(String.valueOf(parseJsonBody(actual.body()).get("message")), is("Session not found: " + sessionId));
-    }
-    
-    private static Stream<Arguments> listMethodCases() {
-        return Stream.of(
-                Arguments.of("tools/list", "tools"),
-                Arguments.of("resources/list", "resources"),
-                Arguments.of("resources/templates/list", "resourceTemplates"),
-                Arguments.of("prompts/list", "prompts"));
-    }
-    
-    private void assertServerCapabilities(final Map<String, Object> capabilities) {
-        assertTrue(capabilities.containsKey("completions"));
-        assertFalse(capabilities.containsKey("experimental"));
-        assertFalse(capabilities.containsKey("tasks"));
-        Map<String, Object> resources = MCPInteractionPayloads.getRequiredObject(capabilities, "resources");
-        assertFalse((boolean) resources.get("subscribe"));
-        assertFalse((boolean) resources.get("listChanged"));
-        Map<String, Object> tools = MCPInteractionPayloads.getRequiredObject(capabilities, "tools");
-        assertFalse((boolean) tools.get("listChanged"));
-        Map<String, Object> prompts = MCPInteractionPayloads.getRequiredObject(capabilities, "prompts");
-        assertFalse((boolean) prompts.get("listChanged"));
-    }
-    
-    private Map<String, Object> sendInitializedRequest(final HttpClient httpClient, final String sessionId, final String requestId, final String method,
-                                                       final Map<String, Object> params) throws IOException, InterruptedException {
-        HttpResponse<String> actual = sendRawPostRequest(httpClient, createSessionHeaders(sessionId), MCPInteractionProtocolSupport.createJsonRpcRequestBody(requestId, method, params));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> actualPayload = parseJsonBody(actual.body());
-        return MCPInteractionPayloads.getRequiredJsonRpcResult(actualPayload);
-    }
-    
-    private Map<String, Object> assertToolErrorRecovery(final HttpResponse<String> response, final String expectedCategory) {
-        assertThat(response.statusCode(), is(200));
-        Map<String, Object> payload = parseJsonBody(response.body());
-        Map<String, Object> result = MCPInteractionPayloads.getRequiredJsonRpcResult(payload);
-        assertTrue((boolean) result.get("isError"));
-        assertFalse(result.containsKey("structuredContent"));
-        Map<String, Object> structuredContent = MCPInteractionPayloads.getToolCallPayload(payload);
-        assertThat(structuredContent.get("response_mode"), is("recovery"));
-        Map<String, Object> actualRecovery = MCPInteractionPayloads.getRequiredObject(structuredContent, "recovery");
-        assertThat(actualRecovery.get("category"), is(expectedCategory));
-        return actualRecovery;
-    }
-    
-    private Map<String, Object> createInvalidUpdateArguments() {
-        return Map.of("database", "logic_db", "sql", "UPDATE orders SET status = 'PAID' WHERE order_id = 1", "execution_mode", "preview", "max_rows", 5001);
-    }
-    
-    private void restoreProperty(final String propertyName, final String originalValue) {
-        if (null == originalValue) {
-            System.clearProperty(propertyName);
-        } else {
-            System.setProperty(propertyName, originalValue);
-        }
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportRecoveryE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportRecoveryE2ETest.java
deleted file mode 100644
index f9e79827ec3..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportRecoveryE2ETest.java
+++ /dev/null
@@ -1,188 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.mcp.support.workflow.descriptor.WorkflowToolDescriptors;
-import org.apache.shardingsphere.test.e2e.mcp.support.assertion.MCPModelContractAssertions;
-import org.apache.shardingsphere.test.e2e.mcp.support.fixture.MCPWorkflowSecretReferenceFixture;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class HttpTransportRecoveryE2ETest extends AbstractSharedHttpProgrammaticRuntimeE2ETest {
-    
-    private static final String RECOVERY_SECRET = "recovery-secret-value";
-    
-    @Test
-    void assertRecoverMissingDatabase() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_query", Map.of("schema", "logic_db", "sql", "SELECT * FROM orders"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        getRecoveryPayload(payload, "missing_context");
-        Map<String, Object> nextAction = getFirstNextAction(payload);
-        assertThat(String.valueOf(nextAction.get("type")), is("resource_read"));
-        assertThat(String.valueOf(nextAction.get("resource_uri")), is("shardingsphere://databases"));
-        HttpResponse<String> followUp = sendResourceReadRequest(httpClient, sessionId, String.valueOf(nextAction.get("resource_uri")));
-        assertThat(followUp.statusCode(), is(200));
-        Map<String, Object> resourcePayload = getFirstResourcePayload(followUp.body());
-        assertThat(String.valueOf(resourcePayload.get("response_mode")), is("list"));
-        assertDatabaseListContains(resourcePayload, "logic_db");
-        assertModelFacingPayloadContract(payload);
-        assertModelFacingPayloadContract(resourcePayload);
-    }
-    
-    @Test
-    void assertRecoverWrongSqlTool() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_query",
-                Map.of("database", "logic_db", "schema", "logic_db", "sql", "UPDATE orders SET status = status WHERE order_id = -1"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        getRecoveryPayload(payload, "unsafe_sql");
-        Map<String, Object> nextAction = getFirstNextAction(payload);
-        assertThat(String.valueOf(nextAction.get("tool_name")), is("database_gateway_execute_update"));
-        Map<String, Object> retryArguments = MCPInteractionPayloads.getRequiredObject(nextAction, "arguments");
-        assertThat(String.valueOf(retryArguments.get("execution_mode")), is("preview"));
-        HttpResponse<String> retry = sendToolCallRequest(httpClient, sessionId, "database_gateway_execute_update", retryArguments);
-        assertThat(retry.statusCode(), is(200));
-        assertThat(String.valueOf(getToolCallPayload(retry.body()).get("result_kind")), is("preview"));
-        assertModelFacingPayloadContract(payload);
-    }
-    
-    @Test
-    void assertRecoverStaleWorkflowPlan() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, WorkflowToolDescriptors.APPLY_TOOL_NAME,
-                Map.of("plan_id", "plan-missing", "execution_mode", "preview"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        Map<String, Object> recovery = getRecoveryPayload(payload, "stale_workflow");
-        assertThat(String.valueOf(recovery.get("plan_id")), is("plan-missing"));
-        Map<String, Object> nextAction = getFirstNextAction(payload);
-        assertThat(String.valueOf(nextAction.get("type")), is("completion"));
-        Map<String, Object> argument = MCPInteractionPayloads.getRequiredObject(nextAction, "argument");
-        assertThat(argument.get("name"), is("plan_id"));
-        Map<String, Object> reference = MCPInteractionPayloads.getRequiredObject(nextAction, "ref");
-        HttpResponse<String> completion = sendCompletionRequest(httpClient, sessionId, reference, String.valueOf(argument.get("name")), "", Map.of());
-        assertThat(completion.statusCode(), is(200));
-        Map<String, Object> completionPayload = getResultPayload(completion);
-        assertThat(MCPInteractionPayloads.getRequiredObject(completionPayload, "completion").get("total"), is(0));
-        assertModelFacingPayloadContract(payload);
-        assertModelFacingPayloadContract(completionPayload);
-    }
-    
-    @Test
-    void assertWorkflowRecoveryRedactsEncryptSecret() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> planResponse = sendToolCallRequest(httpClient, sessionId, "database_gateway_plan_encrypt_rule", createEncryptRulePlanArguments());
-        assertThat(planResponse.statusCode(), is(200));
-        assertFalse(planResponse.body().contains(RECOVERY_SECRET), planResponse.body());
-        String planId = String.valueOf(getToolCallPayload(planResponse.body()).get("plan_id"));
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, WorkflowToolDescriptors.APPLY_TOOL_NAME, Map.of("plan_id", planId));
-        assertThat(actual.statusCode(), is(200));
-        assertFalse(actual.body().contains(RECOVERY_SECRET), actual.body());
-        Map<String, Object> payload = getToolCallPayload(actual.body());
-        Map<String, Object> recovery = getRecoveryPayload(payload, "missing_context");
-        assertThat(String.valueOf(recovery.get("category")), is("missing_execution_mode"));
-        assertModelFacingPayloadContract(payload);
-    }
-    
-    @Test
-    void assertWorkflowResponseRedactsSecretReference() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> planResponse = sendToolCallRequest(httpClient, sessionId, "database_gateway_plan_encrypt_rule", createSecretReferencedEncryptRulePlanArguments());
-        assertThat(planResponse.statusCode(), is(200));
-        assertSecretReferenceRedacted(planResponse.body());
-        Map<String, Object> planPayload = getToolCallPayload(planResponse.body());
-        assertModelFacingPayloadContract(planPayload);
-        String planId = String.valueOf(planPayload.get("plan_id"));
-        HttpResponse<String> previewResponse = sendToolCallRequest(httpClient, sessionId, WorkflowToolDescriptors.APPLY_TOOL_NAME,
-                Map.of("plan_id", planId, "execution_mode", "preview"));
-        assertThat(previewResponse.statusCode(), is(200));
-        assertSecretReferenceRedacted(previewResponse.body());
-        assertModelFacingPayloadContract(getToolCallPayload(previewResponse.body()));
-    }
-    
-    private Map<String, Object> createSecretReferencedEncryptRulePlanArguments() {
-        return Map.of(
-                "database", "logic_db",
-                "schema", "logic_db",
-                "table", "orders",
-                "column", "status",
-                "operation_type", "create",
-                "algorithm_type", "AES",
-                "primary_algorithm_properties", Map.of("aes-key-value", MCPWorkflowSecretReferenceFixture.createSecretReferenceInput()),
-                "structured_intent_evidence", Map.of("requires_equality_filter", false, "requires_like_query", false));
-    }
-    
-    private void assertSecretReferenceRedacted(final String payload) {
-        assertFalse(payload.contains(MCPWorkflowSecretReferenceFixture.SECRET_REF), payload);
-        assertFalse(payload.contains(MCPWorkflowSecretReferenceFixture.INPUT_LABEL), payload);
-    }
-    
-    private Map<String, Object> getFirstNextAction(final Map<String, Object> payload) {
-        return MCPInteractionPayloads.getRequiredObjectList(payload, "next_actions").getFirst();
-    }
-    
-    private void assertDatabaseListContains(final Map<String, Object> payload, final String expectedDatabase) {
-        assertTrue(MCPInteractionPayloads.getRequiredObjectList(payload, "items").stream().anyMatch(each -> expectedDatabase.equals(each.get("database"))));
-    }
-    
-    private Map<String, Object> createEncryptRulePlanArguments() {
-        return Map.of(
-                "database", "logic_db",
-                "schema", "logic_db",
-                "table", "orders",
-                "column", "status",
-                "operation_type", "create",
-                "algorithm_type", "AES",
-                "primary_algorithm_properties", Map.of("aes-key-value", RECOVERY_SECRET),
-                "structured_intent_evidence", Map.of("requires_equality_filter", false, "requires_like_query", false));
-    }
-    
-    private Map<String, Object> getResultPayload(final HttpResponse<String> response) {
-        return MCPInteractionPayloads.getRequiredJsonRpcResult(parseJsonBody(response.body()));
-    }
-    
-    private void assertModelFacingPayloadContract(final Map<String, Object> payload) {
-        MCPModelContractAssertions.assertCanonicalNextActionLists(payload);
-    }
-    
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSecurityE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSecurityE2ETest.java
deleted file mode 100644
index ea00f11cd07..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSecurityE2ETest.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.mcp.bootstrap.config.HttpTransportConfiguration;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionProtocolSupport;
-import org.junit.jupiter.api.Test;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-
-class HttpTransportSecurityE2ETest extends AbstractHttpProtocolOnlyE2ETest {
-    
-    private boolean remoteBinding;
-    
-    @Override
-    protected HttpTransportConfiguration createHttpTransportConfiguration() {
-        return remoteBinding ? new HttpTransportConfiguration("0.0.0.0", 0, getHttpEndpointPath()) : super.createHttpTransportConfiguration();
-    }
-    
-    @Test
-    void assertAcceptInitializeWithIpv6LoopbackOrigin() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpResponse<String> actual = sendInitializeRequest(httpClient, Map.of("Origin", "http://[::1]:8080"), createInitializeRequestParams());
-        assertThat(actual.statusCode(), is(200));
-        assertFalse(actual.headers().firstValue("MCP-Session-Id").orElse("").isEmpty());
-    }
-    
-    @Test
-    void assertRejectInitializeWithInvalidOrigin() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpResponse<String> actual = sendInitializeRequest(httpClient, Map.of("Origin", "https://evil.example.com"), createInitializeRequestParams());
-        assertThat(actual.statusCode(), is(403));
-    }
-    
-    @Test
-    void assertAcceptInitializeWithoutOriginForRemoteBinding() throws IOException, InterruptedException {
-        launchRemoteHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpResponse<String> actual = sendInitializeRequest(httpClient, Map.of(), createInitializeRequestParams());
-        assertThat(actual.statusCode(), is(200));
-        assertFalse(actual.headers().firstValue("MCP-Session-Id").orElse("").isEmpty());
-    }
-    
-    @Test
-    void assertRejectInitializeWithPresentRemoteOrigin() throws IOException, InterruptedException {
-        launchRemoteHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        HttpResponse<String> actual = sendInitializeRequest(httpClient, Map.of("Origin", "https://gateway.example.test"), createInitializeRequestParams());
-        assertThat(actual.statusCode(), is(403));
-    }
-    
-    private void launchRemoteHttpTransport() throws IOException {
-        remoteBinding = true;
-        launchHttpTransport();
-    }
-    
-    private Map<String, Object> createInitializeRequestParams() {
-        return new LinkedHashMap<>(MCPInteractionProtocolSupport.createInitializeRequestParams("mcp-e2e-security"));
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSessionAttributionE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSessionAttributionE2ETest.java
deleted file mode 100644
index b2bdd6b83ab..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSessionAttributionE2ETest.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.mcp.bootstrap.config.HttpTransportConfiguration;
-import org.apache.shardingsphere.mcp.bootstrap.config.SessionAttributionSourceConfiguration;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionProtocolSupport;
-import org.junit.jupiter.api.Test;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-class HttpTransportSessionAttributionE2ETest extends AbstractHttpProtocolOnlyE2ETest {
-    
-    private static final String SUBJECT_HEADER = "X-Test-Subject";
-    
-    private static final String SOURCE_HEADER = "X-Test-Source";
-    
-    private static final String ATTRIBUTE_HEADER = "X-Test-Attr-Region";
-    
-    @Test
-    void assertAcceptMatchedSessionAttribution() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeAttributedSession(httpClient);
-        assertThat(sendCapabilitiesRequest(httpClient, createAttributedSessionHeaders(sessionId, "subject")).statusCode(), is(200));
-    }
-    
-    @Test
-    void assertRejectChangedSessionAttribution() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeAttributedSession(httpClient);
-        HttpResponse<String> actual = sendCapabilitiesRequest(httpClient, createAttributedSessionHeaders(sessionId, "other"));
-        assertThat(actual.statusCode(), is(400));
-        Map<String, Object> error = MCPInteractionPayloads.getRequiredObject(parseJsonBody(actual.body()), "error");
-        Map<String, Object> data = MCPInteractionPayloads.getRequiredObject(error, "data");
-        assertThat(MCPInteractionPayloads.getRequiredObject(data, "recovery").get("category"), is("session_attribution_mismatch"));
-    }
-    
-    private String initializeAttributedSession(final HttpClient httpClient) throws IOException, InterruptedException {
-        Map<String, String> headers = createAttributionHeaders("subject");
-        HttpResponse<String> initializeResponse = sendInitializeRequest(
-                httpClient, headers, MCPInteractionProtocolSupport.createInitializeRequestParams("mcp-e2e-programmatic"));
-        assertThat(initializeResponse.statusCode(), is(200));
-        String result = initializeResponse.headers().firstValue("MCP-Session-Id").orElseThrow();
-        assertThat(sendRawPostRequest(httpClient, createAttributedSessionHeaders(result, "subject"),
-                MCPInteractionProtocolSupport.createJsonRpcNotificationBody("notifications/initialized", Map.of())).statusCode(), is(202));
-        return result;
-    }
-    
-    private Map<String, String> createAttributedSessionHeaders(final String sessionId, final String subject) {
-        Map<String, String> result = new LinkedHashMap<>(createSessionHeaders(sessionId));
-        result.putAll(createAttributionHeaders(subject));
-        return result;
-    }
-    
-    private Map<String, String> createAttributionHeaders(final String subject) {
-        return Map.of(SUBJECT_HEADER, subject, SOURCE_HEADER, "gateway", ATTRIBUTE_HEADER, "ap-south");
-    }
-    
-    @Override
-    protected HttpTransportConfiguration createHttpTransportConfiguration() {
-        return new HttpTransportConfiguration("127.0.0.1", 0, getHttpEndpointPath(),
-                new SessionAttributionSourceConfiguration(SUBJECT_HEADER, SOURCE_HEADER, "X-Test-Attr-"));
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSessionLifecycleE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSessionLifecycleE2ETest.java
deleted file mode 100644
index 513e18d8411..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportSessionLifecycleE2ETest.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.junit.jupiter.api.Test;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-class HttpTransportSessionLifecycleE2ETest extends AbstractHttpProtocolOnlyE2ETest {
-    
-    @Test
-    void assertRejectOpenStreamAfterDelete() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        sendDeleteRequest(httpClient, createSessionHeaders(sessionId));
-        HttpResponse<String> actual = openEventStream(httpClient, Map.of(
-                "Accept", "text/event-stream",
-                "MCP-Session-Id", sessionId,
-                "MCP-Protocol-Version", getProtocolVersion()));
-        assertThat(actual.statusCode(), is(404));
-    }
-    
-    @Test
-    void assertRejectFollowUpRequestWithoutSessionHeader() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        initializeSession(httpClient);
-        HttpResponse<String> actual = sendCapabilitiesRequest(httpClient, Map.of("MCP-Protocol-Version", getProtocolVersion()));
-        assertThat(actual.statusCode(), is(400));
-    }
-    
-    @Test
-    void assertRejectFollowUpRequestWithMalformedRequestBody() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendRawPostRequest(httpClient, createSessionHeaders(sessionId), "not-json");
-        assertThat(actual.statusCode(), is(400));
-    }
-    
-    @Test
-    void assertRejectDeleteForClosedSession() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> firstDelete = sendDeleteRequest(httpClient, createSessionHeaders(sessionId));
-        HttpResponse<String> secondDelete = sendDeleteRequest(httpClient, Map.of("MCP-Session-Id", sessionId));
-        assertThat(firstDelete.statusCode(), is(200));
-        assertThat(secondDelete.statusCode(), is(404));
-    }
-    
-    @Test
-    void assertDeleteKeepsOtherSession() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String firstSessionId = initializeSession(httpClient);
-        String secondSessionId = initializeSession(httpClient);
-        HttpResponse<String> deleteResponse = sendDeleteRequest(httpClient, createSessionHeaders(firstSessionId));
-        HttpResponse<String> firstSessionResponse = sendCapabilitiesRequest(httpClient, createSessionHeaders(firstSessionId));
-        HttpResponse<String> secondSessionResponse = sendCapabilitiesRequest(httpClient, createSessionHeaders(secondSessionId));
-        assertThat(deleteResponse.statusCode(), is(200));
-        assertThat(firstSessionResponse.statusCode(), is(404));
-        assertThat(secondSessionResponse.statusCode(), is(200));
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/MetadataDiscoveryE2ETest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/MetadataDiscoveryE2ETest.java
deleted file mode 100644
index 8f9792e85f3..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/MetadataDiscoveryE2ETest.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.runtime.programmatic;
-
-import org.apache.shardingsphere.test.e2e.mcp.support.transport.MCPInteractionPayloads;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.EnabledIf;
-
-import java.io.IOException;
-import java.net.http.HttpClient;
-import java.net.http.HttpResponse;
-import java.util.List;
-import java.util.Map;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-
-@EnabledIf("org.apache.shardingsphere.test.e2e.mcp.env.MCPE2ECondition#isDockerEnabled")
-class MetadataDiscoveryE2ETest extends AbstractSharedHttpProgrammaticRuntimeE2ETest {
-    
-    @Test
-    void assertSearchMetadataTablesAndViews() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_search_metadata",
-                Map.of("database", "logic_db", "schema", "logic_db", "query", "order", "object_types", List.of("table", "view")));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> actualPayload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(actualPayload.get("response_mode")), is("search"));
-        assertThat(actualPayload.get("count"), is(3));
-        assertThat(actualPayload.get("total_match_count"), is(3));
-        assertThat(getItemNames(actualPayload), is(List.of("order_items", "orders", "active_orders")));
-        List<Map<String, Object>> actualItems = getItems(actualPayload);
-        Map<String, Object> actualResource = MCPInteractionPayloads.getRequiredObject(actualItems.get(1), "resource");
-        assertThat(String.valueOf(actualResource.get("uri")), is("shardingsphere://databases/logic_db/schemas/logic_db/tables/orders"));
-        assertThat(MCPInteractionPayloads.getRequiredObjectList(actualItems.get(1), "next_resources").stream()
-                .map(each -> String.valueOf(each.get("uri"))).toList(),
-                is(List.of("shardingsphere://databases/logic_db/schemas/logic_db/tables/orders/columns",
-                        "shardingsphere://databases/logic_db/schemas/logic_db/tables/orders/indexes")));
-        HttpResponse<String> tableResource = sendResourceReadRequest(httpClient, sessionId, String.valueOf(actualResource.get("uri")));
-        assertThat(tableResource.statusCode(), is(200));
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredObjectList(getFirstResourcePayload(tableResource.body()), "items").getFirst().get("table")), is("orders"));
-    }
-    
-    @Test
-    void assertSearchMetadataAcrossDatabasesByDefault() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_search_metadata", Map.of("query", "metric"));
-        assertThat(actual.statusCode(), is(200));
-        assertThat(getItemNames(getToolCallPayload(actual.body())), is(List.of("metrics", "metric_id", "metric_name", "PRIMARY")));
-    }
-    
-    @Test
-    void assertRejectSchemaSearchWithoutDatabase() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendToolCallRequest(httpClient, sessionId, "database_gateway_search_metadata", Map.of("schema", "logic_db", "query", "order"));
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> actualPayload = getToolCallPayload(actual.body());
-        assertThat(String.valueOf(actualPayload.get("response_mode")), is("recovery"));
-        assertThat(String.valueOf(actualPayload.get("summary")), is("Schema cannot be provided without database."));
-    }
-    
-    @Test
-    void assertReadWarehouseIndexesResource() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendResourceReadRequest(httpClient, sessionId,
-                "shardingsphere://databases/warehouse/schemas/warehouse/tables/facts/indexes");
-        assertThat(actual.statusCode(), is(200));
-        List<Map<String, Object>> actualItems = MCPInteractionPayloads.getRequiredObjectList(getFirstResourcePayload(actual.body()), "items");
-        assertThat(actualItems.size(), is(1));
-        assertThat(String.valueOf(actualItems.getFirst().get("table")), is("facts"));
-        assertThat(String.valueOf(actualItems.getFirst().get("index")), is("PRIMARY"));
-    }
-    
-    @Test
-    void assertReadResourceUriWithEncodedSegments() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> databaseResource = sendResourceReadRequest(httpClient, sessionId, "shardingsphere://databases/logic%5Fdb");
-        assertThat(databaseResource.statusCode(), is(200));
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredObjectList(getFirstResourcePayload(databaseResource.body()), "items").getFirst().get("database")), is("logic_db"));
-        HttpResponse<String> tableResource = sendResourceReadRequest(httpClient, sessionId,
-                "shardingsphere://databases/logic_db/schemas/logic_db/tables/orders%20archive%2F2026");
-        assertThat(tableResource.statusCode(), is(200));
-        Map<String, Object> tablePayload = getFirstResourcePayload(tableResource.body());
-        assertThat(MCPInteractionPayloads.getRequiredObjectList(tablePayload, "items"), is(List.of()));
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredObject(tablePayload, "self_resource").get("uri")),
-                is("shardingsphere://databases/logic_db/schemas/logic_db/tables/orders%20archive%2F2026"));
-        assertThat(String.valueOf(MCPInteractionPayloads.getRequiredObject(tablePayload, "recovery").get("requested_token")), is("orders archive/2026"));
-    }
-    
-    @Test
-    void assertRejectMalformedResourceUriEncoding() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendResourceReadRequest(httpClient, sessionId, "shardingsphere://databases/logic%ZZdb");
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getFirstResourcePayload(actual.body());
-        assertThat(String.valueOf(payload.get("error_code")), is("json_rpc_error"));
-        assertThat(String.valueOf(payload.get("message")), is("Unsupported resource URI `shardingsphere://databases/logic%ZZdb`."));
-    }
-    
-    @Test
-    void assertRejectUnexpandedResourceUriTemplate() throws IOException, InterruptedException {
-        launchHttpTransport();
-        HttpClient httpClient = HttpClient.newHttpClient();
-        String sessionId = initializeSession(httpClient);
-        HttpResponse<String> actual = sendResourceReadRequest(httpClient, sessionId,
-                "shardingsphere://databases/logic_db/schemas/logic_db/tables/{table}");
-        assertThat(actual.statusCode(), is(200));
-        Map<String, Object> payload = getFirstResourcePayload(actual.body());
-        assertThat(String.valueOf(payload.get("error_code")), is("json_rpc_error"));
-        assertThat(String.valueOf(payload.get("message")), is("Unsupported resource URI `shardingsphere://databases/logic_db/schemas/logic_db/tables/{table}`."));
-    }
-    
-    private List<String> getItemNames(final Map<String, Object> payload) {
-        return getItems(payload).stream().map(each -> String.valueOf(each.get("name"))).toList();
-    }
-    
-    private List<Map<String, Object>> getItems(final Map<String, Object> payload) {
-        return MCPInteractionPayloads.getRequiredObjectList(payload, "items");
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/support/assertion/MCPBaselineContractAssertions.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/support/assertion/MCPBaselineContractAssertions.java
deleted file mode 100644
index 9abb8762f3e..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/support/assertion/MCPBaselineContractAssertions.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.support.assertion;
-
-import lombok.AccessLevel;
-import lombok.NoArgsConstructor;
-import org.yaml.snakeyaml.Yaml;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Collection;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.Map.Entry;
-
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.is;
-import static org.junit.jupiter.api.Assertions.fail;
-
-/**
- * Baseline contract assertions for normalized MCP model-facing payloads.
- */
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class MCPBaselineContractAssertions {
-    
-    private static final String PLAN_ID_PLACEHOLDER = "<plan_id>";
-    
-    /**
-     * Assert one model-facing payload projection against a normalized baseline YAML resource.
-     *
-     * @param resourcePath baseline resource path
-     * @param actual actual payload projection
-     */
-    public static void assertMatchesNormalizedBaselineContract(final String resourcePath, final Object actual) {
-        Object actualNormalized = normalize(actual);
-        Object expected = loadBaselineContract(resourcePath);
-        assertThat("Baseline contract resource: " + resourcePath + System.lineSeparator() + new Yaml().dump(actualNormalized), actualNormalized, is(expected));
-    }
-    
-    private static Object loadBaselineContract(final String resourcePath) {
-        try (InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(resourcePath)) {
-            if (null == inputStream) {
-                fail("Missing baseline contract resource: " + resourcePath);
-            }
-            Object result = new Yaml().load(inputStream);
-            return null == result ? Map.of() : result;
-        } catch (final IOException ex) {
-            throw new IllegalStateException("Failed to load baseline contract resource: " + resourcePath, ex);
-        }
-    }
-    
-    private static Object normalize(final Object value) {
-        if (value instanceof Map) {
-            return normalizeMap((Map<?, ?>) value);
-        }
-        if (value instanceof Collection) {
-            return ((Collection<?>) value).stream().map(MCPBaselineContractAssertions::normalize).toList();
-        }
-        return value;
-    }
-    
-    private static Map<String, Object> normalizeMap(final Map<?, ?> value) {
-        Map<String, Object> result = new LinkedHashMap<>(value.size(), 1F);
-        for (Entry<?, ?> entry : value.entrySet()) {
-            String key = String.valueOf(entry.getKey());
-            result.put(key, normalizeValue(key, entry.getValue()));
-        }
-        return result;
-    }
-    
-    private static Object normalizeValue(final String key, final Object value) {
-        if ("plan_id".equals(key) && value instanceof String && !((String) value).isEmpty() && !"server_generated".equals(value)) {
-            return PLAN_ID_PLACEHOLDER;
-        }
-        return normalize(value);
-    }
-}
diff --git a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/support/assertion/MCPBaselineContractAssertionsTest.java b/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/support/assertion/MCPBaselineContractAssertionsTest.java
deleted file mode 100644
index 6a4f3e79110..00000000000
--- a/test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/support/assertion/MCPBaselineContractAssertionsTest.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.test.e2e.mcp.support.assertion;
-
-import org.junit.jupiter.api.Test;
-
-import java.util.List;
-import java.util.Map;
-
-import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
-import static org.junit.jupiter.api.Assertions.assertThrows;
-
-class MCPBaselineContractAssertionsTest {
-    
-    @Test
-    void assertMatchesNormalizedBaselineContract() {
-        assertDoesNotThrow(() -> MCPBaselineContractAssertions.assertMatchesNormalizedBaselineContract(
-                "baseline-contract/assertion/normalized-plan-id.yaml",
-                Map.of("plan_id", "plan-1", "nested", List.of(Map.of("plan_id", "server_generated"), Map.of("plan_id", "plan-2")))));
-    }
-    
-    @Test
-    void assertMatchesNormalizedBaselineContractWithMissingResource() {
-        assertThrows(AssertionError.class, () -> MCPBaselineContractAssertions.assertMatchesNormalizedBaselineContract(
-                "baseline-contract/assertion/missing.yaml", Map.of()));
-    }
-}
diff --git a/test/e2e/mcp/src/test/resources/baseline-contract/assertion/normalized-plan-id.yaml b/test/e2e/mcp/src/test/resources/baseline-contract/assertion/normalized-plan-id.yaml
deleted file mode 100644
index 28372921f24..00000000000
--- a/test/e2e/mcp/src/test/resources/baseline-contract/assertion/normalized-plan-id.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-plan_id: <plan_id>
-nested:
-  - plan_id: server_generated
-  - plan_id: <plan_id>
diff --git a/test/e2e/mcp/src/test/resources/baseline-contract/model-contract/capabilities.yaml b/test/e2e/mcp/src/test/resources/baseline-contract/model-contract/capabilities.yaml
deleted file mode 100644
index 5e963505921..00000000000
--- a/test/e2e/mcp/src/test/resources/baseline-contract/model-contract/capabilities.yaml
+++ /dev/null
@@ -1,122 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-response_mode: catalog
-supportedStatementClasses: [DCL, DDL, DML, EXPLAIN, QUERY, SAVEPOINT, TRANSACTION_CONTROL]
-completionTargets: ['prompt:inspect_metadata:[database, schema]', 'prompt:plan_broadcast_rule:[database,
-    table, plan_id]', 'prompt:plan_default_shadow_algorithm:[database, algorithm_type,
-    plan_id]', 'prompt:plan_encrypt_rule:[database, schema, table, column, algorithm_type,
-    assisted_query_algorithm_type, like_query_algorithm_type, plan_id]', 'prompt:plan_mask_rule:[database,
-    schema, table, column, algorithm_type, plan_id]', 'prompt:plan_readwrite_splitting_rule:[database,
-    write_storage_unit, load_balancer_type, plan_id]', 'prompt:plan_readwrite_splitting_status:[database,
-    storage_unit, plan_id]', 'prompt:plan_shadow_algorithm_cleanup:[database, plan_id]',
-  'prompt:plan_shadow_rule:[database, source_storage_unit, shadow_storage_unit, table,
-    algorithm_type, plan_id]', 'prompt:plan_sharding_default_strategy:[database, algorithm_type,
-    plan_id]', 'prompt:plan_sharding_key_generate_strategy:[database, key_generator_type,
-    plan_id]', 'prompt:plan_sharding_key_generator:[database, key_generator_type,
-    plan_id]', 'prompt:plan_sharding_rule_component_cleanup:[database, plan_id]',
-  'prompt:plan_sharding_table_reference_rule:[database, plan_id]', 'prompt:plan_sharding_table_rule:[database,
-    algorithm_type, plan_id]', 'prompt:recover_workflow:[plan_id]', 'prompt:safe_sql_execution:[database,
-    schema]', 'resource:shardingsphere://databases/{database}/schemas/{schema}/sequences/{sequence}:[database,
-    schema, sequence]', 'resource:shardingsphere://databases/{database}/schemas/{schema}/sequences:[database,
-    schema]', 'resource:shardingsphere://databases/{database}/schemas/{schema}/tables/{table}/columns/{column}:[database,
-    schema, table, column]', 'resource:shardingsphere://databases/{database}/schemas/{schema}/tables/{table}/columns:[database,
-    schema, table]', 'resource:shardingsphere://databases/{database}/schemas/{schema}/tables/{table}/indexes/{index}:[database,
-    schema, table, index]', 'resource:shardingsphere://databases/{database}/schemas/{schema}/tables/{table}/indexes:[database,
-    schema, table]', 'resource:shardingsphere://databases/{database}/schemas/{schema}/tables/{table}:[database,
-    schema, table]', 'resource:shardingsphere://databases/{database}/schemas/{schema}/tables:[database,
-    schema]', 'resource:shardingsphere://databases/{database}/schemas/{schema}:[database,
-    schema]', 'resource:shardingsphere://databases/{database}/schemas:[database]',
-  'resource:shardingsphere://databases/{database}/single-table/default-storage-unit:[database]',
-  'resource:shardingsphere://databases/{database}/single-tables/{table}:[database,
-    table]', 'resource:shardingsphere://databases/{database}/single-tables:[database]',
-  'resource:shardingsphere://databases/{database}/storage-units/{storageUnit}/used-by-rules:[database,
-    storageUnit]', 'resource:shardingsphere://databases/{database}/storage-units/{storageUnit}:[database,
-    storageUnit]', 'resource:shardingsphere://databases/{database}/storage-units:[database]',
-  'resource:shardingsphere://databases/{database}:[database]', 'resource:shardingsphere://workflows/{plan_id}:[plan_id]']
-resourceNavigation: [database_gateway_apply_workflow->database_gateway_validate_workflow,
-  database_gateway_plan_broadcast_rule->database_gateway_apply_workflow, 'database_gateway_plan_broadcast_rule->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_default_shadow_algorithm->database_gateway_apply_workflow,
-  'database_gateway_plan_default_shadow_algorithm->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_encrypt_rule->database_gateway_apply_workflow, 'database_gateway_plan_encrypt_rule->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_mask_rule->database_gateway_apply_workflow, 'database_gateway_plan_mask_rule->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_readwrite_splitting_rule->database_gateway_apply_workflow,
-  'database_gateway_plan_readwrite_splitting_rule->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_readwrite_splitting_status->database_gateway_apply_workflow,
-  'database_gateway_plan_readwrite_splitting_status->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_shadow_algorithm_cleanup->database_gateway_apply_workflow,
-  'database_gateway_plan_shadow_algorithm_cleanup->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_shadow_rule->database_gateway_apply_workflow, 'database_gateway_plan_shadow_rule->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_sharding_default_strategy->database_gateway_apply_workflow,
-  'database_gateway_plan_sharding_default_strategy->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_sharding_key_generate_strategy->database_gateway_apply_workflow,
-  'database_gateway_plan_sharding_key_generate_strategy->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_sharding_key_generator->database_gateway_apply_workflow, 'database_gateway_plan_sharding_key_generator->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_sharding_rule_component_cleanup->database_gateway_apply_workflow,
-  'database_gateway_plan_sharding_rule_component_cleanup->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_sharding_table_reference_rule->database_gateway_apply_workflow,
-  'database_gateway_plan_sharding_table_reference_rule->shardingsphere://workflows/{plan_id}',
-  database_gateway_plan_sharding_table_rule->database_gateway_apply_workflow, 'database_gateway_plan_sharding_table_rule->shardingsphere://workflows/{plan_id}',
-  recover_workflow->database_gateway_validate_workflow, 'shardingsphere://capabilities->database_gateway_search_metadata',
-  'shardingsphere://capabilities->shardingsphere://databases', 'shardingsphere://capabilities->shardingsphere://guidance',
-  'shardingsphere://capabilities->shardingsphere://runtime', 'shardingsphere://databases/{database}->shardingsphere://databases/{database}/schemas',
-  'shardingsphere://databases/{database}->shardingsphere://databases/{database}/single-table/default-storage-unit',
-  'shardingsphere://databases/{database}->shardingsphere://databases/{database}/single-tables',
-  'shardingsphere://databases/{database}->shardingsphere://databases/{database}/storage-units',
-  'shardingsphere://databases/{database}/schemas/{schema}->shardingsphere://databases/{database}/schemas/{schema}/sequences',
-  'shardingsphere://databases/{database}/schemas/{schema}->shardingsphere://databases/{database}/schemas/{schema}/tables',
-  'shardingsphere://databases/{database}/schemas/{schema}->shardingsphere://databases/{database}/schemas/{schema}/views',
-  'shardingsphere://databases/{database}/schemas/{schema}/tables/{table}->shardingsphere://databases/{database}/schemas/{schema}/tables/{table}/columns',
-  'shardingsphere://databases/{database}/schemas/{schema}/tables/{table}->shardingsphere://databases/{database}/schemas/{schema}/tables/{table}/indexes',
-  'shardingsphere://databases/{database}/schemas/{schema}/views/{view}->shardingsphere://databases/{database}/schemas/{schema}/views/{view}/columns',
-  'shardingsphere://databases/{database}/storage-units/{storageUnit}->shardingsphere://databases/{database}/storage-units/{storageUnit}/used-by-rules',
-  'shardingsphere://features/broadcast/databases/{database}/rule-count->shardingsphere://features/broadcast/databases/{database}/rules',
-  'shardingsphere://features/broadcast/databases/{database}/rules->database_gateway_plan_broadcast_rule',
-  'shardingsphere://features/broadcast/databases/{database}/tables/{table}/rule->database_gateway_plan_broadcast_rule',
-  'shardingsphere://features/encrypt/algorithms->database_gateway_plan_encrypt_rule',
-  'shardingsphere://features/encrypt/databases/{database}/rules->database_gateway_plan_encrypt_rule',
-  'shardingsphere://features/encrypt/databases/{database}/tables/{table}/rules->database_gateway_plan_encrypt_rule',
-  'shardingsphere://features/mask/algorithms->database_gateway_plan_mask_rule', 'shardingsphere://features/mask/databases/{database}/rules->database_gateway_plan_mask_rule',
-  'shardingsphere://features/mask/databases/{database}/tables/{table}/rules->database_gateway_plan_mask_rule',
-  'shardingsphere://features/readwrite-splitting/databases/{database}/rules->database_gateway_plan_readwrite_splitting_rule',
-  'shardingsphere://features/readwrite-splitting/databases/{database}/rules/{rule}->database_gateway_plan_readwrite_splitting_rule',
-  'shardingsphere://features/readwrite-splitting/databases/{database}/rules/{rule}/status->database_gateway_plan_readwrite_splitting_status',
-  'shardingsphere://features/readwrite-splitting/databases/{database}/status->database_gateway_plan_readwrite_splitting_status',
-  'shardingsphere://features/readwrite-splitting/load-balance-algorithm-plugins->database_gateway_plan_readwrite_splitting_rule',
-  'shardingsphere://features/shadow/algorithm-plugins->database_gateway_plan_default_shadow_algorithm',
-  'shardingsphere://features/shadow/algorithm-plugins->database_gateway_plan_shadow_rule',
-  'shardingsphere://features/shadow/databases/{database}/algorithms->database_gateway_plan_shadow_algorithm_cleanup',
-  'shardingsphere://features/shadow/databases/{database}/default-algorithm->database_gateway_plan_default_shadow_algorithm',
-  'shardingsphere://features/shadow/databases/{database}/rules->database_gateway_plan_shadow_rule',
-  'shardingsphere://features/shadow/databases/{database}/table-rules->database_gateway_plan_shadow_rule',
-  'shardingsphere://features/sharding/algorithm-plugins->database_gateway_plan_sharding_default_strategy',
-  'shardingsphere://features/sharding/algorithm-plugins->database_gateway_plan_sharding_table_rule',
-  'shardingsphere://features/sharding/databases/{database}/default-strategy->database_gateway_plan_sharding_default_strategy',
-  'shardingsphere://features/sharding/databases/{database}/key-generate-strategies->database_gateway_plan_sharding_key_generate_strategy',
-  'shardingsphere://features/sharding/databases/{database}/key-generate-strategies/{strategy}->database_gateway_plan_sharding_key_generate_strategy',
-  'shardingsphere://features/sharding/databases/{database}/key-generators->database_gateway_plan_sharding_key_generator',
-  'shardingsphere://features/sharding/databases/{database}/key-generators/{keyGenerator}->database_gateway_plan_sharding_key_generator',
-  'shardingsphere://features/sharding/databases/{database}/table-reference-rules->database_gateway_plan_sharding_table_reference_rule',
-  'shardingsphere://features/sharding/databases/{database}/table-reference-rules/{rule}->database_gateway_plan_sharding_table_reference_rule',
-  'shardingsphere://features/sharding/databases/{database}/table-rules->database_gateway_plan_sharding_table_rule',
-  'shardingsphere://features/sharding/databases/{database}/tables/{table}/nodes->database_gateway_plan_sharding_table_rule',
-  'shardingsphere://features/sharding/databases/{database}/tables/{table}/table-rule->database_gateway_plan_sharding_table_rule',
-  'shardingsphere://features/sharding/databases/{database}/unused-algorithms->database_gateway_plan_sharding_rule_component_cleanup',
-  'shardingsphere://features/sharding/databases/{database}/unused-auditors->database_gateway_plan_sharding_rule_component_cleanup',
-  'shardingsphere://features/sharding/databases/{database}/unused-key-generators->database_gateway_plan_sharding_rule_component_cleanup',
-  'shardingsphere://features/sharding/key-generate-algorithm-plugins->database_gateway_plan_sharding_key_generate_strategy',
-  'shardingsphere://features/sharding/key-generate-algorithm-plugins->database_gateway_plan_sharding_key_generator']
diff --git a/test/e2e/mcp/src/test/resources/baseline-contract/model-contract/guidance.yaml b/test/e2e/mcp/src/test/resources/baseline-contract/model-contract/guidance.yaml
deleted file mode 100644
index 19f4436fcb3..00000000000
--- a/test/e2e/mcp/src/test/resources/baseline-contract/model-contract/guidance.yaml
+++ /dev/null
@@ -1,143 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-response_mode: guidance
-discovery:
-  official_discovery_methods: {tools: tools/list, resources: resources/list, resource_templates: resources/templates/list,
-    prompts: prompts/list}
-  argument_completion_method: completion/complete
-  guidance_resource_role: shardingsphere://guidance complements MCP list methods with
-    ShardingSphere domain guidance, workflow guidance, and side-effect notes.
-model_contract:
-  metadata_first_resource: shardingsphere://databases
-  preflight_rule: Use database_gateway_validate_runtime_database with a configured
-    database name before onboarding or troubleshooting runtime connectivity.
-  sql_tool_selection: {read_only: Use database_gateway_execute_query for one parser-approved
-      SELECT statement., explain: Use database_gateway_execute_explain_query with
-      the original SELECT and a model-generated database-native EXPLAIN SQL; do not
-      use EXPLAIN ANALYZE., side_effecting: Use database_gateway_execute_update with
-      execution_mode=preview before execution.}
-  workflow_session_rule: Reuse the current-session plan_id returned by a planning
-    tool; re-plan when the plan is unavailable.
-  side_effect_rule: Preview before side effects and continue only when the requested
-    side effect is still intended.
-  completion_rule: Use completion/complete for one uncertain argument at a time; when
-    completion reports missing context, follow meta.next_actions before guessing.
-  resource_template_rule: Use resources/templates/list to discover URI variables,
-    then read the nearest concrete resource before filling dependent completion context.
-  next_action_rule: 'Use canonical next_actions fields: type, tool_name, resource_uri,
-    and arguments.'
-  detail_resource_rule: Use resource descriptors, outputSchema, and returned payload
-    keys before assuming detail fields.
-  recovery_rule: When a call fails, follow top-level next_actions before inventing
-    a new call.
-  payload_field_rule: ShardingSphere-owned structured payload fields use snake_case.
-  descriptor_field_rule: Descriptor-derived MCP schema fields keep the protocol or
-    JSON Schema field names required by MCP clients.
-next_action_contract:
-- type: resource_read
-  required_fields: [order, type, title, resource_uri]
-  optional_fields: [reason, depends_on]
-  description: Read an MCP resource before choosing another call.
-- type: tool_call
-  required_fields: [order, type, title, tool_name, arguments]
-  optional_fields: [reason, depends_on]
-  description: Call another MCP tool with server-suggested arguments.
-- type: completion
-  required_fields: [order, type, title, ref, argument]
-  optional_fields: [context, missing_context_arguments, resume_ref, resume_arguments,
-    reason, depends_on]
-  description: Use MCP completion for one argument before retrying.
-- type: ask_user
-  required_fields: [order, type, title, question]
-  optional_fields: [required_inputs, depends_on]
-  description: Ask the user for missing input.
-- type: terminal
-  required_fields: [order, type, title]
-  optional_fields: [reason, depends_on]
-  description: Stop the current MCP flow and report the result.
-common_flows:
-- flow_id: inspect_metadata
-  steps: [resources/list, resources/templates/list, 'read_resource shardingsphere://databases',
-    call_tool database_gateway_search_metadata, read_resource returned resource.uri]
-  stop_condition: Stop when the requested metadata detail resource is read.
-- flow_id: validate_runtime_database
-  steps: ['read_resource shardingsphere://databases', call_tool database_gateway_validate_runtime_database]
-  stop_condition: Stop after the configured runtime database reports ready or returns
-    structured recovery guidance.
-- flow_id: read_only_sql
-  steps: ['read_resource shardingsphere://databases/{database}/capabilities', call_tool
-      database_gateway_execute_query]
-  stop_condition: Use one SELECT statement and stop after the result is reported.
-- flow_id: explain_query
-  steps: ['read_resource shardingsphere://databases/{database}/capabilities', generate
-      database-native EXPLAIN SQL without ANALYZE, call_tool database_gateway_execute_explain_query]
-  stop_condition: Use the original SELECT as sql, the generated EXPLAIN as explain_sql,
-    and stop after the plan rows are reported.
-- flow_id: side_effecting_sql
-  steps: [call_tool database_gateway_execute_update execution_mode=preview, call_tool
-      database_gateway_execute_update execution_mode=execute]
-  stop_condition: Execute only after reviewing the previewed SQL and side-effect scope.
-- flow_id: complete_uncertain_argument
-  steps: [resources/templates/list, call completion/complete for one argument, 'follow
-      completion meta.next_actions when diagnostic is missing_context, prefix_filtered_all_candidates,
-      or no_candidates']
-  stop_condition: Stop when a completion value is selected or the nearest resource
-    proves the argument is unavailable.
-- flow_id: workflow_plan_apply_validate
-  steps: [call_tool descriptor-backed feature planning tool, call_tool database_gateway_apply_workflow
-      execution_mode=preview, call_tool database_gateway_apply_workflow execution_mode=review-then-execute
-      approved_steps=<preview_artifacts.approval_step>, call_tool database_gateway_validate_workflow]
-  stop_condition: Reuse the same current-session plan_id and stop after validation
-    succeeds.
-- flow_id: recover_from_error
-  steps: [follow top-level next_actions, prefer official list discovery methods when
-      surface information is needed, 'read_resource shardingsphere://guidance only
-      when the server suggests the guidance resource', ask_user only when uncertain]
-  stop_condition: Do not invent replacement calls while structured recovery actions
-    are present.
-security_hints:
-  http_transport: Streamable HTTP is unauthenticated by default; prefer loopback binding
-    or put remote exposure behind a trusted gateway.
-  origin_header: Present Origin headers must be valid loopback origins for loopback
-    HTTP bindings; missing Origin is accepted.
-  stdio_stdout: STDIO transport must keep MCP protocol frames on stdout and send logs
-    to stderr or files.
-  client_safety_policy:
-    identity_scope: mcp_session
-    transport_scope: HTTP transport can bind trusted session attribution when configured;
-      the MCP runtime does not provide built-in authentication or authorization. STDIO
-      inherits the local process boundary.
-    runtime_protection:
-      tool_call_limit: {scope: session, max_calls: 10000, property: shardingsphere.mcp.maxToolCallsPerSession,
-        recovery: Close and recreate the MCP session after the quota is exhausted.}
-      completion_rate_limit: {scope: session, window_seconds: 60, max_requests: 600,
-        property: shardingsphere.mcp.maxCompletionRequestsPerMinute, recovery: Retry
-          after the current completion rate-limit window ends.}
-      sql_execution_limits:
-        max_rows: {default_value: 100, maximum_value: 5000, applied_field: applied_max_rows,
-          truncation_field: truncated, recovery: 'For read-only queries, retry with
-            a narrower SELECT, stronger WHERE clause, or smaller projection. If rows
-            came from a side-effecting statement, do not replay that statement automatically;
-            use a separate read-only query when more data is needed.'}
-        timeout_ms: {default_value: 0, maximum_value: 300000, applied_field: applied_timeout_ms,
-          zero_means: server_default, recovery: Retry with a bounded timeout_ms value
-            or omit timeout_ms to use the server default.}
-    abuse_guard: Every tool call is counted before dispatch, including invalid calls,
-      so runaway model loops stop at the session quota.
-    external_model_boundary: The MCP runtime never calls external model providers;
-      live LLM E2E clients call configured endpoints outside the server.
diff --git a/test/e2e/mcp/src/test/resources/conformance/README.md b/test/e2e/mcp/src/test/resources/conformance/README.md
deleted file mode 100644
index 48445347900..00000000000
--- a/test/e2e/mcp/src/test/resources/conformance/README.md
+++ /dev/null
@@ -1,34 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-
-# MCP conformance scope
-
-The packaged server is checked with `modelcontextprotocol/conformance` v0.1.16 at commit
-`21a9a2febd7100d7c17ac1021ee7f2ed9f66a1e0`, using protocol version `2025-11-25`.
-`server-scenarios.txt` is the executable applicability list.
-
-The list contains generic protocol scenarios that do not require a server to expose conformance-only capabilities.
-Tool calls, resource reads, resource-template reads, prompt reads, completion, error payloads, and workflow behavior are instead exercised against ShardingSphere's real names and data by the deterministic MCP E2E suite.
-The CI lane starts the packaged server with its loopback HTTP configuration so the official DNS rebinding scenario evaluates the server's loopback Origin policy rather than its separate Docker remote-binding policy.
-
-The remaining official server scenarios are intentionally excluded for one of these reasons:
-
-- They require synthetic names or payloads such as `test_simple_text`, `test://static-text`, or `test_simple_prompt` that are not part of the ShardingSphere product contract.
-- They exercise optional capabilities that this server does not advertise, including resource subscriptions, sampling, audio/image content, progress notifications, and protocol logging.
-- They cover pending or transport variants outside the fixed ShardingSphere MCP transport surface.
-
-No production test hooks are added to make an inapplicable fixture-specific scenario pass.
diff --git a/test/e2e/mcp/src/test/resources/conformance/server-scenarios.txt b/test/e2e/mcp/src/test/resources/conformance/server-scenarios.txt
deleted file mode 100644
index 33195ddaebd..00000000000
--- a/test/e2e/mcp/src/test/resources/conformance/server-scenarios.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Official MCP conformance v0.1.16 server scenarios applicable to the packaged ShardingSphere MCP server.
-server-initialize
-ping
-tools-list
-resources-list
-prompts-list
-dns-rebinding-protection