From e36ab96567553df07ff1ff42cc933b381f166a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20L=C3=BCtke?= Date: Sat, 9 May 2026 19:03:17 +0000 Subject: [PATCH] fix: allow HTTP query rerank control --- src/mcp/server.ts | 1 + test/cli.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mcp/server.ts b/src/mcp/server.ts index a3016e2..2f5482f 100644 --- a/src/mcp/server.ts +++ b/src/mcp/server.ts @@ -693,6 +693,7 @@ export async function startMcpHttpServer( limit: params.limit ?? 10, minScore: params.minScore ?? 0, intent: params.intent, + rerank: params.rerank, }); // Use first lex or vec query for snippet extraction diff --git a/test/cli.test.ts b/test/cli.test.ts index b5758c5..9c575f8 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -1567,7 +1567,7 @@ describe("mcp http daemon", () => { const res = await fetch(`http://localhost:${port}/query`, { method: "POST", headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ searches: [{ type: "lex", query: "authentication" }], limit: 5 }), + body: JSON.stringify({ searches: [{ type: "lex", query: "authentication" }], limit: 5, rerank: false }), }); expect(res.status).toBe(200); const body = await res.json();