@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
@@ -1,11 +1,24 @@
1
1
  /**
2
- * @fileoverview biorxiv_get_published_version tool — resolves a preprint DOI
3
- * to its full journal publication record using the /pubs endpoint. Use when
4
- * you need richer crosswalk metadata than biorxiv_get_preprint provides
5
- * (journal name, published date, full abstract, corresponding author details).
2
+ * @fileoverview biorxiv_get_published_version tool — resolves a DOI to its
3
+ * full crosswalk record using the /pubs endpoint, which is keyed by either
4
+ * side: a preprint DOI yields the journal version it was published as, and a
5
+ * journal article's DOI yields the preprint it was posted as. Use when you
6
+ * need richer crosswalk metadata than biorxiv_get_preprint provides (journal
7
+ * name, published date, full abstract, corresponding author details), or the
8
+ * preprint behind a journal article.
6
9
  * bioRxiv and medRxiv share their DOI prefixes, so the DOI alone does not
7
10
  * identify the server: the default server="both" resolves against both in
8
- * parallel and the output names the server that answered.
11
+ * parallel and the output names the server that answered. A preprint and its
12
+ * crosswalk record live on one server, so each two-server step ends the moment
13
+ * that server answers, and the other server's lookup is cut short.
14
+ *
15
+ * A DOI outside the preprint prefixes (`10.1101/`, `10.64898/`) is a journal
16
+ * DOI: `/pubs` keyed by it is the whole lookup, and no record on any server is
17
+ * not-found — `/details` never holds a journal DOI, so it is never asked.
18
+ * Cold Spring Harbor Laboratory Press journal DOIs (`10.1101/gr.…`) carry the
19
+ * preprint prefix and take the preprint path, where no endpoint recognizes
20
+ * them; that path's not-found hint names the case rather than calling the DOI
21
+ * wrong.
9
22
  *
10
23
  * `/pubs` keyed by preprint DOI never parses a `10.64898/` DOI, so when it
11
24
  * answers empty everywhere the preprint's `/details` record supplies the journal
@@ -23,25 +36,27 @@
23
36
  import { tool, z } from '@cyanheads/mcp-ts-core';
24
37
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
25
38
  import { getBiorxivApiService } from '../../../services/biorxiv/biorxiv-service.js';
26
- import { describeWait, escapeMarkdown, findRateLimit, normalizeDoi } from '../../../services/shared.js';
39
+ import { BIORXIV_DOI_PREFIXES, describeWait, escapeMarkdown, findRateLimit, firstHit, normalizeDoi, notFoundHint, startCallDeadline, } from '../../../services/shared.js';
27
40
  function errorMessage(reason) {
28
41
  return reason instanceof Error ? reason.message : String(reason);
29
42
  }
30
43
  export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_version', {
31
44
  title: 'Get Published Journal Version',
32
- description: 'Resolve a preprint DOI to its full journal publication record — journal DOI, journal name, published date, and corresponding author details. Use when the preprint\'s `publishedJournalDoi` field from biorxiv_get_preprint is present and you need the full crosswalk metadata. bioRxiv and medRxiv share their DOI prefixes, so server="both" (the default) checks both in parallel and the response reports which server answered. Works for 10.1101/ and 10.64898/ DOIs alike; when the crosswalk holds no record for a published preprint, the journal DOI still comes back from the preprint\'s own record, without journal name or date, and a notice says so. Returns a not-found error only when no server holds the preprint or it lists no journal version at all.',
45
+ description: 'Resolve a DOI to its preprint-to-journal crosswalk record — preprint DOI, journal DOI, journal name, published date, and corresponding author details — from either side: a preprint DOI (10.1101/ or 10.64898/) finds the journal article it was published as, and any other DOI is read as a journal article\'s and finds the bioRxiv or medRxiv preprint it was posted as. Use when biorxiv_get_preprint shows a `publishedJournalDoi` and you need the journal details, or when you hold a journal article and want its preprint. bioRxiv and medRxiv share their DOI prefixes, so server="both" (the default) checks both in parallel and the response reports which server answered. When the crosswalk holds no record for a published preprint, the journal DOI still comes back from the preprint\'s own record, without journal name or date, and a notice says so. Returns a not-found error when no server holds the preprint, it lists no journal version, or no preprint is recorded for the journal DOI.',
33
46
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
34
47
  input: z.object({
35
48
  doi: z
36
49
  .string()
37
- .describe('Preprint DOI to resolve (e.g. 10.1101/2024.01.15.575123 or 10.64898/2026.05.07.723463). A doi.org or biorxiv.org/medrxiv.org article URL, a doi: prefix, or a vN / .full suffix is accepted and stripped to the bare DOI.'),
50
+ .describe('DOI to resolve: a preprint DOI (e.g. 10.1101/2024.01.15.575123 or 10.64898/2026.05.07.723463) or a journal article DOI (e.g. 10.1016/j.cell.2020.01.001). A doi.org or biorxiv.org/medrxiv.org article URL or a doi: prefix is accepted and stripped to the bare DOI, as is a vN, .full, or .pdf suffix; a journal DOI keeps its own components (10.7554/eLife.55185.sa1 is not 10.7554/eLife.55185). Cold Spring Harbor Laboratory Press journal DOIs (10.1101/gr.…, 10.1101/gad.…, 10.1101/lm.…) share the preprint prefix and cannot be resolved by DOI.'),
38
51
  server: z
39
52
  .enum(['biorxiv', 'medrxiv', 'both'])
40
53
  .default('both')
41
54
  .describe('Server the preprint was posted on. "both" (default) checks bioRxiv and medRxiv in parallel — use it when the DOI alone does not tell you which server holds the preprint.'),
42
55
  }),
43
56
  output: z.object({
44
- preprintDoi: z.string().describe('The preprint DOI that was resolved, in bare form.'),
57
+ preprintDoi: z
58
+ .string()
59
+ .describe('The preprint DOI, in bare form: the input itself when it was a preprint DOI, or the preprint the crosswalk links to the input when it was a journal DOI.'),
45
60
  server: z
46
61
  .enum(['biorxiv', 'medrxiv'])
47
62
  .describe('The server that returned this published record — never "both".'),
@@ -57,7 +72,10 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
57
72
  preprintTitle: z.string().optional().describe('Title of the preprint.'),
58
73
  preprintAuthors: z.string().optional().describe('Preprint author list.'),
59
74
  preprintCategory: z.string().optional().describe('Subject category.'),
60
- preprintDate: z.string().optional().describe('Date the preprint was first posted.'),
75
+ preprintDate: z
76
+ .string()
77
+ .optional()
78
+ .describe("Preprint posting date (YYYY-MM-DD) from the crosswalk record, or from the preprint's first revision when the crosswalk has none — the first posting for most preprints. medRxiv records some 10.64898/ preprints twice with different posting dates; this is the first record listed."),
61
79
  preprintAbstract: z.string().optional().describe('Preprint abstract.'),
62
80
  preprintAuthorCorresponding: z.string().optional().describe('Corresponding author name.'),
63
81
  preprintAuthorCorrespondingInstitution: z
@@ -77,14 +95,14 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
77
95
  {
78
96
  reason: 'doi_not_found',
79
97
  code: JsonRpcErrorCode.NotFound,
80
- when: 'No attempted server holds the preprint, or neither the crosswalk nor its preprint record lists a journal version.',
81
- recovery: 'Retry with server="both" if you scoped to one server; otherwise no journal version is recorded for this preprint yet — confirm the DOI with biorxiv_get_preprint or check again later.',
98
+ when: 'No attempted server holds the preprint, neither the crosswalk nor its preprint record lists a journal version, or the crosswalk links no preprint to the journal DOI given.',
99
+ recovery: 'Confirm the DOI with biorxiv_get_preprint, or check again later if no journal version is recorded for this preprint yet; for a journal DOI, search for its preprint by title with biorxiv_search_preprints.',
82
100
  },
83
101
  {
84
102
  reason: 'invalid_doi_format',
85
103
  code: JsonRpcErrorCode.ValidationError,
86
- when: 'The input DOI does not match the 10.NNNN/ pattern, even after URL, doi:, and suffix stripping.',
87
- recovery: 'Correct the DOI format — bioRxiv DOIs start with 10.1101/ or 10.64898/ followed by the manuscript ID.',
104
+ when: 'The input does not match the 10.NNNN/ DOI pattern, even after URL, doi:, and suffix stripping.',
105
+ recovery: 'Correct the DOI format — a preprint DOI is 10.1101/ or 10.64898/ followed by the manuscript ID, and a journal DOI is 10., the publisher registrant code, a slash, and the article ID (10.1016/j.cell.2020.01.001).',
88
106
  },
89
107
  {
90
108
  reason: 'upstream_unavailable',
@@ -111,6 +129,8 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
111
129
  throw ctx.fail('invalid_doi_format', `Invalid DOI format: ${input.doi}`);
112
130
  }
113
131
  const service = getBiorxivApiService();
132
+ // One budget for all three lookups below, which run one after another.
133
+ const deadline = startCallDeadline();
114
134
  const servers = input.server === 'both' ? ['biorxiv', 'medrxiv'] : [input.server];
115
135
  /**
116
136
  * "Not published" and "not found" are claims about what the servers
@@ -119,8 +139,8 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
119
139
  * say "retry", but only one says when, and retrying sooner would land
120
140
  * inside the same limit.
121
141
  */
122
- const lookupFailure = (lookup, settled) => {
123
- const rejections = settled.flatMap((r, i) => r.status === 'rejected' ? [{ server: servers[i], error: r.reason }] : []);
142
+ const lookupFailure = (lookup, outcomes) => {
143
+ const rejections = outcomes.flatMap((r, i) => r?.status === 'rejected' ? [{ server: servers[i], error: r.reason }] : []);
124
144
  if (rejections.length === 0)
125
145
  return;
126
146
  const detail = rejections.map((f) => `${f.server}: ${errorMessage(f.error)}`).join('; ');
@@ -139,47 +159,72 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
139
159
  }
140
160
  return ctx.fail('upstream_unavailable', `${lookup} for ${doi} failed — ${detail}`, { doi, servers: failedServers }, { cause: rejections[0]?.error });
141
161
  };
142
- // 1. The crosswalk keyed by preprint DOI — resolves 10.1101/ DOIs directly.
143
- const crosswalk = await Promise.allSettled(servers.map((server) => service.getPublishedVersion(doi, server, ctx)));
144
- for (const [i, result] of crosswalk.entries()) {
145
- if (result.status === 'fulfilled' && result.value) {
146
- return { ...result.value, server: servers[i] };
147
- }
162
+ // 1. The crosswalk keyed by the DOI given — resolves 10.1101/ preprint DOIs
163
+ // and journal DOIs directly. The record lives on the server holding the
164
+ // preprint, so the step ends the moment that server answers with it.
165
+ const crosswalk = await firstHit(servers.map((server) => (signal) => service.getPublishedVersion(doi, server, deadline, ctx, signal)), (record) => record !== undefined, ctx.signal);
166
+ // A cancelled call is not answered from the leg that finished first, nor
167
+ // reported as a failed lookup — after this step and each one below.
168
+ ctx.signal.throwIfAborted();
169
+ const record = crosswalk.hit;
170
+ if (record?.value) {
171
+ return { ...record.value, server: servers[record.leg] };
148
172
  }
149
- const crosswalkFailure = lookupFailure('Crosswalk lookup', crosswalk);
173
+ const crosswalkFailure = lookupFailure('Crosswalk lookup', crosswalk.outcomes);
150
174
  if (crosswalkFailure)
151
175
  throw crosswalkFailure;
176
+ // A journal DOI ends here: /pubs keyed by it was the whole lookup, and
177
+ // /details holds preprints alone.
178
+ if (!BIORXIV_DOI_PREFIXES.some((prefix) => doi.startsWith(prefix))) {
179
+ throw ctx.fail('doi_not_found', `No bioRxiv or medRxiv preprint is recorded for journal DOI ${doi} on ${servers.join(' or ')}.`, {
180
+ doi,
181
+ servers,
182
+ recovery: {
183
+ hint: notFoundHint(servers, 'The crosswalk records no bioRxiv or medRxiv preprint for this journal article — it was never posted there, its preprint was never linked to it, or the DOI names part of an article (a figure or review such as 10.7554/eLife.55185.sa1) rather than the article itself. Search for the preprint by title with biorxiv_search_preprints.'),
184
+ },
185
+ });
186
+ }
152
187
  // 2. The crosswalk answered empty everywhere, which is also its answer for
153
188
  // every 10.64898/ DOI — the path form never parses one. The preprint's own
154
- // /details record names its journal DOI whichever prefix it carries.
155
- const details = await Promise.allSettled(servers.map((server) => service.getDetails(doi, server, ctx)));
156
- const heldAt = details.findIndex((r) => r.status === 'fulfilled' && r.value.length > 0);
157
- const held = details[heldAt];
158
- if (held?.status !== 'fulfilled') {
159
- const detailsFailure = lookupFailure('Preprint lookup', details);
189
+ // /details record names its journal DOI whichever prefix it carries; it too
190
+ // lives on one server, so the step ends the moment that server answers.
191
+ const details = await firstHit(servers.map((server) => (signal) => service.getDetails(doi, server, deadline, ctx, signal)), (revisions) => revisions.length > 0, ctx.signal);
192
+ ctx.signal.throwIfAborted();
193
+ const held = details.hit;
194
+ if (!held) {
195
+ const detailsFailure = lookupFailure('Preprint lookup', details.outcomes);
160
196
  if (detailsFailure)
161
197
  throw detailsFailure;
162
198
  // No preprint at all: the contract hint's "no journal version yet — check
163
199
  // again later" would send the caller to wait on a DOI that does not exist.
200
+ // A Cold Spring Harbor Laboratory Press journal DOI lands here too, so the
201
+ // hint stops short of calling the DOI wrong.
164
202
  throw ctx.fail('doi_not_found', `No preprint found for ${doi} on ${servers.join(' or ')}.`, {
165
203
  doi,
166
204
  servers,
167
205
  recovery: {
168
- hint: 'Retry with server="both" if you scoped to one server; otherwise the DOI is wrong — find the right one with biorxiv_search_preprints.',
206
+ hint: notFoundHint(servers, 'No preprint has this DOI — check it, or find the preprint with biorxiv_search_preprints. A Cold Spring Harbor Laboratory Press journal DOI (10.1101/gr.…, 10.1101/gad.…, 10.1101/lm.…) shares the preprint prefix but cannot be looked up by DOI: search for its preprint by title instead.'),
169
207
  },
170
208
  });
171
209
  }
172
- const server = servers[heldAt];
210
+ const server = servers[held.leg];
173
211
  const revisions = held.value;
174
212
  const publishedDoi = revisions.findLast((r) => r.publishedJournalDoi)?.publishedJournalDoi;
175
213
  if (!publishedDoi) {
176
- throw ctx.fail('doi_not_found', `${doi} has no published journal version: neither the crosswalk nor its ${server} preprint record lists one.`, { doi, servers });
214
+ throw ctx.fail('doi_not_found', `${doi} has no published journal version: neither the crosswalk nor its ${server} preprint record lists one.`, {
215
+ doi,
216
+ servers,
217
+ recovery: {
218
+ hint: notFoundHint(servers, 'No journal version is recorded for this preprint yet — confirm the DOI with biorxiv_get_preprint, or check again later.'),
219
+ },
220
+ });
177
221
  }
178
222
  // 3. The crosswalk keyed the other way, by that journal DOI — the full
179
223
  // record, journal name and date included, whenever the API can parse the key.
180
224
  const [byJournal] = await Promise.allSettled([
181
- service.getPublishedVersionByJournalDoi(publishedDoi, doi, server, ctx),
225
+ service.getPublishedVersionByJournalDoi(publishedDoi, doi, server, deadline, ctx),
182
226
  ]);
227
+ ctx.signal.throwIfAborted();
183
228
  if (byJournal?.status === 'fulfilled' && byJournal.value) {
184
229
  return { ...byJournal.value, server };
185
230
  }
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-get-published-version.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-published-version.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAiB,MAAM,+BAA+B,CAAC;AAChF,OA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AAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"biorxiv-get-published-version.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-published-version.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAiB,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,QAAQ,EAER,YAAY,EACZ,YAAY,EACZ,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,SAAS,YAAY,CAAC,MAAe;IACnC,OAAO,MAAM,YAAY,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,CAAC,+BAA+B,EAAE;IAClF,KAAK,EAAE,+BAA+B;IACtC,WAAW,EACT,y9BAAy9B;IAC39B,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IAE9E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,GAAG,EAAE,CAAC;aACH,MAAM,EAAE;aACR,QAAQ,CACP,6hBAA6hB,CAC9hB;QACH,MAAM,EAAE,CAAC;aACN,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;aACpC,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,2KAA2K,CAC5K;KACJ,CAAC;IAEF,MAAM,EAAE,CAA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AAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -9,16 +9,26 @@
9
9
  * Fans out to bioRxiv and medRxiv when server="both", with one input cursor
10
10
  * and per-server pagination state: the servers hold different row counts, so
11
11
  * one cursor can be inside one server's rows and past the end of the other's.
12
- * Pages hold 100 rows per server (API-fixed). Upstream answers an empty
13
- * interval and a cursor at or past the last row identically — "no articles
14
- * found", no total — so dates are validated before any call, a zero-row page
15
- * at cursor 0 reports total 0, and one at a later cursor is flagged exhausted
16
- * with no total rather than claiming the interval is empty.
12
+ * The API serves 100 rows a page and takes no size parameter, so each server
13
+ * returns the first `limit` rows (default 25) of its page, sliced in the
14
+ * service before rows are normalized, and nextCursor advances by the upstream
15
+ * rows served; a limit above 100 serves the whole page and says so. Upstream
16
+ * answers an empty interval and a cursor at or past the last row identically —
17
+ * "no articles found", no total — so dates are validated before any call, a
18
+ * zero-row page at cursor 0 reports total 0, and one at a later cursor is
19
+ * flagged exhausted with no total rather than claiming the interval is empty.
17
20
  *
18
21
  * A server that did not answer is named in failed[] and the notice; when no
19
22
  * server answered the call raises a retryable error instead of an empty page.
20
23
  * Abstracts are about three quarters of a page and are omitted unless
21
24
  * include_abstract is true; nothing else in a record changes.
25
+ *
26
+ * A publisher filter (a journal DOI prefix) reads bioRxiv's /publisher listing,
27
+ * which pages like /pubs. No medRxiv equivalent exists, so it narrows
28
+ * server="both" to bioRxiv with a notice and is rejected with server="medrxiv";
29
+ * a prefix the API cannot read raises invalid_publisher rather than reading as
30
+ * an empty page. Its rows carry no journal name, authors, or abstract, and the
31
+ * notice says so rather than leaving the gap unexplained.
22
32
  * @module mcp-server/tools/definitions/biorxiv-list-published-versions.tool
23
33
  */
24
34
  import { z } from '@cyanheads/mcp-ts-core';
@@ -31,7 +41,9 @@ export declare const biorxivListPublishedVersionsTool: import("@cyanheads/mcp-ts
31
41
  both: "both";
32
42
  medrxiv: "medrxiv";
33
43
  }>>;
44
+ publisher: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
34
45
  cursor: z.ZodDefault<z.ZodNumber>;
46
+ limit: z.ZodDefault<z.ZodNumber>;
35
47
  include_abstract: z.ZodDefault<z.ZodBoolean>;
36
48
  }, z.core.$strip>, z.ZodObject<{
37
49
  publications: z.ZodArray<z.ZodObject<{
@@ -77,6 +89,11 @@ export declare const biorxivListPublishedVersionsTool: import("@cyanheads/mcp-ts
77
89
  readonly code: JsonRpcErrorCode.ValidationError;
78
90
  readonly when: "start_date or end_date is not a real calendar date (2024-02-30, 2024-13-01), or end_date is before start_date.";
79
91
  readonly recovery: "Provide valid YYYY-MM-DD journal publication dates where start_date is on or before end_date.";
92
+ }, {
93
+ readonly reason: "invalid_publisher";
94
+ readonly code: JsonRpcErrorCode.ValidationError;
95
+ readonly when: "publisher is combined with server=\"medrxiv\", or is a prefix api.biorxiv.org does not recognize.";
96
+ readonly recovery: "Pass the publisher DOI prefix alone — the part of a journal DOI before the slash, such as 10.7554 — with server \"biorxiv\" or \"both\".";
80
97
  }, {
81
98
  readonly reason: "upstream_unavailable";
82
99
  readonly code: JsonRpcErrorCode.ServiceUnavailable;
@@ -91,5 +108,8 @@ export declare const biorxivListPublishedVersionsTool: import("@cyanheads/mcp-ts
91
108
  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.";
92
109
  }], {
93
110
  readonly notice: z.ZodOptional<z.ZodString>;
111
+ readonly truncated: z.ZodOptional<z.ZodBoolean>;
112
+ readonly shown: z.ZodOptional<z.ZodNumber>;
113
+ readonly cap: z.ZodOptional<z.ZodNumber>;
94
114
  }>;
95
115
  //# sourceMappingURL=biorxiv-list-published-versions.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-list-published-versions.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA0EjE,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkT3C,CAAC"}
1
+ {"version":3,"file":"biorxiv-list-published-versions.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-published-versions.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAoFjE,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4b3C,CAAC"}