evidence-mcp-dev 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6500,12 +6500,12 @@ ${(md.split("\n").find((l) => l.trim()) ?? "").trim()}` : fetchAnswer(url, md, "
|
|
|
6500
6500
|
const r = await citingArticles(args, FH_EVIDENCE_DIR);
|
|
6501
6501
|
const secs = ((Date.now() - t0) / 1e3).toFixed(1).padStart(4, "0") + "s";
|
|
6502
6502
|
if (!r.ok) {
|
|
6503
|
-
log("search", "
|
|
6503
|
+
log("search", "citing", `${r.input ? "error" : `failed ${secs}`} ${r.error} | ${args.id}`);
|
|
6504
6504
|
return { content: [{ type: "text", text: compact2({ error: r.error }) }], isError: true };
|
|
6505
6505
|
}
|
|
6506
6506
|
bump("search", r.cached);
|
|
6507
6507
|
const q = r.result.query;
|
|
6508
|
-
log("search", "
|
|
6508
|
+
log("search", "citing", `ok ${r.cached ? "cached" : secs} rows=${r.result.rows.length} total=${r.result.total}${q.types ? ` types=${q.types.join(",")}` : ""}${q.years ? ` years=${q.years}` : ""}${q.sort !== "newest" ? ` sort=${q.sort}` : ""} | ${q.id}`);
|
|
6509
6509
|
return { content: [{ type: "text", text: searchAnswer(r.result) }] };
|
|
6510
6510
|
}
|
|
6511
6511
|
);
|