@cyanheads/biorxiv-mcp-server 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/AGENTS.md +40 -31
  2. package/CLAUDE.md +40 -31
  3. package/Dockerfile +85 -40
  4. package/README.md +34 -44
  5. package/changelog/0.3.x/0.3.1.md +33 -0
  6. package/changelog/0.4.x/0.4.0.md +33 -0
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.d.ts +7 -2
  10. package/dist/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.d.ts.map +1 -1
  11. package/dist/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.js +29 -15
  12. package/dist/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.js.map +1 -1
  13. package/dist/mcp-server/tools/definitions/biorxiv-get-preprint.tool.d.ts +1 -1
  14. package/dist/mcp-server/tools/definitions/biorxiv-get-preprint.tool.d.ts.map +1 -1
  15. package/dist/mcp-server/tools/definitions/biorxiv-get-preprint.tool.js +4 -6
  16. package/dist/mcp-server/tools/definitions/biorxiv-get-preprint.tool.js.map +1 -1
  17. package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.d.ts +1 -1
  18. package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.d.ts.map +1 -1
  19. package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.js +4 -6
  20. package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.js.map +1 -1
  21. package/dist/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.d.ts +95 -0
  22. package/dist/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.d.ts.map +1 -0
  23. package/dist/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.js +322 -0
  24. package/dist/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.js.map +1 -0
  25. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts +1 -1
  26. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts.map +1 -1
  27. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js +7 -11
  28. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js.map +1 -1
  29. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.d.ts +4 -4
  30. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.d.ts.map +1 -1
  31. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js +18 -27
  32. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js.map +1 -1
  33. package/dist/mcp-server/tools/definitions/index.d.ts +81 -8
  34. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  35. package/dist/mcp-server/tools/definitions/index.js +3 -0
  36. package/dist/mcp-server/tools/definitions/index.js.map +1 -1
  37. package/dist/services/biorxiv/biorxiv-service.d.ts +17 -2
  38. package/dist/services/biorxiv/biorxiv-service.d.ts.map +1 -1
  39. package/dist/services/biorxiv/biorxiv-service.js +61 -1
  40. package/dist/services/biorxiv/biorxiv-service.js.map +1 -1
  41. package/dist/services/biorxiv/types.d.ts +24 -3
  42. package/dist/services/biorxiv/types.d.ts.map +1 -1
  43. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts +17 -2
  44. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts.map +1 -1
  45. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js +86 -7
  46. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js.map +1 -1
  47. package/dist/services/europe-pmc/europe-pmc-service.d.ts.map +1 -1
  48. package/dist/services/europe-pmc/europe-pmc-service.js +3 -2
  49. package/dist/services/europe-pmc/europe-pmc-service.js.map +1 -1
  50. package/dist/services/shared.d.ts +5 -3
  51. package/dist/services/shared.d.ts.map +1 -1
  52. package/dist/services/shared.js +19 -10
  53. package/dist/services/shared.js.map +1 -1
  54. package/package.json +13 -12
  55. package/server.json +10 -24
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
1
  <div align="center">
2
2
  <h1>@cyanheads/biorxiv-mcp-server</h1>
3
3
  <p><b>Search and retrieve bioRxiv and medRxiv preprints — by DOI, date interval, or keyword — via MCP. STDIO or Streamable HTTP.</b>
4
- <div>6 Tools</div>
4
+ <div>7 Tools</div>
5
5
  </p>
6
6
  </div>
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.3.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/biorxiv-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/biorxiv-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/biorxiv-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.0-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.4.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/biorxiv-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.3.1-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/biorxiv-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/biorxiv-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.3-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
14
14
  <div align="center">
15
15
 
16
- [![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/cyanheads/biorxiv-mcp-server/releases/latest/download/biorxiv-mcp-server.mcpb) [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=biorxiv-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvYmlvcnhpdi1tY3Atc2VydmVyIl19) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22biorxiv-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads/biorxiv-mcp-server%22%5D%7D)
16
+ [![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/cyanheads/biorxiv-mcp-server/releases/latest/download/biorxiv-mcp-server.mcpb) [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=biorxiv-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvYmlvcnhpdi1tY3Atc2VydmVyIl19) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22biorxiv-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fbiorxiv-mcp-server%22%5D%7D)
17
17
 
18
18
  [![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-67E8F9?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
19
19
 
@@ -29,7 +29,7 @@
29
29
 
30
30
  ## Overview
31
31
 
32
- bioRxiv and medRxiv preprint metadata and full text, searchable via EuropePMC. Fetch preprints by DOI, browse by date interval or subject category, search by keyword and author, resolve journal-publication crosswalks, and extract full text from the rendered article page, from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
32
+ bioRxiv and medRxiv preprint metadata and full text, searchable via EuropePMC. Fetch preprints by DOI, browse by date interval or subject category, search by keyword and author, resolve journal-publication crosswalks or list them by journal publication date, and extract full text from the rendered article page, from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
33
33
 
34
34
  ### Tools
35
35
 
@@ -39,6 +39,7 @@ bioRxiv and medRxiv preprint metadata and full text, searchable via EuropePMC. F
39
39
  | `biorxiv_list_recent` | List preprints posted or updated within a date interval, with optional server, category, and funder filters |
40
40
  | `biorxiv_search_preprints` | Search preprints by keyword and/or author via EuropePMC for relevance ranking, enriched with bioRxiv/medRxiv metadata |
41
41
  | `biorxiv_get_published_version` | Resolve a preprint DOI to its journal publication record (journal DOI, name, published date) |
42
+ | `biorxiv_list_published_versions` | List preprints that appeared as journal articles within a journal publication-date interval, whenever they were posted |
42
43
  | `biorxiv_get_fulltext` | Retrieve a preprint's full text as best-effort Markdown extracted from its rendered HTML article page |
43
44
  | `biorxiv_list_categories` | List valid subject category strings for bioRxiv and medRxiv |
44
45
 
@@ -46,69 +47,57 @@ bioRxiv and medRxiv preprint metadata and full text, searchable via EuropePMC. F
46
47
 
47
48
  ### `biorxiv_get_preprint` <sub>tool</sub>
48
49
 
49
- - Batch fetch up to 10 DOIs in a single request
50
- - Accepts a bare DOI or a pasted form of one — `https://doi.org/…`, `doi:…`, a `biorxiv.org`/`medrxiv.org` article URL, a `vN` or article-page suffix (`.full`, `.full.pdf`, `.article-metrics`, …) — and reports the bare DOI
51
- - Each DOI returns its full revision history in `revisions[]` — one API call per DOI, no enumeration loop
52
- - Includes title, authors, abstract, category, license, grant award numbers (`awards`), JATS XML full-text link (`jatsxmlUrl`), and published journal DOI (`publishedJournalDoi`) once accepted
53
- - `awards` holds each award value as upstream records it (one value can run several grants together), deduplicated; funder names are left out because `api.biorxiv.org` attributes them to unrelated organizations
54
- - Scope to `biorxiv`, `medrxiv`, or `both` (default `both`); when `both`, each DOI fans out in parallel and partial failures report per-DOI in `failed[]`
55
- - Each `failed[]` entry carries a `reason` (`not_found`, `invalid_doi_format`, `upstream_unavailable`, `rate_limited`) and a `retryable` flag — a DOI is only reported `not_found` when every attempted server answered
56
- - A rate-limited lookup (HTTP 429) reports `reason: "rate_limited"` rather than folding into `upstream_unavailable`, carrying `retryAfter` — the wait in seconds `api.biorxiv.org` asked for
50
+ - Takes up to 10 DOIs per call, bare or pasted (`https://doi.org/…`, `doi:…`, a `biorxiv.org`/`medrxiv.org` article URL, a `vN` or `.full` suffix), scoped to `biorxiv`, `medrxiv`, or `both` (default `both`)
51
+ - Each preprint returns its full revision history in `revisions[]` — title, authors, abstract, category, license, `awards`, `jatsxmlUrl`, and `publishedJournalDoi` once accepted. Funder names are left out because `api.biorxiv.org` attributes them to unrelated organizations
52
+ - A DOI that fails lands in `failed[]` with a `reason` (`not_found`, `invalid_doi_format`, `upstream_unavailable`, `rate_limited`) and a `retryable` flag; `not_found` only when every attempted server answered
57
53
 
58
54
  ---
59
55
 
60
56
  ### `biorxiv_list_recent` <sub>tool</sub>
61
57
 
62
- - Optional server-side category filter — pass a value from `biorxiv_list_categories`, in any case, with `_`, `-`, or a space (`Cell Biology`, `cell_biology`, `cell-biology`)
63
- - A server that answers the filter with its unfiltered listing is left out with a notice, never returned as filtered; `invalid_category` when no server applied it
64
- - Optional `funder` filter by ROR ID, bare (`021nxhr62`) or as `https://ror.org/021nxhr62`, checked against the ROR pattern and checksum before any request; combines with `category`
65
- - The funder filter is bioRxiv-only — medRxiv records carry no funder data — so `server="both"` queries bioRxiv alone with a notice, and `server="medrxiv"` raises `invalid_funder`
66
- - A ROR ID `api.biorxiv.org` has no funder record for raises `invalid_funder`, never an empty page
67
- - Fixed page size of 30 (API constraint); advance with integer `cursor` (0, 30, 60, …)
68
- - Abstracts are omitted by default — they are about three quarters of a page — and every other record field is returned; `include_abstract: true` adds them for the whole page, and `biorxiv_get_preprint` returns them for up to 10 DOIs per call
69
- - Response includes a `total` count per server; a cursor past the last page is marked `exhausted: true` rather than reading as zero results in the interval
70
- - When `server="both"` (default), per-server pagination state is independent (`{ biorxiv: { cursor, total }, medrxiv: { cursor, total } }`); one server not answering is named in `failed[]` while the other's page still returns
71
- - Every attempted server failing raises a retryable `upstream_unavailable` (or `rate_limited`) error instead of an empty page
58
+ - Takes a `start_date`/`end_date` interval, `server` (default `both`), and optional `category` (a value from `biorxiv_list_categories`) and bioRxiv-only `funder` (a ROR ID) filters; a filter the API ignored or cannot apply raises `invalid_category` or `invalid_funder` rather than returning an unfiltered or empty page
59
+ - Pages of 30 advance with an integer `cursor`; pagination is per server (`{ biorxiv: { cursor, total }, medrxiv: { cursor, total } }`), a cursor past the last page is marked `exhausted: true`, and a server that did not answer is named in `failed[]`
60
+ - Abstracts are omitted by default (about three quarters of a page); `include_abstract: true` adds them
72
61
 
73
62
  ---
74
63
 
75
64
  ### `biorxiv_search_preprints` <sub>tool</sub>
76
65
 
77
- - Query and/or author required (author maps to an EuropePMC `AUTH:"…"` field query, ANDed with the keyword query); optional `date_from`/`date_to` range and `server` scope (default `both`)
78
- - Up to 100 results per page (default 25); `cursor_mark` pages through the same ranked list; a page past the last match comes back empty with a notice saying so, and a token EuropePMC does not recognize raises `invalid_cursor_mark`
79
- - An EuropePMC response missing its result list is retried, never reported as zero matches; one that persists on a first page raises `search_unavailable`
80
- - EuropePMC powers relevance ranking (indexes new preprints within 1–2 days of posting); the bioRxiv/medRxiv API enriches matches with canonical metadata
81
- - Enriched results carry the same latest-revision fields as `biorxiv_get_preprint`, including `type`, `license`, `awards`, and `authorCorrespondingInstitution`
82
- - Enrichment failures degrade to EuropePMC-only metadata, surfaced via `partial_results` and a per-record `enrichment_error` (`service_error`, `rate_limited`, or `not_found`); those records' abstracts come from one EuropePMC lookup keyed by their DOIs, and a failed lookup leaves them without one, with a notice
83
- - Abstracts are included by default; `include_abstract: false` drops them from every result, enriched and fallback alike, for a response about a third the size, keeping every other field
84
- - A EuropePMC rate limit (HTTP 429) raises a retryable `rate_limited` error carrying the origin's `Retry-After` wait — the search itself has no metadata to fall back on, unlike enrichment
66
+ - Takes `query` and/or `author`, optional `date_from`/`date_to` and `server` (default `both`); up to 100 results per page (default 25), paged with `cursor_mark`
67
+ - EuropePMC ranks the matches (it indexes new preprints within 1–2 days of posting) and the bioRxiv/medRxiv API enriches them with the same fields as `biorxiv_get_preprint`; a record left with EuropePMC metadata only carries `enriched: false` and an `enrichment_error` (`service_error`, `rate_limited`, `not_found`), with `partial_results` set
68
+ - Abstracts are included by default; `include_abstract: false` drops them for a response about a third the size
85
69
 
86
70
  ---
87
71
 
88
72
  ### `biorxiv_get_published_version` <sub>tool</sub>
89
73
 
90
- - Uses the `/pubs/{server}/{doi}` endpoint for richer metadata than the `publishedJournalDoi` field on `biorxiv_get_preprint`
91
- - Returns journal DOI, journal name, published date, and corresponding-author institution; the output `server` field names which server answered (never `"both"`)
92
- - Scope to `biorxiv`, `medrxiv`, or `both` (default `both`) — the two servers share their DOI prefixes, so a DOI alone doesn't identify one
93
- - `10.64898/` DOIs, which `/pubs` cannot look up by preprint DOI, resolve through the preprint's own journal DOI; when the crosswalk has no record either way, that journal DOI returns alone, without journal name or date, with a notice saying so
94
- - No server answering raises a retryable `upstream_unavailable`, or `rate_limited` with the origin's wait on an HTTP 429 — never `doi_not_found`, which would assert an absence nothing established
74
+ - Takes one preprint DOI and `server` (default `both` — the two servers share their DOI prefixes); `10.64898/` DOIs, which the `/pubs` crosswalk cannot key on, resolve through the preprint's own journal DOI
75
+ - Returns journal DOI, journal name, published date, corresponding-author institution, and the `server` that answered; no server answering raises a retryable `upstream_unavailable` or `rate_limited`, never `doi_not_found`
76
+
77
+ ---
78
+
79
+ ### `biorxiv_list_published_versions` <sub>tool</sub>
80
+
81
+ - Takes a `start_date`/`end_date` interval of journal publication dates and `server` (default `both`); each row is the record `biorxiv_get_published_version` returns, so a week's publications include preprints posted years earlier, and every `preprintDoi` (`10.1101/` or `10.64898/`) feeds the DOI tools
82
+ - Pages of 100 rows per server advance with an integer `cursor`; pagination is per server, a cursor past one server's last row is marked `exhausted: true` with no `total`, and a server that did not answer is named in `failed[]`
83
+ - Abstracts are omitted by default (about three quarters of a page); `include_abstract: true` adds them
95
84
 
96
85
  ---
97
86
 
98
87
  ### `biorxiv_get_fulltext` <sub>tool</sub>
99
88
 
100
- - Fetches the rendered HTML article page (`www.{server}.org/content/{doi}v{N}.full`) and extracts Markdown — there is no keyless JATS source
101
- - Reads the latest version, or the one requested by `version` or a `vN` suffix on the DOI (the two must agree; a version the preprint lacks raises `version_not_found`), confirmed via the details API first; only DOI resolution fans out across `biorxiv`/`medrxiv`/`both` (default `both`) — the full-text fetch itself targets whichever server answered, named in the output `server` field
102
- - Long articles page via `offset`/`limit` character chunking (default `limit` 20,000, max 50,000); response reports `totalChars`, `remainingChars`, `hasMore`, and a full-article `wordCount` counted from the same Markdown, and the extracted article is cached per version so paging costs one origin fetch
103
- - PDF-only preprints and blocked/challenge pages return a typed `fulltext_unavailable` error routing to `biorxiv_get_preprint`
104
- - An origin rate limit (HTTP 429) — on either the article-page host or `api.biorxiv.org` during resolution — returns a retryable `rate_limited` error carrying the origin's `Retry-After` wait, with the recovery hint naming which origin is limiting
89
+ - Takes a DOI, `server` (default `both`), and an optional `version` (or a `vN` suffix — the two must agree; a version the preprint lacks raises `version_not_found`); extracts Markdown from the rendered HTML article page, since there is no keyless JATS source, and names the answering `server`
90
+ - Keeps inline citation, figure, and table labels as printed (`(1–16)`, `(Fig. 1a)`) and every reference entry's bibliographic text, with the DOI of an entry that has one as a `doi.org` link
91
+ - The article page carries no table cells: each table keeps its caption in the text, and `omittedTables` names it with the URL that serves its cells, on every chunk and in the rendered text
92
+ - Pages via `offset`/`limit` characters (default 20,000; a `limit` past the remaining text returns the rest), reporting `totalChars`, `remainingChars`, `hasMore`, and `wordCount`; the extracted article is cached per version, so paging costs one origin fetch
93
+ - PDF-only preprints and blocked pages raise `fulltext_unavailable`, routing to `biorxiv_get_preprint`
105
94
 
106
95
  ---
107
96
 
108
97
  ### `biorxiv_list_categories` <sub>tool</sub>
109
98
 
110
- - No API call — hardcoded static list (25 bioRxiv + 51 medRxiv categories), limited to the ones the listing API actually filters on
111
- - Use to validate category strings before passing to `biorxiv_list_recent`
99
+ - No API call — a static list of 25 bioRxiv and 51 medRxiv categories, limited to the ones the listing API filters on
100
+ - Use it to pick a `category` for `biorxiv_list_recent`
112
101
 
113
102
  ## Features
114
103
 
@@ -119,7 +108,7 @@ bioRxiv-specific:
119
108
  - `BiorxivApiService` wraps `api.biorxiv.org` — details, publications, and crosswalk endpoints with retry and exponential backoff; a 429 is classified as a retryable `rate_limited` error carrying the parsed `Retry-After` wait, with the upstream response body kept out of the payload
120
109
  - `EuropePmcService` wraps the EuropePMC search endpoint for relevance-ranked keyword and/or author results, classified the same way on a 429
121
110
  - `BiorxivFullTextService` fetches and extracts Markdown from the rendered HTML article pages on `www.biorxiv.org` / `www.medrxiv.org` — a distinct origin from the JSON API
122
- - Two-server fan-out via `Promise.allSettled` — both `biorxiv` and `medrxiv` queried in parallel when `server="both"`, results merged and deduplicated by DOI
111
+ - Two-server fan-out via `Promise.allSettled` — both `biorxiv` and `medrxiv` queried in parallel when `server="both"`, with each result naming the server that answered and listings keeping per-server pagination
123
112
  - Polite `User-Agent` header including a mailto address (`BIORXIV_MAILTO` env var) per Cold Spring Harbor Lab API guidelines
124
113
  - Pairs with **pubmed-mcp-server** (post-publication), **openalex-mcp-server** (citation analytics), and **crossref-mcp-server** (DOI metadata)
125
114
 
@@ -257,6 +246,7 @@ All configuration is validated at startup via Zod schemas in `src/config/server-
257
246
  | `MCP_AUTH_MODE` | Auth mode: `none`, `jwt`, or `oauth`. | `none` |
258
247
  | `MCP_LOG_LEVEL` | Log level (`debug`, `info`, `warning`, `error`, etc.). | `info` |
259
248
  | `LOGS_DIR` | Directory for log files (Node.js only). | `<project-root>/logs` |
249
+ | `LOG_TOOL_FAILURE_PAYLOADS` | Log each failed tool call's arguments and result, redacted by key name and capped at `LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES` (default `16384`). A secret inside a free-form value is not redacted. | `false` |
260
250
  | `OTEL_ENABLED` | Enable OpenTelemetry instrumentation. | `false` |
261
251
 
262
252
  See [`.env.example`](./.env.example) for the full list of optional overrides.
@@ -300,7 +290,7 @@ The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `
300
290
  |:---|:---|
301
291
  | `src/index.ts` | `createApp()` entry point — registers tools and initializes services. |
302
292
  | `src/config` | Server-specific environment variable parsing and validation with Zod. |
303
- | `src/mcp-server/tools` | Tool definitions (`*.tool.ts`). Six tools across bioRxiv and medRxiv. |
293
+ | `src/mcp-server/tools` | Tool definitions (`*.tool.ts`). Seven tools across bioRxiv and medRxiv. |
304
294
  | `src/services/biorxiv` | `BiorxivApiService` — details, publications, and crosswalk endpoint wrappers with retry. |
305
295
  | `src/services/biorxiv-fulltext` | `BiorxivFullTextService` — rendered HTML article page fetch and Markdown extraction. |
306
296
  | `src/services/europe-pmc` | `EuropePmcService` — preprint keyword/author search endpoint wrapper. |
@@ -0,0 +1,33 @@
1
+ ---
2
+ summary: "Updates @cyanheads/mcp-ts-core to 0.13.13: tool errors now carry a request id, client error data no longer exposes stack traces, request context, or root causes, and the Docker image installs dependencies natively per architecture."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.3.1 — 2026-10-07
8
+
9
+ ## Changed
10
+
11
+ - **Tool error results carry `data.requestId`** and the text ends with `request <id>`, e.g. `(reason invalid_doi_format · request KKSKM-ZFPUU)` (mcp-ts-core 0.13.10).
12
+ - **Client error data omits internals** — stack traces (0.13.7), request context fields (0.13.8), and `data.rootCause` (0.13.13) no longer reach it.
13
+ - **Argument rejections name the field path in the hint**, and a JSON-stringified object or an integer sent for a string field is repaired before validation (0.13.9).
14
+ - **Upstream fetch errors name the URL by origin only**, e.g. `https://host/…?…`; the EuropePMC `search_unavailable` message embeds that text (0.13.12).
15
+ - **`ctx.log` notifications to the client honor `MCP_LOG_LEVEL` and mask sensitive fields** (0.13.11).
16
+ - **MCP SDK transport** — `@modelcontextprotocol/server` 2.0.0 → 2.2.0 through the framework (0.13.9, 0.13.11).
17
+ - **Docker** — dependencies install in a `deps` stage on the build platform, so the multi-arch build no longer runs Bun under QEMU (0.13.10), and musl-only packages are pruned from the glibc image (0.13.11). The image also drops `ENV MCP_FORCE_CONSOLE_LOGGING`.
18
+ - **MCP Registry `server.json`** — npm entries no longer pass `run start:*` arguments, `runtimeHint` is `npx`, and the streamable-http entry sets `MCP_TRANSPORT_TYPE` to `http` (0.13.11).
19
+ - **Tool handlers** no longer spread `ctx.recoveryFor(...)` into `ctx.fail` data; the framework fills the declared hint (the hints on the wire are unchanged). Tests read it from the `runToolContract` envelope through a new `envelopeHint` helper.
20
+ - **CodeQL workflow** runs one job per language, uploading each under `/language:<language>`.
21
+ - **Ignore files** — `.gitignore` and `.dockerignore` cover every `.env*` file (the `.env.example`, `.env.template`, and `.env.sample` templates stay tracked); `.dockerignore` also excludes the MCP Registry token files; `.mcpbignore` adds `/docs/idea.md`, `/logs/`, and `/.cache/`; `package.json` `files` adds `!dist/*.mcpb`.
22
+ - **Framework skills and scripts** synced to 0.13.13 — new `scripts/install-otel.ts` and `scripts/prune-musl-packages.ts` (run by the Dockerfile), `lint:packaging` checks 13–16, `release:github -- --check`, and corrected devcheck TODO and tracked-secret scans.
23
+ - **Docs** — `AGENTS.md` and `CLAUDE.md` error-contract, `ctx` table, command, and skill-list wording; README tool sections condensed and a `LOG_TOOL_FAILURE_PAYLOADS` row added; `.env.example` rows for opt-in framework settings (including `LOG_TOOL_FAILURE_PAYLOADS`, `LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES`, `LOG_LLM_INTERACTIONS`, the `OTEL_EXPORTER_OTLP_{TRACES,METRICS,LOGS}_ENDPOINT` overrides).
24
+
25
+ ## Fixed
26
+
27
+ - **README VS Code install link** percent-encodes the `/` in the package scope.
28
+
29
+ ## Dependencies
30
+
31
+ - `@cyanheads/mcp-ts-core` ^0.13.6 → ^0.13.13
32
+ - Dev: `@biomejs/biome` 2.5.14 → 2.5.15, `@socketsecurity/bun-security-scanner` ^1.1.2 → ^1.1.3, `@types/node` 26.6.2 → 26.6.4, `ignore` ^7.0.9 → ^7.0.12, `tsc-alias` ^1.9.5 → ^1.9.7, `vitest` ^5.0.1 → ^5.0.3
33
+ - Bun 1.4.0 → 1.4.2 (`packageManager`, Docker base images, README badge)
@@ -0,0 +1,33 @@
1
+ ---
2
+ summary: "Adds biorxiv_list_published_versions, which lists preprints published as journal articles by journal publication date. biorxiv_get_fulltext keeps citation labels and reference text, names tables whose cells are not on the page, and drops its 50,000-character limit ceiling."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.4.0 — 2026-10-15
8
+
9
+ ## Added
10
+
11
+ - **`biorxiv_list_published_versions`** lists the preprints that appeared as journal articles within a journal publication-date interval, on bioRxiv, medRxiv, or both. Pages of 100 rows per server advance with `cursor`, with per-server pagination; `include_abstract` adds abstracts (#59).
12
+ - **`biorxiv_get_fulltext` `omittedTables`** names each table whose cells are not on the article page, by label with the URL that serves them, on every chunk and in the rendered text (#58).
13
+
14
+ ## Changed
15
+
16
+ - **`biorxiv_get_fulltext` extraction** keeps inline citation, figure, and table labels and each reference entry's text, with the DOI of an entry that has one as a `doi.org` link. Cached extractions from earlier versions are not reused (#58).
17
+ - **`biorxiv_get_fulltext` `limit`** has no maximum; a value past the remaining text returns the rest of the article (#62).
18
+ - **`biorxiv_search_preprints` `date_from`/`date_to`** advertise the `YYYY-MM-DD` pattern in the input schema, so a malformed date is rejected as an invalid argument; `invalid_date_range` still covers non-calendar dates and reversed bounds (#57).
19
+ - **`rate_limited` recovery hints** read "wait the `retryAfter` seconds when present, otherwise a minute or two" on every tool that declares it (#60).
20
+ - **Minor:** the server instructions name `biorxiv_list_published_versions` and the `10.64898/` DOI prefix (#59); the guidance on a truncated `biorxiv_get_fulltext` chunk names the `doi` to pass with the next `offset` (#58).
21
+
22
+ ## Fixed
23
+
24
+ - **`biorxiv_search_preprints` blank dates** — a blank `date_from` or `date_to` reads as unset instead of corrupting the EuropePMC date filter and the `queryEcho` (#57).
25
+ - **`Retry-After` of `0` or a past date** is treated as no usable wait across every origin, so the retry wording no longer says to wait 0 seconds (#60).
26
+
27
+ ## Dependencies
28
+
29
+ - `@cyanheads/mcp-ts-core` ^0.13.13 → ^0.13.15 (`@modelcontextprotocol/server` 2.2.0 → 2.3.1 through the framework)
30
+ - `defuddle` ^0.19.4 → ^0.19.5, `pino-pretty` ^13.1.3 → ^13.2.0, `zod` ^4.6.5 → ^4.6.6
31
+ - Dev: `@types/node` 26.6.4 → 26.6.5, `vitest` ^5.0.3 → ^5.0.4
32
+ - Bun 1.4.2 → 1.4.3 (`packageManager`, Docker base images)
33
+ - Framework skills in `framework-skills/` synced to 0.13.15
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ await createApp({
16
16
  tools: [...allToolDefinitions],
17
17
  resources: [],
18
18
  prompts: [],
19
- instructions: 'bioRxiv/medRxiv preprints, addressed by 10.1101/ DOI and searched across both servers by default. Find preprints with biorxiv_search_preprints (keyword or author, ranked by EuropePMC) or biorxiv_list_recent (a date interval, filtered by a category string from biorxiv_list_categories and, on bioRxiv, by a funder ROR ID). Resolve a DOI with biorxiv_get_preprint for metadata and revisions, biorxiv_get_fulltext for the article body as Markdown, and biorxiv_get_published_version for the journal crosswalk once a preprint has been published.',
19
+ instructions: 'bioRxiv/medRxiv preprints, addressed by 10.1101/ or 10.64898/ DOI and searched across both servers by default. Find preprints with biorxiv_search_preprints (keyword or author, ranked by EuropePMC) or biorxiv_list_recent (a date interval, filtered by a category string from biorxiv_list_categories and, on bioRxiv, by a funder ROR ID). Resolve a DOI with biorxiv_get_preprint for metadata and revisions, biorxiv_get_fulltext for the article body as Markdown, and biorxiv_get_published_version for the journal crosswalk once a preprint has been published. biorxiv_list_published_versions lists those crosswalk records by journal publication date — the preprints that became journal articles in an interval, whenever they were posted.',
20
20
  // Stateless HTTP: no tool gates on ctx.requestInput, so no session store is needed.
21
21
  sessionMode: 'stateless',
22
22
  // Public hosted catalog — serve full landing inventory even when MCP_AUTH_MODE=jwt/oauth.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,oBAAoB;IAC1B,KAAK,EAAE,oBAAoB;IAC3B,KAAK,EAAE,CAAC,GAAG,kBAAkB,CAAC;IAC9B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EACV,8hBAA8hB;IAChiB,oFAAoF;IACpF,WAAW,EAAE,WAAW;IACxB,0FAA0F;IAC1F,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAC/B,KA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prefix, so the default server="both" resolves the DOI against both
10
10
  * in parallel; the fan-out is narrower than biorxiv_get_published_version's — only
11
11
  * the resolution step fans out, and the full-text fetch targets the single server
12
- * that answered. Long articles are paged with offset/limit character chunking.
12
+ * that answered. Long articles are paged with offset/limit character chunking;
13
+ * the tables the page carries no cells for (`omittedTables`) ride on every chunk.
13
14
  * Full text is best-effort HTML→Markdown, not structured JATS; preprints that are
14
15
  * PDF-only or whose page is blocked return a typed `fulltext_unavailable` error
15
16
  * routing to biorxiv_get_preprint, while an origin rate limit (HTTP 429) routes to
@@ -56,6 +57,10 @@ export declare const biorxivGetFulltextTool: import("@cyanheads/mcp-ts-core").To
56
57
  totalChars: z.ZodNumber;
57
58
  remainingChars: z.ZodNumber;
58
59
  hasMore: z.ZodBoolean;
60
+ omittedTables: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ label: z.ZodString;
62
+ url: z.ZodString;
63
+ }, z.core.$strip>>>;
59
64
  }, z.core.$strip>, readonly [{
60
65
  readonly reason: "invalid_doi_format";
61
66
  readonly code: JsonRpcErrorCode.ValidationError;
@@ -87,7 +92,7 @@ export declare const biorxivGetFulltextTool: import("@cyanheads/mcp-ts-core").To
87
92
  readonly code: JsonRpcErrorCode.RateLimited;
88
93
  readonly retryable: true;
89
94
  readonly when: "Either origin returned HTTP 429 for this host — the article page (www.biorxiv.org / www.medrxiv.org) during the full-text fetch, or api.biorxiv.org during version resolution.";
90
- readonly recovery: "Wait the retryAfter seconds before calling again; the recovery hint names which origins are limiting and what still works meanwhile.";
95
+ readonly recovery: "Wait the retryAfter seconds when present, otherwise a minute or two, before calling again; the recovery hint names which origins are limiting and what still works meanwhile.";
91
96
  }, {
92
97
  readonly reason: "fulltext_unavailable";
93
98
  readonly code: JsonRpcErrorCode.NotFound;
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-get-fulltext.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+ZjC,CAAC"}
1
+ {"version":3,"file":"biorxiv-get-fulltext.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkbjC,CAAC"}
@@ -9,7 +9,8 @@
9
9
  * 10.1101/ DOI prefix, so the default server="both" resolves the DOI against both
10
10
  * in parallel; the fan-out is narrower than biorxiv_get_published_version's — only
11
11
  * the resolution step fans out, and the full-text fetch targets the single server
12
- * that answered. Long articles are paged with offset/limit character chunking.
12
+ * that answered. Long articles are paged with offset/limit character chunking;
13
+ * the tables the page carries no cells for (`omittedTables`) ride on every chunk.
13
14
  * Full text is best-effort HTML→Markdown, not structured JATS; preprints that are
14
15
  * PDF-only or whose page is blocked return a typed `fulltext_unavailable` error
15
16
  * routing to biorxiv_get_preprint, while an origin rate limit (HTTP 429) routes to
@@ -34,7 +35,7 @@ import { getBiorxivFullTextService } from '../../../services/biorxiv-fulltext/bi
34
35
  import { describeWait, escapeMarkdown, findRateLimit, normalizeDoi } from '../../../services/shared.js';
35
36
  export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
36
37
  title: 'Get Preprint Full Text',
37
- description: 'Retrieve a preprint\'s full text as best-effort Markdown, extracted from its rendered HTML article page. Reads the latest version unless one is requested (the version input, or a vN suffix on the DOI), confirms it via the details API, then fetches and extracts the body — abstract, sections, and references. bioRxiv and medRxiv share the 10.1101/ DOI prefix, so server="both" (the default) resolves the DOI against both in parallel and the response reports which server answered. This is HTML-to-Markdown extraction, not structured JATS: section structure is approximate and not guaranteed. Long articles exceed a single response, so use offset and limit to page through them (the response reports totalChars, remainingChars, and hasMore); paging is cheap because the extracted article is cached per version for an hour after the first read, so only the first chunk pays for a fetch. Not every preprint has an extractable HTML page — some are PDF-only and some origins block programmatic access — in which case a fulltext_unavailable error routes you to biorxiv_get_preprint for the title, abstract, and metadata. For a preprint that has been published in a journal, the journal\'s version may have richer full text elsewhere.',
38
+ description: 'Retrieve a preprint\'s full text as best-effort Markdown, extracted from its rendered HTML article page. Reads the latest version unless one is requested (the version input, or a vN suffix on the DOI), confirms it via the details API, then fetches and extracts the body — abstract, sections, inline citation labels, and the reference list. Table cells are not on the article page: each table appears as its caption, and omittedTables names it with the URL that serves its cells. bioRxiv and medRxiv share the 10.1101/ DOI prefix, so server="both" (the default) resolves the DOI against both in parallel and the response reports which server answered. This is HTML-to-Markdown extraction, not structured JATS: section structure is approximate and not guaranteed. Long articles exceed a single response, so use offset and limit to page through them (the response reports totalChars, remainingChars, and hasMore); paging is cheap because the extracted article is cached per version for an hour after the first read, so only the first chunk pays for a fetch. Not every preprint has an extractable HTML page — some are PDF-only and some origins block programmatic access — in which case a fulltext_unavailable error routes you to biorxiv_get_preprint for the title, abstract, and metadata. For a preprint that has been published in a journal, the journal\'s version may have richer full text elsewhere.',
38
39
  annotations: { readOnlyHint: true, openWorldHint: true },
39
40
  input: z.object({
40
41
  doi: z
@@ -60,9 +61,8 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
60
61
  .number()
61
62
  .int()
62
63
  .min(1)
63
- .max(50000)
64
64
  .default(20000)
65
- .describe('Maximum number of characters to return in this chunk. Default 20,000; increase toward 50,000 for large context windows. Check the length field for the actual count returned.'),
65
+ .describe('Maximum number of characters to return in this chunk. Default 20,000; a value past the remaining text returns the rest of the article. Check the length field for the actual count returned.'),
66
66
  }),
67
67
  output: z.object({
68
68
  doi: z.string().describe('The resolved preprint DOI, in bare form.'),
@@ -97,6 +97,17 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
97
97
  hasMore: z
98
98
  .boolean()
99
99
  .describe('True when more text follows this chunk. When true, call again with offset = offset + length.'),
100
+ omittedTables: z
101
+ .array(z
102
+ .object({
103
+ label: z.string().describe('The table label as the article prints it, e.g. "Table 1".'),
104
+ url: z
105
+ .string()
106
+ .describe("The article origin's page that serves this table's cells. Not fetched by this tool."),
107
+ })
108
+ .describe('One table whose cells content does not include.'))
109
+ .optional()
110
+ .describe("Tables the article page names without their cells — content keeps each one's caption, and the cells live on a separate page at url. The same list on every chunk. Absent when the article has none."),
100
111
  }),
101
112
  // Truncation disclosure on the enrichment channel (the framework capped-list
102
113
  // convention) alongside the gutenberg-style paging fields in output. Populated
@@ -151,7 +162,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
151
162
  code: JsonRpcErrorCode.RateLimited,
152
163
  retryable: true,
153
164
  when: 'Either origin returned HTTP 429 for this host — the article page (www.biorxiv.org / www.medrxiv.org) during the full-text fetch, or api.biorxiv.org during version resolution.',
154
- recovery: 'Wait the retryAfter seconds before calling again; the recovery hint names which origins are limiting and what still works meanwhile.',
165
+ recovery: 'Wait the retryAfter seconds when present, otherwise a minute or two, before calling again; the recovery hint names which origins are limiting and what still works meanwhile.',
155
166
  },
156
167
  {
157
168
  reason: 'fulltext_unavailable',
@@ -175,9 +186,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
175
186
  });
176
187
  const parsed = normalizeDoi(input.doi);
177
188
  if (!parsed) {
178
- throw ctx.fail('invalid_doi_format', `Invalid DOI format: ${input.doi}`, {
179
- ...ctx.recoveryFor('invalid_doi_format'),
180
- });
189
+ throw ctx.fail('invalid_doi_format', `Invalid DOI format: ${input.doi}`);
181
190
  }
182
191
  const { doi } = parsed;
183
192
  // A version can arrive two ways — a vN suffix on a pasted DOI or URL, and the
@@ -191,7 +200,6 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
191
200
  doi,
192
201
  doiVersion: parsed.version,
193
202
  version: input.version,
194
- ...ctx.recoveryFor('version_conflict'),
195
203
  });
196
204
  }
197
205
  const requestedVersion = inputVersion ?? parsed.version;
@@ -238,13 +246,11 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
238
246
  throw ctx.fail('upstream_unavailable', `Version lookup for ${doi} failed — ${detail}`, {
239
247
  doi,
240
248
  servers: rejections.map((f) => f.server),
241
- ...ctx.recoveryFor('upstream_unavailable'),
242
249
  }, { cause: rejections[0]?.error });
243
250
  }
244
251
  throw ctx.fail('doi_not_found', `No preprint found for ${doi} on ${servers.join(' or ')}.`, {
245
252
  doi,
246
253
  servers,
247
- ...ctx.recoveryFor('doi_not_found'),
248
254
  });
249
255
  }
250
256
  const { server, versions } = resolved;
@@ -255,7 +261,6 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
255
261
  server,
256
262
  version: requestedVersion,
257
263
  availableVersions: versions,
258
- ...ctx.recoveryFor('version_not_found'),
259
264
  });
260
265
  }
261
266
  const version = requestedVersion ?? latestVersion;
@@ -294,7 +299,6 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
294
299
  server,
295
300
  version,
296
301
  sourceUrl: result.sourceUrl,
297
- ...ctx.recoveryFor('fulltext_unavailable'),
298
302
  });
299
303
  }
300
304
  // Both measure the one string this call pages over, so they cannot disagree
@@ -303,7 +307,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
303
307
  const totalChars = result.markdown.length;
304
308
  const wordCount = result.markdown.split(/\s+/).length;
305
309
  if (input.offset >= totalChars) {
306
- throw ctx.fail('offset_out_of_range', `Offset ${input.offset} is past the end of the text (totalChars: ${totalChars}).`, { offset: input.offset, totalChars, ...ctx.recoveryFor('offset_out_of_range') });
310
+ throw ctx.fail('offset_out_of_range', `Offset ${input.offset} is past the end of the text (totalChars: ${totalChars}).`, { offset: input.offset, totalChars });
307
311
  }
308
312
  const end = Math.min(input.offset + input.limit, totalChars);
309
313
  const content = result.markdown.slice(input.offset, end);
@@ -314,7 +318,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
314
318
  ctx.enrich.truncated({
315
319
  shown: length,
316
320
  cap: input.limit,
317
- guidance: `Full text truncated at the ${input.limit}-character limit. Call biorxiv_get_fulltext again with version=${version}, offset=${end} to read the next chunk.`,
321
+ guidance: `Full text truncated at the ${input.limit}-character limit. Call biorxiv_get_fulltext again with doi=${doi}, version=${version}, offset=${end} to read the next chunk.`,
318
322
  });
319
323
  }
320
324
  return {
@@ -331,6 +335,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
331
335
  totalChars,
332
336
  remainingChars,
333
337
  hasMore,
338
+ ...(result.omittedTables && { omittedTables: result.omittedTables }),
334
339
  };
335
340
  },
336
341
  // The page title is upstream text and is escaped; `content` is extractor-produced
@@ -346,11 +351,20 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
346
351
  lines.push(`**Source:** ${result.sourceUrl}`);
347
352
  lines.push(`**Format:** ${result.contentFormat}`);
348
353
  lines.push('\n> Extracted from the rendered HTML page — section structure is best-effort and not guaranteed (this is not JATS). Treat headings and reference formatting as approximate.');
354
+ const tables = result.omittedTables ?? [];
355
+ if (tables.length > 0) {
356
+ lines.push(`\n**${tables.length === 1 ? '1 table' : `${tables.length} tables`} not included:** the article page carries only each caption; the cells are served at:`);
357
+ for (const table of tables)
358
+ lines.push(`- ${escapeMarkdown(table.label)}: ${table.url}`);
359
+ }
349
360
  lines.push('\n---\n');
350
361
  lines.push(result.content);
351
362
  if (result.hasMore) {
352
363
  lines.push(`\n---\n_Call biorxiv_get_fulltext again with doi=${result.doi}, version=${result.version}, offset=${end} to read the next chunk._`);
353
364
  }
365
+ else if (tables.length > 0) {
366
+ lines.push('\n---\n_End of extracted text. The table cells listed above are not included._');
367
+ }
354
368
  else {
355
369
  lines.push('\n---\n_End of extracted text._');
356
370
  }
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-get-fulltext.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEjG,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,EAAE;IACjE,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,4sCAA4sC;IAC9sC,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IAExD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,GAAG,EAAE,CAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACP,uSAAuS,CACxS;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,EAAE;aACV,QAAQ,CACP,2KAA2K,CAC5K;QACH,MAAM,EAAE,CAAC;aACN,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC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{"version":3,"file":"biorxiv-get-fulltext.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEjG,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,EAAE;IACjE,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,u3CAAu3C;IACz3C,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IAExD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,GAAG,EAAE,CAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACP,uSAAuS,CACxS;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,EAAE;aACV,QAAQ,CACP,2KAA2K,CAC5K;QACH,MAAM,EAAE,CAAC;aACN,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;aACpC,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,+NAA+N,CAChO;QACH,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,OAAO,CAAC,CAAC,CAAC;aACV,QAAQ,CACP,mNAAmN,CACpN;QACH,KAAK,EAAE,CAAC;aACL,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,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,KAAK,CAAC,IAAI,CAAC,gFAAgF,CAAC,CAAC;QAC/F,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -77,6 +77,6 @@ export declare const biorxivGetPreprintTool: import("@cyanheads/mcp-ts-core").To
77
77
  readonly code: JsonRpcErrorCode.RateLimited;
78
78
  readonly retryable: true;
79
79
  readonly when: "No DOI resolved and at least one lookup was rejected with HTTP 429 by api.biorxiv.org.";
80
- readonly recovery: "Wait the retryAfter seconds before retrying — every preprint metadata tool queries the same origin, so none of them will answer sooner.";
80
+ readonly recovery: "Wait the retryAfter seconds when present, otherwise a minute or two, before retrying — every preprint metadata tool queries the same origin, so none of them will answer sooner.";
81
81
  }], undefined>;
82
82
  //# sourceMappingURL=biorxiv-get-preprint.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-get-preprint.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-preprint.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAuEjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4QjC,CAAC"}
1
+ {"version":3,"file":"biorxiv-get-preprint.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-preprint.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAuEjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwQjC,CAAC"}
@@ -166,7 +166,7 @@ export const biorxivGetPreprintTool = tool('biorxiv_get_preprint', {
166
166
  code: JsonRpcErrorCode.RateLimited,
167
167
  retryable: true,
168
168
  when: 'No DOI resolved and at least one lookup was rejected with HTTP 429 by api.biorxiv.org.',
169
- recovery: 'Wait the retryAfter seconds before retrying — every preprint metadata tool queries the same origin, so none of them will answer sooner.',
169
+ recovery: 'Wait the retryAfter seconds when present, otherwise a minute or two, before retrying — every preprint metadata tool queries the same origin, so none of them will answer sooner.',
170
170
  },
171
171
  ],
172
172
  async handler(input, ctx) {
@@ -237,9 +237,7 @@ export const biorxivGetPreprintTool = tool('biorxiv_get_preprint', {
237
237
  // All DOIs failed — pick the appropriate declared error
238
238
  if (preprints.length === 0 && failed.length === input.dois.length) {
239
239
  if (failed.every((f) => f.reason === 'invalid_doi_format')) {
240
- throw ctx.fail('invalid_doi_format', `Invalid DOI format: ${input.dois.join(', ')}`, {
241
- ...ctx.recoveryFor('invalid_doi_format'),
242
- });
240
+ throw ctx.fail('invalid_doi_format', `Invalid DOI format: ${input.dois.join(', ')}`);
243
241
  }
244
242
  // A rate limit outranks a generic upstream failure here: both say "retry",
245
243
  // but only one says when, and retrying sooner than the origin asked would
@@ -257,9 +255,9 @@ export const biorxivGetPreprintTool = tool('biorxiv_get_preprint', {
257
255
  }
258
256
  const unavailable = failed.filter((f) => f.reason === 'upstream_unavailable');
259
257
  if (unavailable.length > 0) {
260
- throw ctx.fail('upstream_unavailable', `No DOI could be resolved — ${unavailable.map((f) => `${f.doi}: ${f.error}`).join('; ')}`, { ...ctx.recoveryFor('upstream_unavailable') });
258
+ throw ctx.fail('upstream_unavailable', `No DOI could be resolved — ${unavailable.map((f) => `${f.doi}: ${f.error}`).join('; ')}`);
261
259
  }
262
- throw ctx.fail('doi_not_found', `None of the requested DOIs were found: ${input.dois.join(', ')}`, { ...ctx.recoveryFor('doi_not_found') });
260
+ throw ctx.fail('doi_not_found', `None of the requested DOIs were found: ${input.dois.join(', ')}`);
263
261
  }
264
262
  return { preprints, failed };
265
263
  },