From 07421de55faffb76f075dc1342de73f0ccd009f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20L=C3=BCtke?= Date: Thu, 19 Feb 2026 05:30:27 -0500 Subject: [PATCH] feat(http): keep /search as alias for /query --- src/mcp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcp.ts b/src/mcp.ts index 6b7c50a..18b9c17 100644 --- a/src/mcp.ts +++ b/src/mcp.ts @@ -560,8 +560,8 @@ export async function startMcpHttpServer(port: number, options?: { quiet?: boole } // REST endpoint: POST /search — structured search without MCP protocol - // REST endpoint: POST /query — structured search without MCP protocol - if (pathname === "/query" && nodeReq.method === "POST") { + // REST endpoint: POST /query (alias: /search) — structured search without MCP protocol + if ((pathname === "/query" || pathname === "/search") && nodeReq.method === "POST") { const rawBody = await collectBody(nodeReq); const params = JSON.parse(rawBody);