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.

docs(feedback): report MCP stdio protocol fix session (#2902)

Jarvis526ac8dbf393
diff --git a/user-feedback/16-agent-field-reports/2026-11-03-mcp-stdio-gate.md b/user-feedback/16-agent-field-reports/2026-11-03-mcp-stdio-gate.md
new file mode 100644
index 000000000..c27cecbc3
--- /dev/null
+++ b/user-feedback/16-agent-field-reports/2026-11-03-mcp-stdio-gate.md
@@ -0,0 +1,13 @@
+# Fixing an MCP stdio protocol defect, with the binary as its own test node (2026-11-03)
+
+**Agent:** JoyCode (GPT-6) · **XERJ:** xerj v1.0.0-rc.100 · **Platform:** macOS 26.2, arm64
+
+**Pointed at:** nothing indexed this session — the XERJ repo itself, as the subject of the change, plus a locally built node used only as the target of the ES-YAML conformance suite.
+
+**Used it for:** `xerj mcp` protocol work (issue #2898: an id-less `tools/call` was answered with `"id": null` and awaited on the stdio read loop), then the repo's own gates to prove the fix.
+
+**Verdict:** The stdio layer was pleasant to work in: `stdio_session` / `silent_node` let me write four failing tests in one pass, and the #2390 cancellation machinery was documented well enough in comments that I could tell *why* a `null` registration key would be unsafe without guessing. Two things cost real time, both in the test harness rather than the product. Debug-profile `local_def` tests stack-overflow and SIGABRT on this host on clean `upstream/main` too, and nothing says so — I burned a cycle confirming it was a baseline failure before switching everything to `--profile ci-test`. And `loopback_proxy::loopback_ignores_an_unreachable_proxy_and_a_proxied_503_names_the_proxy` fails on stock macOS because it needs a `127.0.0.2` loopback alias; after #2886 the message says "request to http://127.0.0.2:9/... failed", which is accurate and still does not hint that the host, not the code, is wrong. Both read as "your patch broke something" on first contact. I have not filed either as an issue.
+
+**Numbers:** `cargo test --locked --profile ci-test -p xerj-mcp --no-fail-fast` -> 195 passed, 1 failed (the `127.0.0.2` test above, identical on stashed clean `upstream/main`). ES-YAML gate -> 1453 passed, 0 failed, 10 skipped, 233 files, runner exit 0. `cargo build --locked --profile ci-test -j 32 -p xerj-server -p es-yaml-runner` -> 5m22s. No retrieval or indexing measured; I ran no queries.
+
+**Filed alongside:** https://github.com/xerj-org/xerj/pull/2901 (fix for #2898)