Skip to content

Commit 5f92ba1

Browse files
committed
refactor: rename cmd/sse-client-test to cmd/mcp-http-client-test to reflect stateless transport
1 parent c086b2a commit 5f92ba1

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// cmd/sse-client-test is a manual HTTP MCP client for the RagCode MCP server.
1+
// cmd/mcp-http-client-test is a manual HTTP MCP client for the RagCode MCP server.
22
// It primarily tests the Streamable HTTP (stateless) transport via POST /mcp
33
// and does best-effort parsing of SSE-style `data:` lines in responses.
44
//

tests/e2e/e2e_lxc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func buildBinaries(t *testing.T, repoRoot string, outDir string) {
9292

9393
build("rag-code-install", "./cmd/rag-code-install")
9494
build("rag-code-mcp", "./cmd/rag-code-mcp")
95-
build("sse-client-test", "./cmd/sse-client-test")
95+
build("mcp-http-client-test", "./cmd/mcp-http-client-test")
9696
}
9797

9898
func cloneAtRef(t *testing.T, repoRoot string, ref string) string {

tests/e2e/run_lxc_tests.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ usage() {
4141
echo " -repo-url Git repo to clone inside container (default: ${REPO_URL_DEFAULT})"
4242
echo " -repo-dir Target directory for clone inside container (default: ${REPO_DIR_DEFAULT})"
4343
echo " -repo-ref Git ref to checkout inside container after clone (default: empty)"
44-
echo " -bin-dir Directory with prebuilt binaries: rag-code-install, rag-code-mcp, sse-client-test (default: build locally)"
44+
echo " -bin-dir Directory with prebuilt binaries: rag-code-install, rag-code-mcp, mcp-http-client-test (default: build locally)"
4545
echo " -sse-file File inside repo used as file_path (default: ${SSE_FILE_DEFAULT})"
4646
echo " -sse-query Query for rag_search_code (default: ${SSE_QUERY_DEFAULT})"
4747
echo " -sse-limit Limit for rag_search_code (default: ${SSE_LIMIT_DEFAULT})"
@@ -173,16 +173,16 @@ build_binaries() {
173173
echo "==> Build: rag-code-mcp"
174174
go build -o "${BUILD_DIR}/rag-code-mcp" "${REPO_ROOT}/cmd/rag-code-mcp"
175175

176-
echo "==> Build: sse-client-test"
177-
go build -o "${BUILD_DIR}/sse-client-test" "${REPO_ROOT}/cmd/sse-client-test"
176+
echo "==> Build: mcp-http-client-test"
177+
go build -o "${BUILD_DIR}/mcp-http-client-test" "${REPO_ROOT}/cmd/mcp-http-client-test"
178178
}
179179

180180
push_binaries() {
181181
echo "==> LXC: push binaries"
182182
lxc file push "${BUILD_DIR}/rag-code-install" "${NAME}/root/rag-code-install"
183183
lxc file push "${BUILD_DIR}/rag-code-mcp" "${NAME}/root/rag-code-mcp"
184-
lxc file push "${BUILD_DIR}/sse-client-test" "${NAME}/root/sse-client-test"
185-
lxc exec "${NAME}" -- bash -lc 'chmod +x /root/rag-code-install /root/rag-code-mcp /root/sse-client-test'
184+
lxc file push "${BUILD_DIR}/mcp-http-client-test" "${NAME}/root/mcp-http-client-test"
185+
lxc exec "${NAME}" -- bash -lc 'chmod +x /root/rag-code-install /root/rag-code-mcp /root/mcp-http-client-test'
186186
}
187187

188188
start_mcp_and_wait() {
@@ -205,12 +205,12 @@ run_sse_e2e() {
205205

206206
echo "==> LXC: run SSE client E2E"
207207
if [[ "${SSE_EMIT_JSON:-}" == "1" ]]; then
208-
lxc exec "${NAME}" -- bash -lc "/root/sse-client-test -url http://127.0.0.1:${PORT} -path '${REPO_DIR}/${SSE_FILE}' -query '${SSE_QUERY}' -mode '${SSE_MODE}' -limit ${SSE_LIMIT} -out /root/sse_out.json"
208+
lxc exec "${NAME}" -- bash -lc "/root/mcp-http-client-test -url http://127.0.0.1:${PORT} -path '${REPO_DIR}/${SSE_FILE}' -query '${SSE_QUERY}' -mode '${SSE_MODE}' -limit ${SSE_LIMIT} -out /root/sse_out.json"
209209
echo "@@@SSE_OUT_BEGIN@@@"
210210
lxc exec "${NAME}" -- bash -lc "cat /root/sse_out.json"
211211
echo "@@@SSE_OUT_END@@@"
212212
else
213-
lxc exec "${NAME}" -- bash -lc "/root/sse-client-test -url http://127.0.0.1:${PORT} -path '${REPO_DIR}/${SSE_FILE}' -query '${SSE_QUERY}' -mode '${SSE_MODE}' -limit ${SSE_LIMIT}"
213+
lxc exec "${NAME}" -- bash -lc "/root/mcp-http-client-test -url http://127.0.0.1:${PORT} -path '${REPO_DIR}/${SSE_FILE}' -query '${SSE_QUERY}' -mode '${SSE_MODE}' -limit ${SSE_LIMIT}"
214214
fi
215215
}
216216

tests/e2e/runner/runner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func buildBinaries(t *testing.T, repoRoot, binDir string) {
4343

4444
build("rag-code-install", "./cmd/rag-code-install")
4545
build("rag-code-mcp", "./cmd/rag-code-mcp")
46-
build("sse-client-test", "./cmd/sse-client-test")
46+
build("mcp-http-client-test", "./cmd/mcp-http-client-test")
4747
}
4848

4949
func TestRunner_CleanDockerScenario_WritesCaptureFiles(t *testing.T) {

tests/e2e/scenarios/clean_docker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"mode": "0755"
5252
},
5353
{
54-
"src": "${bin_dir}/sse-client-test",
54+
"src": "${bin_dir}/mcp-http-client-test",
5555
"dst": "/root/mcp-client-test",
5656
"mode": "0755"
5757
}

0 commit comments

Comments
 (0)