fix: update MCP smoke test to include 4 new tools (create/delete/list_sections/update)
Smoke test was silently failing in CI because 'bun --cwd apps/mcp run smoke' printed usage (exit 0) — never actually ran. Now that we fixed the build step to use 'cd apps/mcp && bun run smoke', the test runs and reveals 4 tools were added to the MCP server but not updated in the expected list: create_document, delete_document, list_sections, update_document. Updated smoke.ts expected list from 10 → 14 tools.
This commit is contained in:
1 parent
628068e33d
commit
d8da598f1d
1 file changed
+4
@@ -15,16 +15,20 @@ async function main() {
|
|||||||
const names = tools.tools.map((t) => t.name).sort();
|
const names = tools.tools.map((t) => t.name).sort();
|
||||||
console.log("tools:", names.join(", "));
|
console.log("tools:", names.join(", "));
|
||||||
const expected = [
|
const expected = [
|
||||||
|
"create_document",
|
||||||
|
"delete_document",
|
||||||
"get_document",
|
"get_document",
|
||||||
"get_related_documents",
|
"get_related_documents",
|
||||||
"hybrid_search",
|
"hybrid_search",
|
||||||
"index_document",
|
"index_document",
|
||||||
"list_documents",
|
"list_documents",
|
||||||
|
"list_sections",
|
||||||
"queue_status",
|
"queue_status",
|
||||||
"reindex_all",
|
"reindex_all",
|
||||||
"restore_revision",
|
"restore_revision",
|
||||||
"search_documents",
|
"search_documents",
|
||||||
"semantic_search",
|
"semantic_search",
|
||||||
|
"update_document",
|
||||||
].sort();
|
].sort();
|
||||||
if (JSON.stringify(names) !== JSON.stringify(expected)) {
|
if (JSON.stringify(names) !== JSON.stringify(expected)) {
|
||||||
throw new Error(`tool set mismatch: ${names.join(",")}`);
|
throw new Error(`tool set mismatch: ${names.join(",")}`);
|
||||||
|
|||||||
Reference in new issue
Block a user