Repository navigation
Releases
Releases · jackjin1997/markindex
MarkIndex v0.2.0
Added
- Optional reranking of
search_documentsresults, off by default and experimental.markindex mcp <root> --rerank jev(oropenLibrary({ rerank: { reranker } })) has a reranker score the 50 best keyword hits and returns the
most relevant; the tool then takes an optionalintent, a full sentence saying what is being looked for, and
each hit carries arelevance. The built-in reranker,jevReranker(), uses TypeSafe's hosted Jev model and
sends the question and the text of the candidate sections to that service; any object with ascore()method
can be used instead. When the reranker fails or takes too long, the keyword order is returned. Without the
option nothing changes: same tools, same schemas, no network calls. Library.contract: the tool descriptions and input schemas a library serves.createMcpServer()and
createAiSdkTools()read it. New exports:TOOL_CONTRACT_RERANKED,jevReranker,jevConfigFromEnvand the
Reranker,RerankOptions,ToolContracttypes.
MarkIndex v0.1.3
Fixed
search_documentsno longer slows down with the size of the library. The ranking query read the stored text of
every matching section before applying the limit; it now ranks on the full-text index alone and loads only the
sections it returns. On a 19 GB index (100,195 documents) a search went from about 34 s to about 0.3 s, with
identical results. No schema change, so existing indexes need no rebuild.
MarkIndex v0.1.2
No code changes; this release refreshes the README shown on npm.
Changed
- README (English and Chinese) opens with a terminal demo GIF (absolute URL, so it renders on npm) and notes that
the server is listed in the official MCP Registry asio.github.jackjin1997/markindex. - The release workflow skips
npm publishwhen the version is already on npm, waits for the new version to become
visible on npm before publishing to the MCP Registry, and retries the registry publish, so a failed run can simply
be re-run.
MarkIndex v0.1.1
Added
- Listed in the official MCP Registry as
io.github.jackjin1997/markindex(mcpNameinpackage.json,
server.jsonat the repository root). MCP clients that read the registry start the server as
npx markindex mcp <docs_dir> --reindex-on-start. - Releases are published from GitHub Actions through npm Trusted Publishing (OIDC, with provenance) and pushed
to the MCP Registry in the same workflow.
MarkIndex v0.1.0
First release.
Added
- Markdown section parser built on mdast: setext and ATX headings, preface before the first heading, documents
without headings, front matter,#inside code blocks, skipped heading levels, BOM and CR / CRLF / LF line
endings; every source line belongs to exactly one node. Heading titles are capped at 300 code points and text is
NFKC-normalized before segmentation. - Section tree with a deterministic optimization pass (a port of PageIndex's merge / expand cost model, with pages
replaced by tokens) and stable node ids; oversized sections are split at block boundaries intochunknodes. - SQLite store (one file per library, WAL) holding the trees, the original lines and a mixed Chinese / English
BM25 index (Intl.Segmenterwords plus a trigram substring fallback). Incremental indexing by content hash, one
transaction per document, a single-writer lock, and an index format fingerprint that triggers a full rebuild
(reusing cached summaries) when the format or tree parameters change. - Five read-only agent tools (
browse_documents,get_document,get_document_structure,get_node_content,
search_documents) with JSON envelopes,next_stepsguidance, a 95 000-character response budget and a
1 024-character cap on string arguments; adapters for the Vercel AI SDK and for MCP (stdio server). - Optional LLM node summaries and document descriptions through any AI SDK provider (
--summary-model <provider>:<model>), cached by node content hash, with a cost estimate (--estimate) that makes no LLM calls. - Built-in
retrieve()evidence loop: returns original text re-read from the index by line range, usage and a stop
reason (done,budget,max_steps), never a model-written answer. - Client-side LLM rate limiting: a dependency-free sliding 60 s window for requests and estimated input tokens
(FIFO, no deadlock for oversized requests).rateLimitoption for summaries andretrieve(); CLI flags
index --summary-rpm / --summary-tpmandeval --rpm / --tpm. - Setext heading switch:
--setext/--no-setext(library:setext) for converter output that uses---as a
page break, with warnings when suspect setext headings are found; the setting is stored in the index. - Ignore support:
.gitignorefiles at any level, an optional root.markindexignore, and repeatable
--ignore <pattern>options (library:ignore). - CLI:
index,tree,search,mcp(with--reindex-on-start) andeval. - Evaluation harness: a 151-question zh / en / mixed question set over a public 329-document corpus, a BM25 baseline,
agent mode throughretrieve(), evidence size and precision metrics (--max-evidence-lines), scale benchmarks,
and a Claude Code agent-mode runner restricted to the MarkIndex tools (30/30 on the n = 30 run). - English and Chinese READMEs, third-party notices, and GitHub Actions CI on Ubuntu and macOS with Node 22 and 24.
Notes
- Requires Node.js >= 22.12. LLM features need an AI SDK provider package such as
@ai-sdk/anthropicinstalled alongside. - MarkIndex is an independent, unofficial implementation inspired by
VectifyAI/PageIndex; seeTHIRD_PARTY_NOTICES.md.
npm install markindex