@cyanheads/biorxiv-mcp-server 0.4.0 → 0.4.2

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 (58) hide show
  1. package/AGENTS.md +12 -8
  2. package/CLAUDE.md +12 -8
  3. package/Dockerfile +3 -3
  4. package/README.md +31 -30
  5. package/changelog/0.4.x/0.4.1.md +27 -0
  6. package/changelog/0.4.x/0.4.2.md +34 -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 +8 -6
  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 +94 -28
  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 +24 -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 +137 -52
  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 +22 -9
  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 +78 -33
  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 +25 -5
  22. package/dist/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.d.ts.map +1 -1
  23. package/dist/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.js +130 -22
  24. package/dist/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.js.map +1 -1
  25. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts +5 -2
  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 +51 -34
  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 +24 -7
  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 -38
  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 +47 -19
  34. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  35. package/dist/services/biorxiv/biorxiv-service.d.ts +51 -31
  36. package/dist/services/biorxiv/biorxiv-service.d.ts.map +1 -1
  37. package/dist/services/biorxiv/biorxiv-service.js +132 -74
  38. package/dist/services/biorxiv/biorxiv-service.js.map +1 -1
  39. package/dist/services/biorxiv/types.d.ts +33 -6
  40. package/dist/services/biorxiv/types.d.ts.map +1 -1
  41. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts +9 -6
  42. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts.map +1 -1
  43. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js +178 -23
  44. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js.map +1 -1
  45. package/dist/services/europe-pmc/europe-pmc-service.d.ts +26 -6
  46. package/dist/services/europe-pmc/europe-pmc-service.d.ts.map +1 -1
  47. package/dist/services/europe-pmc/europe-pmc-service.js +124 -32
  48. package/dist/services/europe-pmc/europe-pmc-service.js.map +1 -1
  49. package/dist/services/shared.d.ts +105 -5
  50. package/dist/services/shared.d.ts.map +1 -1
  51. package/dist/services/shared.js +191 -9
  52. package/dist/services/shared.js.map +1 -1
  53. package/dist/services/upstream-text-tables.d.ts +11 -1
  54. package/dist/services/upstream-text-tables.d.ts.map +1 -1
  55. package/dist/services/upstream-text-tables.js +42 -1
  56. package/dist/services/upstream-text-tables.js.map +1 -1
  57. package/package.json +6 -6
  58. package/server.json +3 -3
@@ -8,8 +8,10 @@
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;
13
15
  * the tables the page carries no cells for (`omittedTables`) ride on every chunk.
14
16
  * Full text is best-effort HTML→Markdown, not structured JATS; preprints that are
15
17
  * PDF-only or whose page is blocked return a typed `fulltext_unavailable` error
@@ -29,13 +31,37 @@
29
31
  * @module mcp-server/tools/definitions/biorxiv-get-fulltext.tool
30
32
  */
31
33
  import { tool, z } from '@cyanheads/mcp-ts-core';
32
- 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';
33
36
  import { getBiorxivApiService } from '../../../services/biorxiv/biorxiv-service.js';
34
37
  import { getBiorxivFullTextService } from '../../../services/biorxiv-fulltext/biorxiv-fulltext-service.js';
35
- import { describeWait, escapeMarkdown, findRateLimit, normalizeDoi } from '../../../services/shared.js';
38
+ import { CALL_BUDGET_MS, describeWait, escapeMarkdown, findRateLimit, firstHit, normalizeDoi, notFoundHint, 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
+ }
36
62
  export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
37
63
  title: 'Get Preprint Full Text',
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.',
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, metadata, and current abstract. For a preprint that has been published in a journal, the journal\'s version may have richer full text elsewhere.',
39
65
  annotations: { readOnlyHint: true, openWorldHint: true },
40
66
  input: z.object({
41
67
  doi: z
@@ -148,14 +174,14 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
148
174
  reason: 'doi_not_found',
149
175
  code: JsonRpcErrorCode.NotFound,
150
176
  when: 'The DOI resolves to an empty collection on every attempted server.',
151
- recovery: 'Retry with server="both" if you scoped to one server, or find the correct DOI with biorxiv_search_preprints.',
177
+ recovery: 'Check the DOI, or find the correct one with biorxiv_search_preprints.',
152
178
  },
153
179
  {
154
180
  reason: 'upstream_unavailable',
155
181
  code: JsonRpcErrorCode.ServiceUnavailable,
156
182
  retryable: true,
157
- when: 'No attempted server resolved the DOI and at least one lookup failed against api.biorxiv.org.',
158
- 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.',
159
185
  },
160
186
  {
161
187
  reason: 'rate_limited',
@@ -168,7 +194,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
168
194
  reason: 'fulltext_unavailable',
169
195
  code: JsonRpcErrorCode.NotFound,
170
196
  when: 'The preprint exists but its full-text HTML page is blocked, missing, or yields no extractable text (PDF-only).',
171
- recovery: 'Use biorxiv_get_preprint for the title, abstract, and metadata — a readable full-text page is not available for this preprint.',
197
+ recovery: 'Use biorxiv_get_preprint for the title, metadata, and current abstract (the latest revision’s; it holds no earlier revision’s own abstract) — a readable full-text page is not available for this preprint.',
172
198
  },
173
199
  {
174
200
  reason: 'offset_out_of_range',
@@ -205,25 +231,21 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
205
231
  const requestedVersion = inputVersion ?? parsed.version;
206
232
  // Resolve the preprint and its versions via the JSON details API — this
207
233
  // confirms the requested version exists (or supplies the latest), and gives
208
- // clean not-found handling. Only this step fans out; the full-text fetch
209
- // 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.
210
236
  const service = getBiorxivApiService();
237
+ // One budget for resolution and the article page, which run one after another.
238
+ const deadline = startCallDeadline();
211
239
  const servers = input.server === 'both' ? ['biorxiv', 'medrxiv'] : [input.server];
212
- const settled = await Promise.allSettled(servers.map((server) => service.getDetails(doi, server, ctx)));
213
- let resolved;
214
- for (const [i, settledResult] of settled.entries()) {
215
- if (settledResult.status === 'fulfilled' && settledResult.value.length > 0) {
216
- resolved = {
217
- server: servers[i],
218
- versions: settledResult.value.map((r) => r.version ?? '1'),
219
- };
220
- break;
221
- }
222
- }
223
- 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) {
224
247
  // "Not found" is a claim about what the servers reported, so a server that
225
248
  // never answered leaves absence unestablished — and retryable.
226
- const rejections = settled.flatMap((r, i) => r.status === 'rejected' ? [{ server: servers[i], error: r.reason }] : []);
227
249
  if (rejections.length > 0) {
228
250
  const detail = rejections
229
251
  .map((f) => `${f.server}: ${f.error instanceof Error ? f.error.message : String(f.error)}`)
@@ -251,9 +273,13 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
251
273
  throw ctx.fail('doi_not_found', `No preprint found for ${doi} on ${servers.join(' or ')}.`, {
252
274
  doi,
253
275
  servers,
276
+ recovery: {
277
+ hint: notFoundHint(servers, 'Check the DOI, or find the correct one with biorxiv_search_preprints.'),
278
+ },
254
279
  });
255
280
  }
256
- const { server, versions } = resolved;
281
+ const server = servers[hit.leg];
282
+ const versions = hit.value.map((r) => r.version ?? '1');
257
283
  const latestVersion = versions.at(-1) ?? '1';
258
284
  if (requestedVersion !== undefined && !versions.includes(requestedVersion)) {
259
285
  throw ctx.fail('version_not_found', `${doi} has no version ${requestedVersion} on ${server} — available versions: ${versions.join(', ')}.`, {
@@ -264,7 +290,47 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
264
290
  });
265
291
  }
266
292
  const version = requestedVersion ?? latestVersion;
267
- const result = await getBiorxivFullTextService().fetchFullText(server, doi, version, ctx);
293
+ // The page is requested whatever is left of the budget — none at all still
294
+ // serves a cached extraction — so resolution's share is measured here.
295
+ const pageBudgetMs = remainingBudgetMs(deadline);
296
+ const lookupMs = CALL_BUDGET_MS - pageBudgetMs;
297
+ const result = await getBiorxivFullTextService()
298
+ .fetchFullText(server, doi, version, deadline, ctx)
299
+ .catch((err) => {
300
+ // A fetch the caller's cancellation stopped is that cancellation.
301
+ ctx.signal.throwIfAborted();
302
+ // Only a page that never answered — a timeout, a 5xx, a network error, the
303
+ // budget running out — is the retryable outage resolution reports, on the
304
+ // other origin. An origin 4xx or an extractor rejection keeps its own code.
305
+ if (!(err instanceof McpError && defaultIsTransient(err)))
306
+ throw err;
307
+ // The slow lookup left the page too little of the budget to answer in:
308
+ // that, not the page, is what failed.
309
+ if (lookupMs > pageBudgetMs && endedOnCallBudget(err)) {
310
+ const unanswered = servers.filter((_, i) => outcomes[i]?.status !== 'fulfilled');
311
+ const resolved = `before ${server} resolved the DOI${unanswered.length > 0 ? ` (${unanswered.join(' and ')} did not answer)` : ''}`;
312
+ throw ctx.fail('upstream_unavailable', err.data.retryAttempts === 0
313
+ ? `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.`
314
+ : `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.`, {
315
+ doi,
316
+ server,
317
+ version,
318
+ recovery: {
319
+ 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.`,
320
+ },
321
+ }, { cause: err });
322
+ }
323
+ throw ctx.fail('upstream_unavailable', `The ${server} article page for ${doi} v${version} did not answer — ${err instanceof Error ? err.message : String(err)}`, {
324
+ doi,
325
+ server,
326
+ version,
327
+ recovery: {
328
+ 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, metadata, and current abstract meanwhile.`,
329
+ },
330
+ }, { cause: err });
331
+ });
332
+ // A page served from the cache settles even after the caller has gone.
333
+ ctx.signal.throwIfAborted();
268
334
  if (result.kind === 'unavailable') {
269
335
  if (result.reason === 'rate_limited') {
270
336
  // Dynamic recovery — the origin's own wait is more actionable than the
@@ -277,7 +343,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
277
343
  // while that origin is limiting too sends them back into the limit, and a
278
344
  // retry re-runs resolution, so the wait must clear whichever origin asked
279
345
  // for the longer one.
280
- const metadataLimit = findRateLimit(settled.flatMap((r) => (r.status === 'rejected' ? [r.reason] : [])));
346
+ const metadataLimit = findRateLimit(rejections.map((f) => f.error));
281
347
  const waits = [result.retryAfter, metadataLimit?.retryAfter].filter((n) => n !== undefined);
282
348
  const retryAfter = waits.length > 0 ? Math.max(...waits) : undefined;
283
349
  const wait = describeWait(retryAfter);
@@ -290,7 +356,7 @@ export const biorxivGetFulltextTool = tool('biorxiv_get_fulltext', {
290
356
  recovery: {
291
357
  hint: metadataLimit
292
358
  ? `Wait ${wait} before calling biorxiv_get_fulltext again — the ${server} article-page origin and api.biorxiv.org are both rate-limiting this host, so biorxiv_get_preprint will not answer sooner either.`
293
- : `Wait ${wait} before calling biorxiv_get_fulltext again — the ${server} article-page origin is rate-limiting this host. api.biorxiv.org answered this call, so biorxiv_get_preprint still serves the title, abstract, and metadata meanwhile.`,
359
+ : `Wait ${wait} before calling biorxiv_get_fulltext again — the ${server} article-page origin is rate-limiting this host. api.biorxiv.org answered this call, so biorxiv_get_preprint still serves the title, metadata, and current abstract meanwhile.`,
294
360
  },
295
361
  });
296
362
  }
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,W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B,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"}
@@ -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.
@@ -41,7 +47,10 @@ export declare const biorxivGetPreprintTool: import("@cyanheads/mcp-ts-core").To
41
47
  abstract: z.ZodOptional<z.ZodString>;
42
48
  awards: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
49
  publishedJournalDoi: z.ZodOptional<z.ZodString>;
44
- server: z.ZodOptional<z.ZodString>;
50
+ server: z.ZodEnum<{
51
+ biorxiv: "biorxiv";
52
+ medrxiv: "medrxiv";
53
+ }>;
45
54
  }, z.core.$strip>>;
46
55
  }, z.core.$strip>>;
47
56
  failed: z.ZodArray<z.ZodObject<{
@@ -56,27 +65,33 @@ export declare const biorxivGetPreprintTool: import("@cyanheads/mcp-ts-core").To
56
65
  retryable: z.ZodBoolean;
57
66
  retryAfter: z.ZodOptional<z.ZodNumber>;
58
67
  }, z.core.$strip>>;
68
+ unprocessed: z.ZodArray<z.ZodString>;
59
69
  }, z.core.$strip>, readonly [{
60
70
  readonly reason: "doi_not_found";
61
71
  readonly code: JsonRpcErrorCode.NotFound;
62
- readonly when: "ALL requested DOIs resolve to empty collections on all requested servers, with every server answering.";
72
+ 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
73
  readonly recovery: "Verify the DOI exists on bioRxiv or medRxiv. Supported prefixes: 10.1101/ and 10.64898/.";
64
74
  }, {
65
75
  readonly reason: "invalid_doi_format";
66
76
  readonly code: JsonRpcErrorCode.ValidationError;
67
- readonly when: "Every input DOI fails to match the 10.NNNN/ pattern, even after URL, doi:, and suffix stripping.";
77
+ readonly when: "Every input entry fails to match the 10.NNNN/ pattern, even after URL, doi:, and suffix stripping.";
68
78
  readonly recovery: "Correct the DOI format — bioRxiv DOIs start with 10.1101/ or 10.64898/ followed by the manuscript ID.";
69
79
  }, {
70
80
  readonly reason: "upstream_unavailable";
71
81
  readonly code: JsonRpcErrorCode.ServiceUnavailable;
72
82
  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.";
83
+ 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
84
  readonly recovery: "Retry the request after a short delay — the DOIs may well exist; api.biorxiv.org did not answer.";
75
85
  }, {
76
86
  readonly reason: "rate_limited";
77
87
  readonly code: JsonRpcErrorCode.RateLimited;
78
88
  readonly retryable: true;
79
- readonly when: "No DOI resolved and at least one lookup was rejected with HTTP 429 by api.biorxiv.org.";
89
+ readonly when: "No DOI resolved, none was left in unprocessed, and at least one lookup was rejected with HTTP 429 by api.biorxiv.org.";
80
90
  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
- }], undefined>;
91
+ }], {
92
+ readonly truncated: z.ZodOptional<z.ZodBoolean>;
93
+ readonly shown: z.ZodOptional<z.ZodNumber>;
94
+ readonly cap: z.ZodOptional<z.ZodNumber>;
95
+ readonly notice: z.ZodOptional<z.ZodString>;
96
+ }>;
82
97
  //# 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;AAkGjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkVjC,CAAC"}