Skip to content

Releases

MarkIndex v0.2.0

Choose a tag to compare

@jackjin1997 jackjin1997 released this 22 Nov 16:37

Added

  • Optional reranking of search_documents results, off by default and experimental. markindex mcp <root> --rerank jev (or openLibrary({ rerank: { reranker } })) has a reranker score the 50 best keyword hits and returns the
    most relevant; the tool then takes an optional intent, a full sentence saying what is being looked for, and
    each hit carries a relevance. 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 a score() 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, jevConfigFromEnv and the
    Reranker, RerankOptions, ToolContract types.

MarkIndex v0.1.3

Choose a tag to compare

@jackjin1997 jackjin1997 released this 17 Nov 02:25

Fixed

  • search_documents no 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

Choose a tag to compare

@jackjin1997 jackjin1997 released this 09 Nov 06:34
cde0150

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 as io.github.jackjin1997/markindex.
  • The release workflow skips npm publish when 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

Choose a tag to compare

@jackjin1997 jackjin1997 released this 02 Nov 03:21
003d12e

Added

  • Listed in the official MCP Registry as io.github.jackjin1997/markindex (mcpName in package.json,
    server.json at 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

Choose a tag to compare

@jackjin1997 jackjin1997 released this 01 Nov 06:02
89475d2

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 into chunk nodes.
  • SQLite store (one file per library, WAL) holding the trees, the original lines and a mixed Chinese / English
    BM25 index (Intl.Segmenter words 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_steps guidance, 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). rateLimit option for summaries and retrieve(); CLI flags
    index --summary-rpm / --summary-tpm and eval --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: .gitignore files at any level, an optional root .markindexignore, and repeatable
    --ignore <pattern> options (library: ignore).
  • CLI: index, tree, search, mcp (with --reindex-on-start) and eval.
  • Evaluation harness: a 151-question zh / en / mixed question set over a public 329-document corpus, a BM25 baseline,
    agent mode through retrieve(), 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/anthropic installed alongside.
  • MarkIndex is an independent, unofficial implementation inspired by
    VectifyAI/PageIndex; see THIRD_PARTY_NOTICES.md.
npm install markindex

npm: https://www.npmjs.com/package/markindex