@@ -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
180180push_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
188188start_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
0 commit comments