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.

673 B
Raw Blame
#!/bin/sh
# MCPB launcher for macOS and Linux: pick the bundled xerj binary for this
# CPU and run its MCP stdio server. Windows uses server/windows-x86_64/xerj.exe
# directly (manifest platform_overrides), so this script never runs there.
set -eu
here=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
case "$(uname -s)" in
  Darwin) os=darwin ;;
  Linux) os=linux ;;
  *) echo "xerj-mcp: unsupported OS $(uname -s)" >&2; exit 1 ;;
esac
case "$(uname -m)" in
  arm64|aarch64) arch=aarch64 ;;
  x86_64|amd64) arch=x86_64 ;;
  *) echo "xerj-mcp: unsupported CPU $(uname -m)" >&2; exit 1 ;;
esac
bin="$here/$os-$arch/xerj"
chmod +x "$bin" 2>/dev/null || true
exec "$bin" mcp "$@"