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.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
#include "limits.h"
#include <ctype.h>
#define MINI_RADIX 10
/* Parse a non-negative decimal integer, capped at MINI_LIMIT. */
int mini_parse_uint(const char *s)
{
int acc = 0;
while (*s && isdigit((unsigned char)*s)) {
acc = acc * MINI_RADIX + (*s - '0');
if (acc > MINI_LIMIT)
return MINI_LIMIT;
s++;
}
return acc;
}