@cyanheads/biorxiv-mcp-server 0.3.1 → 0.4.1

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 (56) hide show
  1. package/AGENTS.md +17 -13
  2. package/CLAUDE.md +17 -13
  3. package/Dockerfile +3 -3
  4. package/README.md +34 -25
  5. package/changelog/0.4.x/0.4.0.md +33 -0
  6. package/changelog/0.4.x/0.4.1.md +27 -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 +12 -5
  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 +113 -29
  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 +21 -9
  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 +130 -49
  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 +4 -2
  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 +33 -20
  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 +102 -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 +372 -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 +35 -21
  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 +18 -6
  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 +78 -48
  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 +101 -15
  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 +33 -8
  38. package/dist/services/biorxiv/biorxiv-service.d.ts.map +1 -1
  39. package/dist/services/biorxiv/biorxiv-service.js +91 -24
  40. package/dist/services/biorxiv/biorxiv-service.js.map +1 -1
  41. package/dist/services/biorxiv/types.d.ts +25 -3
  42. package/dist/services/biorxiv/types.d.ts.map +1 -1
  43. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts +22 -5
  44. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts.map +1 -1
  45. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js +99 -17
  46. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js.map +1 -1
  47. package/dist/services/europe-pmc/europe-pmc-service.d.ts +7 -3
  48. package/dist/services/europe-pmc/europe-pmc-service.d.ts.map +1 -1
  49. package/dist/services/europe-pmc/europe-pmc-service.js +20 -13
  50. package/dist/services/europe-pmc/europe-pmc-service.js.map +1 -1
  51. package/dist/services/shared.d.ts +81 -5
  52. package/dist/services/shared.d.ts.map +1 -1
  53. package/dist/services/shared.js +130 -13
  54. package/dist/services/shared.js.map +1 -1
  55. package/package.json +8 -8
  56. package/server.json +3 -3
@@ -8,8 +8,11 @@
8
8
  * and run through the framework extractor. bioRxiv and medRxiv share the
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
- * 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.
11
+ * the resolution step fans out, it ends the moment the server holding the DOI
12
+ * answers (the other lookup is cut short, so a stalled server never spends the
13
+ * article page's budget), and the full-text fetch targets that one server. Long
14
+ * articles are paged with offset/limit character chunking;
15
+ * the tables the page carries no cells for (`omittedTables`) ride on every chunk.
13
16
  * Full text is best-effort HTML→Markdown, not structured JATS; preprints that are
14
17
  * PDF-only or whose page is blocked return a typed `fulltext_unavailable` error
15
18
  * routing to biorxiv_get_preprint, while an origin rate limit (HTTP 429) routes to
@@ -28,13 +31,37 @@
28
31
  * @module mcp-server/tools/definitions/biorxiv-get-fulltext.tool
29
32
  */
30
33
  import { tool, z } from '@cyanheads/mcp-ts-core';
31
- import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
34
+ import { JsonRpcErrorCode, McpError } from '@cyanheads/mcp-ts-core/errors';
35
+ import { defaultIsTransient } from '@cyanheads/mcp-ts-core/utils';
32
36
  import { getBiorxivApiService } from '../../../services/biorxiv/biorxiv-service.js';
33
37
  import { getBiorxivFullTextService } from '../../../services/biorxiv-fulltext/biorxiv-fulltext-service.js';
34
- import { describeWait, escapeMarkdown, findRateLimit, normalizeDoi } from '../../../services/shared.js';
38
+ import { CALL_BUDGET_MS, describeWait, escapeMarkdown, findRateLimit, firstHit, normalizeDoi, remainingBudgetMs, startCallDeadline, } from '../../../services/shared.js';
39
+ /**
40
+ * Whether the article-page fetch ended on the call's budget running out before
41
+ * the page had failed at all: it was never requested, or its one request was
42
+ * still waiting when the budget cut it off. A page that timed out, answered an
43
+ * error, or dropped the connection on its own failed, whatever was left.
44
+ */
45
+ function endedOnCallBudget(err) {
46
+ const data = err.data;
47
+ if (data?.reason !== 'retry_deadline_exceeded')
48
+ return false;
49
+ if (data.retryAttempts === 0)
50
+ return true;
51
+ // The budget's abort reaches a request in flight, headers or body, as
52
+ // `fetchWithTimeout`'s FetchSignalTimeout.
53
+ const { cause } = err;
54
+ return (data.retryAttempts === 1 &&
55
+ cause instanceof McpError &&
56
+ cause.data?.errorSource === 'FetchSignalTimeout');
57
+ }
58
+ /** A share of the call's budget as an error message states it: `500 ms`, `49.5 s`. */
59
+ function describeDuration(ms) {
60
+ return ms < 1_000 ? `${ms} ms` : `${(ms / 1_000).toFixed(1)} s`;
61
+ }
35
62
  export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
36
63
  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.',
64
+ 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
65
  annotations: { readOnlyHint: true, openWorldHint: true },
39
66
  input: z.object({
40
67
  doi: z
@@ -60,9 +87,8 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
60
87
  .number()
61
88
  .int()
62
89
  .min(1)
63
- .max(50000)
64
90
  .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.'),
91
+ .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
92
  }),
67
93
  output: z.object({
68
94
  doi: z.string().describe('The resolved preprint DOI, in bare form.'),
@@ -97,6 +123,17 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
97
123
  hasMore: z
98
124
  .boolean()
99
125
  .describe('True when more text follows this chunk. When true, call again with offset = offset + length.'),
126
+ omittedTables: z
127
+ .array(z
128
+ .object({
129
+ label: z.string().describe('The table label as the article prints it, e.g. "Table 1".'),
130
+ url: z
131
+ .string()
132
+ .describe("The article origin's page that serves this table's cells. Not fetched by this tool."),
133
+ })
134
+ .describe('One table whose cells content does not include.'))
135
+ .optional()
136
+ .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
137
  }),
101
138
  // Truncation disclosure on the enrichment channel (the framework capped-list
102
139
  // convention) alongside the gutenberg-style paging fields in output. Populated
@@ -143,15 +180,15 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
143
180
  reason: 'upstream_unavailable',
144
181
  code: JsonRpcErrorCode.ServiceUnavailable,
145
182
  retryable: true,
146
- when: 'No attempted server resolved the DOI and at least one lookup failed against api.biorxiv.org.',
147
- recovery: 'Retry the request after a short delay — the preprint may well exist; api.biorxiv.org did not answer.',
183
+ when: "No attempted server resolved the DOI and at least one lookup failed against api.biorxiv.org; the version lookup used most of the call's time budget, so the article page was never requested or had not answered when the budget ran out; or the article page (www.biorxiv.org / www.medrxiv.org) did not answer within the call.",
184
+ recovery: 'Retry the request after a short delay — the preprint may well exist; api.biorxiv.org did not answer the version lookup.',
148
185
  },
149
186
  {
150
187
  reason: 'rate_limited',
151
188
  code: JsonRpcErrorCode.RateLimited,
152
189
  retryable: true,
153
190
  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.',
191
+ 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
192
  },
156
193
  {
157
194
  reason: 'fulltext_unavailable',
@@ -194,25 +231,21 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
194
231
  const requestedVersion = inputVersion ?? parsed.version;
195
232
  // Resolve the preprint and its versions via the JSON details API — this
196
233
  // confirms the requested version exists (or supplies the latest), and gives
197
- // clean not-found handling. Only this step fans out; the full-text fetch
198
- // targets the server that answered.
234
+ // clean not-found handling. Only this step fans out, and it ends the moment
235
+ // the server holding the DOI answers; the full-text fetch targets that server.
199
236
  const service = getBiorxivApiService();
237
+ // One budget for resolution and the article page, which run one after another.
238
+ const deadline = startCallDeadline();
200
239
  const servers = input.server === 'both' ? ['biorxiv', 'medrxiv'] : [input.server];
201
- const settled = await Promise.allSettled(servers.map((server) => service.getDetails(doi, server, ctx)));
202
- let resolved;
203
- for (const [i, settledResult] of settled.entries()) {
204
- if (settledResult.status === 'fulfilled' && settledResult.value.length > 0) {
205
- resolved = {
206
- server: servers[i],
207
- versions: settledResult.value.map((r) => r.version ?? '1'),
208
- };
209
- break;
210
- }
211
- }
212
- if (!resolved) {
240
+ const { hit, outcomes } = await firstHit(servers.map((server) => (signal) => service.getDetails(doi, server, deadline, ctx, signal)), (revisions) => revisions.length > 0, ctx.signal);
241
+ // A cancelled call is not resolved from the leg that finished first, nor
242
+ // reported as a failed lookup.
243
+ ctx.signal.throwIfAborted();
244
+ // Only the lookups that had answered when resolution ended.
245
+ const rejections = outcomes.flatMap((r, i) => r?.status === 'rejected' ? [{ server: servers[i], error: r.reason }] : []);
246
+ if (!hit) {
213
247
  // "Not found" is a claim about what the servers reported, so a server that
214
248
  // never answered leaves absence unestablished — and retryable.
215
- const rejections = settled.flatMap((r, i) => r.status === 'rejected' ? [{ server: servers[i], error: r.reason }] : []);
216
249
  if (rejections.length > 0) {
217
250
  const detail = rejections
218
251
  .map((f) => `${f.server}: ${f.error instanceof Error ? f.error.message : String(f.error)}`)
@@ -242,7 +275,8 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
242
275
  servers,
243
276
  });
244
277
  }
245
- const { server, versions } = resolved;
278
+ const server = servers[hit.leg];
279
+ const versions = hit.value.map((r) => r.version ?? '1');
246
280
  const latestVersion = versions.at(-1) ?? '1';
247
281
  if (requestedVersion !== undefined && !versions.includes(requestedVersion)) {
248
282
  throw ctx.fail('version_not_found', `${doi} has no version ${requestedVersion} on ${server} — available versions: ${versions.join(', ')}.`, {
@@ -253,7 +287,47 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
253
287
  });
254
288
  }
255
289
  const version = requestedVersion ?? latestVersion;
256
- const result = await getBiorxivFullTextService().fetchFullText(server, doi, version, ctx);
290
+ // The page is requested whatever is left of the budget — none at all still
291
+ // serves a cached extraction — so resolution's share is measured here.
292
+ const pageBudgetMs = remainingBudgetMs(deadline);
293
+ const lookupMs = CALL_BUDGET_MS - pageBudgetMs;
294
+ const result = await getBiorxivFullTextService()
295
+ .fetchFullText(server, doi, version, deadline, ctx)
296
+ .catch((err) => {
297
+ // A fetch the caller's cancellation stopped is that cancellation.
298
+ ctx.signal.throwIfAborted();
299
+ // Only a page that never answered — a timeout, a 5xx, a network error, the
300
+ // budget running out — is the retryable outage resolution reports, on the
301
+ // other origin. An origin 4xx or an extractor rejection keeps its own code.
302
+ if (!(err instanceof McpError && defaultIsTransient(err)))
303
+ throw err;
304
+ // The slow lookup left the page too little of the budget to answer in:
305
+ // that, not the page, is what failed.
306
+ if (lookupMs > pageBudgetMs && endedOnCallBudget(err)) {
307
+ const unanswered = servers.filter((_, i) => outcomes[i]?.status !== 'fulfilled');
308
+ const resolved = `before ${server} resolved the DOI${unanswered.length > 0 ? ` (${unanswered.join(' and ')} did not answer)` : ''}`;
309
+ throw ctx.fail('upstream_unavailable', err.data.retryAttempts === 0
310
+ ? `Version lookup for ${doi} used the call's whole ${CALL_BUDGET_MS / 1000} s time budget ${resolved}, so the ${server} article page was never requested.`
311
+ : `Version lookup for ${doi} used ${describeDuration(lookupMs)} of the call's ${CALL_BUDGET_MS / 1000} s time budget ${resolved}, so the ${server} article page got only the remaining ${describeDuration(pageBudgetMs)} and had not answered when the budget ran out.`, {
312
+ doi,
313
+ server,
314
+ version,
315
+ recovery: {
316
+ hint: `Call biorxiv_get_fulltext again with server="${server}" — the preprint is on ${server}, so the retry spends the call's whole time budget there: the version lookup, then the article page.`,
317
+ },
318
+ }, { cause: err });
319
+ }
320
+ throw ctx.fail('upstream_unavailable', `The ${server} article page for ${doi} v${version} did not answer — ${err instanceof Error ? err.message : String(err)}`, {
321
+ doi,
322
+ server,
323
+ version,
324
+ recovery: {
325
+ hint: `Retry after a short delay — the www.${server}.org article page did not answer. api.biorxiv.org resolved this preprint, so biorxiv_get_preprint still serves its title, abstract, and metadata meanwhile.`,
326
+ },
327
+ }, { cause: err });
328
+ });
329
+ // A page served from the cache settles even after the caller has gone.
330
+ ctx.signal.throwIfAborted();
257
331
  if (result.kind === 'unavailable') {
258
332
  if (result.reason === 'rate_limited') {
259
333
  // Dynamic recovery — the origin's own wait is more actionable than the
@@ -266,7 +340,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
266
340
  // while that origin is limiting too sends them back into the limit, and a
267
341
  // retry re-runs resolution, so the wait must clear whichever origin asked
268
342
  // for the longer one.
269
- const metadataLimit = findRateLimit(settled.flatMap((r) => (r.status === 'rejected' ? [r.reason] : [])));
343
+ const metadataLimit = findRateLimit(rejections.map((f) => f.error));
270
344
  const waits = [result.retryAfter, metadataLimit?.retryAfter].filter((n) => n !== undefined);
271
345
  const retryAfter = waits.length > 0 ? Math.max(...waits) : undefined;
272
346
  const wait = describeWait(retryAfter);
@@ -307,7 +381,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
307
381
  ctx.enrich.truncated({
308
382
  shown: length,
309
383
  cap: input.limit,
310
- 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.`,
384
+ 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.`,
311
385
  });
312
386
  }
313
387
  return {
@@ -324,6 +398,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
324
398
  totalChars,
325
399
  remainingChars,
326
400
  hasMore,
401
+ ...(result.omittedTables && { omittedTables: result.omittedTables }),
327
402
  };
328
403
  },
329
404
  // The page title is upstream text and is escaped; `content` is extractor-produced
@@ -339,11 +414,20 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
339
414
  lines.push(`**Source:** ${result.sourceUrl}`);
340
415
  lines.push(`**Format:** ${result.contentFormat}`);
341
416
  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.');
417
+ const tables = result.omittedTables ?? [];
418
+ if (tables.length > 0) {
419
+ 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:`);
420
+ for (const table of tables)
421
+ lines.push(`- ${escapeMarkdown(table.label)}: ${table.url}`);
422
+ }
342
423
  lines.push('\n---\n');
343
424
  lines.push(result.content);
344
425
  if (result.hasMore) {
345
426
  lines.push(`\n---\n_Call biorxiv_get_fulltext again with doi=${result.doi}, version=${result.version}, offset=${end} to read the next chunk._`);
346
427
  }
428
+ else if (tables.length > 0) {
429
+ lines.push('\n---\n_End of extracted text. The table cells listed above are not included._');
430
+ }
347
431
  else {
348
432
  lines.push('\n---\n_End of extracted text._');
349
433
  }
@@ -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;Q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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"}
@@ -3,9 +3,15 @@
3
3
  * all revision history, and published-journal DOI for one or more preprints
4
4
  * by DOI. Each input is reduced to its bare DOI first (normalizeDoi strips
5
5
  * resolver and article URLs, `doi:`, and version / `.full` suffixes), and each
6
- * DOI call returns all revisions in a single response. When
7
- * server="both", each DOI fans out across bioRxiv and medRxiv in parallel;
8
- * per-DOI failures are reported in failed[] rather than aborting the batch.
6
+ * DOI call returns all revisions in a single response. Every entry is
7
+ * classified before any request: an unparseable one goes to failed[], a repeat
8
+ * of a DOI already seen is dropped, and only the first 10 distinct DOIs are
9
+ * looked up — the rest are returned in unprocessed[], never fetched, so a call
10
+ * stays one parallel round under the call's single deadline. When
11
+ * server="both", each DOI fans out across bioRxiv and medRxiv in parallel and
12
+ * settles the moment the server holding it answers, cutting the other lookup
13
+ * short; per-DOI failures are reported in failed[] rather than aborting the batch.
14
+ * All three lists follow input order, whichever lookup answers first.
9
15
  * A DOI is only reported as not found when every attempted server answered
10
16
  * with an empty collection — if a server never answered, the DOI is reported
11
17
  * as upstream-unavailable and retryable, on both the per-DOI and batch surfaces.
@@ -56,27 +62,33 @@ export declare const biorxivGetPreprintTool: import("@cyanheads/mcp-ts-core").To
56
62
  retryable: z.ZodBoolean;
57
63
  retryAfter: z.ZodOptional<z.ZodNumber>;
58
64
  }, z.core.$strip>>;
65
+ unprocessed: z.ZodArray<z.ZodString>;
59
66
  }, z.core.$strip>, readonly [{
60
67
  readonly reason: "doi_not_found";
61
68
  readonly code: JsonRpcErrorCode.NotFound;
62
- readonly when: "ALL requested DOIs resolve to empty collections on all requested servers, with every server answering.";
69
+ readonly when: "Every DOI looked up resolves to empty collections on all requested servers, with every server answering, and no DOI was left in unprocessed.";
63
70
  readonly recovery: "Verify the DOI exists on bioRxiv or medRxiv. Supported prefixes: 10.1101/ and 10.64898/.";
64
71
  }, {
65
72
  readonly reason: "invalid_doi_format";
66
73
  readonly code: JsonRpcErrorCode.ValidationError;
67
- readonly when: "Every input DOI fails to match the 10.NNNN/ pattern, even after URL, doi:, and suffix stripping.";
74
+ readonly when: "Every input entry fails to match the 10.NNNN/ pattern, even after URL, doi:, and suffix stripping.";
68
75
  readonly recovery: "Correct the DOI format — bioRxiv DOIs start with 10.1101/ or 10.64898/ followed by the manuscript ID.";
69
76
  }, {
70
77
  readonly reason: "upstream_unavailable";
71
78
  readonly code: JsonRpcErrorCode.ServiceUnavailable;
72
79
  readonly retryable: true;
73
- readonly when: "No DOI resolved and at least one lookup failed against api.biorxiv.org, so absence could not be established for any requested DOI.";
80
+ readonly when: "No DOI resolved, none was left in unprocessed, and at least one lookup failed against api.biorxiv.org, so absence could not be established for any requested DOI.";
74
81
  readonly recovery: "Retry the request after a short delay — the DOIs may well exist; api.biorxiv.org did not answer.";
75
82
  }, {
76
83
  readonly reason: "rate_limited";
77
84
  readonly code: JsonRpcErrorCode.RateLimited;
78
85
  readonly retryable: true;
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.";
81
- }], undefined>;
86
+ readonly when: "No DOI resolved, none was left in unprocessed, and at least one lookup was rejected with HTTP 429 by api.biorxiv.org.";
87
+ 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.";
88
+ }], {
89
+ readonly truncated: z.ZodOptional<z.ZodBoolean>;
90
+ readonly shown: z.ZodOptional<z.ZodNumber>;
91
+ readonly cap: z.ZodOptional<z.ZodNumber>;
92
+ readonly notice: z.ZodOptional<z.ZodString>;
93
+ }>;
82
94
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwQjC,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;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA2FjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkVjC,CAAC"}