Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

test(server): update MCP tool count after local def

Jarvis0b641967a1de
diff --git a/engine/crates/xerj-server/src/main.rs b/engine/crates/xerj-server/src/main.rs
index 43be64457..2c97f795b 100644
--- a/engine/crates/xerj-server/src/main.rs
+++ b/engine/crates/xerj-server/src/main.rs
@@ -3098,13 +3098,13 @@ mod decide_flag_tests {
#[test]
fn help_counts_the_mcp_tools_actually_served() {
// The count is `tool_specs()`, the same list `tools/list` returns:
- // seventeen without a hub key, twenty with the three hub tools.
+ // eighteen without a hub key, twenty-one with the three hub tools.
let served = super::mcp_tool_count();
if xerj_common::hub::hub_key_configured() {
- assert_eq!(served, 20, "tool_specs() with a hub key: {served}");
+ assert_eq!(served, 21, "tool_specs() with a hub key: {served}");
} else {
assert_eq!(
- served, 17,
+ served, 18,
"a no-key process must not count the hub tools it does not serve"
);
}