Repository navigation
·
16 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Behavior changes
- Search finds headings the way GitHub renders them. Setext headings (a line underlined with
===or---) and headings inside blockquotes and list items now start their own search sections and get anchors, and#lines inside code blocks no longer do. Anchors follow GitHub's rules: they're built from the heading's rendered text, so link URLs and Markdown markup no longer leak in, repeated headings never share an anchor, and non-Latin headings keep their combining marks. Search results show heading paths as plain text. Indexed sites re-chunk once at the nextmcp-serverstart or crawl, with no re-crawl. Anchors saved from earlier results for the affected headings stop resolving;read_pagelists the valid ones (#101). - The JSONL
headingsfield lists the same headings search uses, as plain text: Setext headings and headings in blockquotes and list items are included,#lines inside code blocks are not, and link URLs and Markdown markup are gone. Unchanged pages keep their old arrays until they're rewritten or the site is crawled fresh (#147). read_page'sheadingsline shows each heading with its anchor (Text #anchor), is built from the page content so it also works for pages crawled by older versions, and is capped at 4 KB, ending in(+N more)when cut (#147).get_pagecalls with anoffsetreuse the page from the first call for up to 5 minutes instead of fetching and converting it again. Their header showsfetch_time_ms: 0andcached_at, the time of that fetch. A call without an offset always fetches live (#143).
Performance
read_pageandlist_pagesno longer read the wholepages.jsonlon every call. The first call after a server start or a crawl indexes the file once, and later calls take well under a millisecond on a 98 MB corpus (were 0.3 to 0.8 s) (#113).list_sitesanddescribe_serverread each site's last crawl time from the end ofpages.jsonlinstead of scanning the whole file: under 1 ms per site instead of about 100 ms on a 98 MB corpus.- Reading a long page through
get_pagein parts makes one request instead of one per part: Flask's API page, read in 12 parts, went from 12 requests and 2.3 s to 1 request and 0.2 s (#143).
Dependencies
- github.com/yuin/goldmark 1.8.7 (new), used to find headings.