@cyanheads/biorxiv-mcp-server 0.2.7 → 0.3.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 (58) hide show
  1. package/AGENTS.md +15 -11
  2. package/CLAUDE.md +15 -11
  3. package/README.md +22 -11
  4. package/changelog/0.2.x/0.2.7.md +3 -2
  5. package/changelog/0.2.x/0.2.8.md +26 -0
  6. package/changelog/0.3.x/0.3.0.md +22 -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 +18 -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 +91 -34
  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 +5 -3
  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 +36 -24
  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 +19 -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 +135 -47
  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-categories.tool.js +1 -1
  22. package/dist/mcp-server/tools/definitions/biorxiv-list-categories.tool.js.map +1 -1
  23. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts +21 -3
  24. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts.map +1 -1
  25. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js +171 -76
  26. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js.map +1 -1
  27. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.d.ts +21 -2
  28. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.d.ts.map +1 -1
  29. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js +99 -25
  30. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js.map +1 -1
  31. package/dist/mcp-server/tools/definitions/index.d.ts +41 -14
  32. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  33. package/dist/services/biorxiv/biorxiv-service.d.ts +35 -7
  34. package/dist/services/biorxiv/biorxiv-service.d.ts.map +1 -1
  35. package/dist/services/biorxiv/biorxiv-service.js +137 -61
  36. package/dist/services/biorxiv/biorxiv-service.js.map +1 -1
  37. package/dist/services/biorxiv/types.d.ts +27 -2
  38. package/dist/services/biorxiv/types.d.ts.map +1 -1
  39. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts +5 -2
  40. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts.map +1 -1
  41. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js +5 -6
  42. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js.map +1 -1
  43. package/dist/services/europe-pmc/europe-pmc-service.d.ts +23 -6
  44. package/dist/services/europe-pmc/europe-pmc-service.d.ts.map +1 -1
  45. package/dist/services/europe-pmc/europe-pmc-service.js +118 -19
  46. package/dist/services/europe-pmc/europe-pmc-service.js.map +1 -1
  47. package/dist/services/europe-pmc/types.d.ts +9 -3
  48. package/dist/services/europe-pmc/types.d.ts.map +1 -1
  49. package/dist/services/shared.d.ts +83 -10
  50. package/dist/services/shared.d.ts.map +1 -1
  51. package/dist/services/shared.js +287 -16
  52. package/dist/services/shared.js.map +1 -1
  53. package/dist/services/upstream-text-tables.d.ts +44 -0
  54. package/dist/services/upstream-text-tables.d.ts.map +1 -0
  55. package/dist/services/upstream-text-tables.js +296 -0
  56. package/dist/services/upstream-text-tables.js.map +1 -0
  57. package/package.json +4 -4
  58. package/server.json +3 -3
@@ -3,10 +3,18 @@
3
3
  * to its full journal publication record using the /pubs endpoint. Use when
4
4
  * you need richer crosswalk metadata than biorxiv_get_preprint provides
5
5
  * (journal name, published date, full abstract, corresponding author details).
6
- * bioRxiv and medRxiv share the 10.1101/ DOI prefix, so the DOI alone does not
6
+ * bioRxiv and medRxiv share their DOI prefixes, so the DOI alone does not
7
7
  * identify the server: the default server="both" resolves against both in
8
- * parallel and the output names the server that answered. Not-found is reported
9
- * only when every attempted server answered with an empty collection. A lookup
8
+ * parallel and the output names the server that answered.
9
+ *
10
+ * `/pubs` keyed by preprint DOI never parses a `10.64898/` DOI, so when it
11
+ * answers empty everywhere the preprint's `/details` record supplies the journal
12
+ * DOI, and `/pubs` keyed by that journal DOI supplies the full record. When that
13
+ * reverse lookup finds nothing too, or fails, the
14
+ * journal DOI is returned alone with a notice — the journal name and date come
15
+ * only from the crosswalk and are never filled in from elsewhere. Not-found is
16
+ * reported only when every attempted server answered and the preprint lists no
17
+ * journal version, or no server holds it at all. A lookup
10
18
  * the origin rate-limited (HTTP 429) raises a retryable `rate_limited` error
11
19
  * carrying the origin's Retry-After wait rather than the generic
12
20
  * upstream-unavailable one, which carries no wait at all.
@@ -15,29 +23,37 @@
15
23
  import { tool, z } from '@cyanheads/mcp-ts-core';
16
24
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
17
25
  import { getBiorxivApiService } from '../../../services/biorxiv/biorxiv-service.js';
18
- import { describeWait, findRateLimit } from '../../../services/shared.js';
19
- const DOI_REGEX = /^10\.\d{4,}\//;
26
+ import { describeWait, escapeMarkdown, findRateLimit, normalizeDoi } from '../../../services/shared.js';
27
+ function errorMessage(reason) {
28
+ return reason instanceof Error ? reason.message : String(reason);
29
+ }
20
30
  export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_version', {
21
31
  title: 'Get Published Journal Version',
22
- 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 the 10.1101/ DOI prefix, so server="both" (the default) checks both in parallel and the response reports which server answered. Returns a not-found error when no attempted server holds a published record — check biorxiv_get_preprint if you need to confirm the preprint is published at all.',
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.',
23
33
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
24
34
  input: z.object({
25
35
  doi: z
26
36
  .string()
27
- .describe('Preprint DOI to resolve (e.g. 10.1101/2024.01.15.575123 or 10.64898/2026.05.07.723463).'),
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.'),
28
38
  server: z
29
39
  .enum(['biorxiv', 'medrxiv', 'both'])
30
40
  .default('both')
31
41
  .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.'),
32
42
  }),
33
43
  output: z.object({
34
- preprintDoi: z.string().describe('The preprint DOI that was resolved.'),
44
+ preprintDoi: z.string().describe('The preprint DOI that was resolved, in bare form.'),
35
45
  server: z
36
46
  .enum(['biorxiv', 'medrxiv'])
37
47
  .describe('The server that returned this published record — never "both".'),
38
48
  publishedDoi: z.string().optional().describe('The journal publication DOI.'),
39
- publishedJournal: z.string().optional().describe('Name of the publishing journal.'),
40
- publishedDate: z.string().optional().describe('Journal publication date (YYYY-MM-DD).'),
49
+ publishedJournal: z
50
+ .string()
51
+ .optional()
52
+ .describe('Name of the publishing journal. Absent when the crosswalk holds no record for this preprint — see notice.'),
53
+ publishedDate: z
54
+ .string()
55
+ .optional()
56
+ .describe('Journal publication date (YYYY-MM-DD). Absent when the crosswalk holds no record for this preprint — see notice.'),
41
57
  preprintTitle: z.string().optional().describe('Title of the preprint.'),
42
58
  preprintAuthors: z.string().optional().describe('Preprint author list.'),
43
59
  preprintCategory: z.string().optional().describe('Subject category.'),
@@ -49,31 +65,39 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
49
65
  .optional()
50
66
  .describe('Corresponding author institution.'),
51
67
  }),
68
+ // Qualifies a record the crosswalk could not supply in full. Populated via
69
+ // ctx.enrich so it reaches both structuredContent and content[].
70
+ enrichment: {
71
+ notice: z
72
+ .string()
73
+ .optional()
74
+ .describe("Present when publishedDoi came from the preprint's own record because the crosswalk had none: says why publishedJournal and publishedDate are absent."),
75
+ },
52
76
  errors: [
53
77
  {
54
78
  reason: 'doi_not_found',
55
79
  code: JsonRpcErrorCode.NotFound,
56
- when: 'Crosswalk endpoint returns an empty collection on every attempted server.',
57
- recovery: 'Retry with server="both" if you scoped to one server, or check publishedJournalDoi in biorxiv_get_preprint — when it is absent the preprint has no journal version yet.',
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.',
58
82
  },
59
83
  {
60
84
  reason: 'invalid_doi_format',
61
85
  code: JsonRpcErrorCode.ValidationError,
62
- when: 'The input DOI does not match the 10.NNNN/ pattern.',
86
+ when: 'The input DOI does not match the 10.NNNN/ pattern, even after URL, doi:, and suffix stripping.',
63
87
  recovery: 'Correct the DOI format — bioRxiv DOIs start with 10.1101/ or 10.64898/ followed by the manuscript ID.',
64
88
  },
65
89
  {
66
90
  reason: 'upstream_unavailable',
67
91
  code: JsonRpcErrorCode.ServiceUnavailable,
68
92
  retryable: true,
69
- when: 'No attempted server returned a record and at least one lookup failed against api.biorxiv.org.',
93
+ when: 'No published record was established and at least one crosswalk or preprint lookup failed against api.biorxiv.org.',
70
94
  recovery: 'Retry the request after a short delay — a published version may well exist; api.biorxiv.org did not answer.',
71
95
  },
72
96
  {
73
97
  reason: 'rate_limited',
74
98
  code: JsonRpcErrorCode.RateLimited,
75
99
  retryable: true,
76
- when: 'No attempted server returned a record and at least one lookup was rejected with HTTP 429 by api.biorxiv.org.',
100
+ when: 'No published record was established and at least one crosswalk or preprint lookup was rejected with HTTP 429 by api.biorxiv.org.',
77
101
  recovery: 'Wait the retryAfter seconds before retrying — every preprint metadata tool queries the same origin, so none of them will answer sooner.',
78
102
  },
79
103
  ],
@@ -82,48 +106,112 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
82
106
  doi: input.doi,
83
107
  server: input.server,
84
108
  });
85
- if (!DOI_REGEX.test(input.doi)) {
109
+ const doi = normalizeDoi(input.doi)?.doi;
110
+ if (!doi) {
86
111
  throw ctx.fail('invalid_doi_format', `Invalid DOI format: ${input.doi}`, {
87
112
  ...ctx.recoveryFor('invalid_doi_format'),
88
113
  });
89
114
  }
90
115
  const service = getBiorxivApiService();
91
116
  const servers = input.server === 'both' ? ['biorxiv', 'medrxiv'] : [input.server];
92
- const settled = await Promise.allSettled(servers.map((server) => service.getPublishedVersion(input.doi, server, ctx)));
93
- for (const [i, settledResult] of settled.entries()) {
94
- if (settledResult.status === 'fulfilled' && settledResult.value) {
95
- return { ...settledResult.value, server: servers[i] };
96
- }
97
- }
98
- // Nothing resolved. "Not published" is a claim about what the crosswalk endpoint
99
- // reported, so a server that never answered leaves it unestablished and retryable.
100
- const rejections = settled.flatMap((r, i) => r.status === 'rejected' ? [{ server: servers[i], error: r.reason }] : []);
101
- if (rejections.length > 0) {
102
- const detail = rejections
103
- .map((f) => `${f.server}: ${f.error instanceof Error ? f.error.message : String(f.error)}`)
104
- .join('; ');
105
- // A rate limit outranks a generic upstream failure: both say "retry", but
106
- // only one says when, and retrying sooner would land inside the same limit.
117
+ /**
118
+ * "Not published" and "not found" are claims about what the servers
119
+ * reported, so a lookup that never answered leaves them unestablished and
120
+ * the call retryable. A rate limit outranks a generic upstream failure: both
121
+ * say "retry", but only one says when, and retrying sooner would land
122
+ * inside the same limit.
123
+ */
124
+ const lookupFailure = (lookup, settled) => {
125
+ const rejections = settled.flatMap((r, i) => r.status === 'rejected' ? [{ server: servers[i], error: r.reason }] : []);
126
+ if (rejections.length === 0)
127
+ return;
128
+ const detail = rejections.map((f) => `${f.server}: ${errorMessage(f.error)}`).join('; ');
129
+ const failedServers = rejections.map((f) => f.server);
107
130
  const rateLimit = findRateLimit(rejections.map((f) => f.error));
108
131
  if (rateLimit) {
109
132
  const wait = describeWait(rateLimit.retryAfter);
110
- throw ctx.fail('rate_limited', `Crosswalk lookup for ${input.doi} failed — ${detail}`, {
111
- doi: input.doi,
112
- servers: rejections.map((f) => f.server),
133
+ return ctx.fail('rate_limited', `${lookup} for ${doi} failed — ${detail}`, {
134
+ doi,
135
+ servers: failedServers,
113
136
  ...(rateLimit.retryAfter !== undefined && { retryAfter: rateLimit.retryAfter }),
114
137
  recovery: {
115
138
  hint: `Wait ${wait} before retrying — api.biorxiv.org is rate-limiting this host, and every preprint metadata tool queries the same origin.`,
116
139
  },
117
140
  }, { cause: rejections[0]?.error });
118
141
  }
119
- throw ctx.fail('upstream_unavailable', `Crosswalk lookup for ${input.doi} failed — ${detail}`, {
120
- doi: input.doi,
121
- servers: rejections.map((f) => f.server),
122
- ...ctx.recoveryFor('upstream_unavailable'),
123
- }, { cause: rejections[0]?.error });
142
+ return ctx.fail('upstream_unavailable', `${lookup} for ${doi} failed — ${detail}`, { doi, servers: failedServers, ...ctx.recoveryFor('upstream_unavailable') }, { cause: rejections[0]?.error });
143
+ };
144
+ // 1. The crosswalk keyed by preprint DOI — resolves 10.1101/ DOIs directly.
145
+ const crosswalk = await Promise.allSettled(servers.map((server) => service.getPublishedVersion(doi, server, ctx)));
146
+ for (const [i, result] of crosswalk.entries()) {
147
+ if (result.status === 'fulfilled' && result.value) {
148
+ return { ...result.value, server: servers[i] };
149
+ }
150
+ }
151
+ const crosswalkFailure = lookupFailure('Crosswalk lookup', crosswalk);
152
+ if (crosswalkFailure)
153
+ throw crosswalkFailure;
154
+ // 2. The crosswalk answered empty everywhere, which is also its answer for
155
+ // every 10.64898/ DOI — the path form never parses one. The preprint's own
156
+ // /details record names its journal DOI whichever prefix it carries.
157
+ const details = await Promise.allSettled(servers.map((server) => service.getDetails(doi, server, ctx)));
158
+ const heldAt = details.findIndex((r) => r.status === 'fulfilled' && r.value.length > 0);
159
+ const held = details[heldAt];
160
+ if (held?.status !== 'fulfilled') {
161
+ const detailsFailure = lookupFailure('Preprint lookup', details);
162
+ if (detailsFailure)
163
+ throw detailsFailure;
164
+ // No preprint at all: the contract hint's "no journal version yet — check
165
+ // again later" would send the caller to wait on a DOI that does not exist.
166
+ throw ctx.fail('doi_not_found', `No preprint found for ${doi} on ${servers.join(' or ')}.`, {
167
+ doi,
168
+ servers,
169
+ recovery: {
170
+ hint: 'Retry with server="both" if you scoped to one server; otherwise the DOI is wrong — find the right one with biorxiv_search_preprints.',
171
+ },
172
+ });
173
+ }
174
+ const server = servers[heldAt];
175
+ const revisions = held.value;
176
+ const publishedDoi = revisions.findLast((r) => r.publishedJournalDoi)?.publishedJournalDoi;
177
+ if (!publishedDoi) {
178
+ throw ctx.fail('doi_not_found', `${doi} has no published journal version: neither the crosswalk nor its ${server} preprint record lists one.`, { doi, servers, ...ctx.recoveryFor('doi_not_found') });
179
+ }
180
+ // 3. The crosswalk keyed the other way, by that journal DOI — the full
181
+ // record, journal name and date included, whenever the API can parse the key.
182
+ const [byJournal] = await Promise.allSettled([
183
+ service.getPublishedVersionByJournalDoi(publishedDoi, doi, server, ctx),
184
+ ]);
185
+ if (byJournal?.status === 'fulfilled' && byJournal.value) {
186
+ return { ...byJournal.value, server };
124
187
  }
125
- throw ctx.fail('doi_not_found', `No published version found for ${input.doi} on ${servers.join(' or ')}.`, { doi: input.doi, servers, ...ctx.recoveryFor('doi_not_found') });
188
+ // 4. Only the journal DOI is established. The journal name and publication
189
+ // date come from the crosswalk alone, so they stay absent — never inferred.
190
+ ctx.enrich.notice(byJournal?.status === 'rejected'
191
+ ? `The crosswalk lookup by journal DOI ${publishedDoi} failed (${errorMessage(byJournal.reason)}), so publishedDoi comes from the preprint's own record and the journal name and publication date are absent. Retry to fill them in.`
192
+ : `The crosswalk holds no record for ${doi} under its preprint DOI or its journal DOI ${publishedDoi}, so publishedDoi comes from the preprint's own record and the journal name and publication date — which only the crosswalk supplies — are absent. Resolve ${publishedDoi} at doi.org for the journal details.`);
193
+ const first = revisions[0];
194
+ const latest = revisions.at(-1);
195
+ return {
196
+ preprintDoi: doi,
197
+ server,
198
+ publishedDoi,
199
+ ...(latest?.title && { preprintTitle: latest.title }),
200
+ ...(latest?.authors && { preprintAuthors: latest.authors }),
201
+ ...(latest?.category && { preprintCategory: latest.category }),
202
+ ...(first?.date && { preprintDate: first.date }),
203
+ ...(latest?.abstract && { preprintAbstract: latest.abstract }),
204
+ ...(latest?.authorCorresponding && {
205
+ preprintAuthorCorresponding: latest.authorCorresponding,
206
+ }),
207
+ ...(latest?.authorCorrespondingInstitution && {
208
+ preprintAuthorCorrespondingInstitution: latest.authorCorrespondingInstitution,
209
+ }),
210
+ };
126
211
  },
212
+ // Upstream free text is escaped as it is interpolated so it renders literally —
213
+ // the abstract opens its own line, where `1. ` would start a list. DOIs stay
214
+ // raw because agents copy them back into calls.
127
215
  format: (result) => {
128
216
  const lines = [];
129
217
  lines.push(`## Published Version`);
@@ -132,23 +220,23 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
132
220
  if (result.publishedDoi)
133
221
  lines.push(`**Published DOI:** ${result.publishedDoi}`);
134
222
  if (result.publishedJournal)
135
- lines.push(`**Journal:** ${result.publishedJournal}`);
223
+ lines.push(`**Journal:** ${escapeMarkdown(result.publishedJournal)}`);
136
224
  if (result.publishedDate)
137
225
  lines.push(`**Published Date:** ${result.publishedDate}`);
138
226
  if (result.preprintTitle)
139
- lines.push(`\n**Title:** ${result.preprintTitle}`);
227
+ lines.push(`\n**Title:** ${escapeMarkdown(result.preprintTitle)}`);
140
228
  if (result.preprintAuthors)
141
- lines.push(`**Authors:** ${result.preprintAuthors}`);
229
+ lines.push(`**Authors:** ${escapeMarkdown(result.preprintAuthors)}`);
142
230
  if (result.preprintCategory)
143
- lines.push(`**Category:** ${result.preprintCategory}`);
231
+ lines.push(`**Category:** ${escapeMarkdown(result.preprintCategory)}`);
144
232
  if (result.preprintDate)
145
233
  lines.push(`**Preprint Date:** ${result.preprintDate}`);
146
234
  if (result.preprintAuthorCorresponding)
147
- lines.push(`**Corresponding Author:** ${result.preprintAuthorCorresponding}`);
235
+ lines.push(`**Corresponding Author:** ${escapeMarkdown(result.preprintAuthorCorresponding)}`);
148
236
  if (result.preprintAuthorCorrespondingInstitution)
149
- lines.push(`**Institution:** ${result.preprintAuthorCorrespondingInstitution}`);
237
+ lines.push(`**Institution:** ${escapeMarkdown(result.preprintAuthorCorrespondingInstitution)}`);
150
238
  if (result.preprintAbstract)
151
- lines.push(`\n**Abstract:**\n${result.preprintAbstract}`);
239
+ lines.push(`\n**Abstract:**\n${escapeMarkdown(result.preprintAbstract)}`);
152
240
  return [{ type: 'text', text: lines.join('\n') }];
153
241
  },
154
242
  });
@@ -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;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,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AC,CAAC;QACnF,IAAI,MAAM,CAAC,aAAa;YAAE,KAAK,CAAC,IAAI,CAAC,uBAAuB,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;QACpF,IAAI,MAAM,CAAC,aAAa;YAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;QAC7E,IAAI,MAAM,CAAC,eAAe;YAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC;QACjF,IAAI,MAAM,CAAC,gBAAgB;YAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;QACpF,IAAI,MAAM,CAAC,YAAY;YAAE,KAAK,CAAC,IAAI,CAAC,sBAAsB,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;QACjF,IAAI,MAAM,CAAC,2BAA2B;YACpC,KAAK,CAAC,IAAI,CAAC,6BAA6B,MAAM,CAAC,2BAA2B,EAAE,CAAC,CAAC;QAChF,IAAI,MAAM,CAAC,sCAAsC;YAC/C,KAAK,CAAC,IAAI,CAAC,oBAAoB,MAAM,CAAC,sCAAsC,EAAE,CAAC,CAAC;QAClF,IAAI,MAAM,CAAC,gBAAgB;YAAE,KAAK,CAAC,IAAI,CAAC,oBAAoB,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;QACvF,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,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;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,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sC,CAAC,EAAE,CACpF,CAAC;QACJ,IAAI,MAAM,CAAC,gBAAgB;YACzB,KAAK,CAAC,IAAI,CAAC,oBAAoB,cAAc,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;QAC5E,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -9,7 +9,7 @@ import { tool, z } from '@cyanheads/mcp-ts-core';
9
9
  import { getBiorxivApiService } from '../../../services/biorxiv/biorxiv-service.js';
10
10
  export const biorxivListCategoriesTool = tool('biorxiv_list_categories', {
11
11
  title: 'List bioRxiv/medRxiv Categories',
12
- description: 'List valid subject category strings for bioRxiv and medRxiv. Use these strings as the `category` filter in biorxiv_list_recent to narrow results to a specific field. Run this tool before filtering to get the current valid values.',
12
+ description: 'List valid subject category strings for bioRxiv and medRxiv — the categories the listing API actually filters on. Use these strings as the `category` filter in biorxiv_list_recent to narrow results to a specific field; case, and "_" or "-" in place of a space, do not matter there. Run this tool before filtering to get the current valid values.',
13
13
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
14
14
  input: z.object({}),
15
15
  output: z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-list-categories.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-categories.tool.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC,yBAAyB,EAAE;IACvE,KAAK,EAAE,iCAAiC;IACxC,WAAW,EACT,uOAAuO;IACzO,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE;IAE/E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IAEnB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;aACnD,QAAQ,CAAC,4BAA4B,CAAC;QACzC,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;aACnD,QAAQ,CAAC,4BAA4B,CAAC;KAC1C,CAAC;IAEF,OAAO,CAAC,MAAM,EAAE,GAAG;QACjB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;QAClD,OAAO,oBAAoB,EAAE,CAAC,aAAa,EAAE,CAAC;IAChD,CAAC;IAED,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;QAClB;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE;gBACJ,0BAA0B,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG;gBAClD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC9C,EAAE;gBACF,0BAA0B,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG;gBAClD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;aAC/C,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;KACF;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"biorxiv-list-categories.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-categories.tool.ts"],"names":[],"mappings":"AAAA;;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ClD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;aAC/C,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;KACF;CACF,CAAC,CAAC"}
@@ -2,7 +2,18 @@
2
2
  * @fileoverview biorxiv_list_recent tool — lists preprints posted or revised
3
3
  * within a date interval. Fans out to both bioRxiv and medRxiv when
4
4
  * server="both". Category filtering is applied server-side via the ?category=
5
- * query param. Returns 30 results per page (API-fixed); use cursor to paginate.
5
+ * query param, in the API's lowercase spelling. The API answers a category it
6
+ * does not filter on with its unfiltered listing (echoing category "all"), so
7
+ * such a leg is dropped with a notice, and a call left with no filtered page
8
+ * raises invalid_category. A funder filter (a ROR ID, normalized and
9
+ * checksum-validated before any call) is sent alongside category; only bioRxiv
10
+ * records carry funder data, so it narrows server="both" to bioRxiv with a
11
+ * notice and is rejected with server="medrxiv". An ID the API holds no funder
12
+ * record for raises invalid_funder rather than reading as an empty page.
13
+ * Returns 30 results per page (API-fixed); use cursor to paginate. Abstracts
14
+ * are about three quarters of a page and a listing is read for its titles and
15
+ * metadata, so they are omitted unless include_abstract is true; nothing else
16
+ * in a record changes.
6
17
  * When server="both", per-server pagination state is surfaced independently,
7
18
  * including per-server cursor exhaustion: the two servers hold different result
8
19
  * counts, so one cursor can be valid for one and past the end for the other.
@@ -28,7 +39,9 @@ export declare const biorxivListRecentTool: import("@cyanheads/mcp-ts-core").Too
28
39
  medrxiv: "medrxiv";
29
40
  }>>;
30
41
  category: z.ZodOptional<z.ZodString>;
42
+ funder: z.ZodOptional<z.ZodString>;
31
43
  cursor: z.ZodDefault<z.ZodNumber>;
44
+ include_abstract: z.ZodDefault<z.ZodBoolean>;
32
45
  }, z.core.$strip>, z.ZodObject<{
33
46
  preprints: z.ZodArray<z.ZodObject<{
34
47
  doi: z.ZodString;
@@ -43,7 +56,7 @@ export declare const biorxivListRecentTool: import("@cyanheads/mcp-ts-core").Too
43
56
  category: z.ZodOptional<z.ZodString>;
44
57
  jatsxmlUrl: z.ZodOptional<z.ZodString>;
45
58
  abstract: z.ZodOptional<z.ZodString>;
46
- funder: z.ZodOptional<z.ZodString>;
59
+ awards: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
60
  publishedJournalDoi: z.ZodOptional<z.ZodString>;
48
61
  server: z.ZodOptional<z.ZodString>;
49
62
  }, z.core.$strip>>;
@@ -76,8 +89,13 @@ export declare const biorxivListRecentTool: import("@cyanheads/mcp-ts-core").Too
76
89
  }, {
77
90
  readonly reason: "invalid_category";
78
91
  readonly code: JsonRpcErrorCode.ValidationError;
79
- readonly when: "The supplied category string is not in the taxonomy.";
92
+ readonly when: "The category is not in the requested server's taxonomy, or api.biorxiv.org ignored it and returned the unfiltered listing on every server that answered.";
80
93
  readonly recovery: "Call biorxiv_list_categories to get valid category strings and retry.";
94
+ }, {
95
+ readonly reason: "invalid_funder";
96
+ readonly code: JsonRpcErrorCode.ValidationError;
97
+ readonly when: "funder is not a well-formed ROR ID (pattern or checksum), is combined with server=\"medrxiv\", or is a ROR ID api.biorxiv.org has no funder record for.";
98
+ readonly recovery: "Look up the funder by name at ror.org and pass its ROR ID, bare (021nxhr62) or as https://ror.org/021nxhr62, with server \"biorxiv\" or \"both\".";
81
99
  }, {
82
100
  readonly reason: "upstream_unavailable";
83
101
  readonly code: JsonRpcErrorCode.ServiceUnavailable;
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-list-recent.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-recent.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAwCjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+bhC,CAAC"}
1
+ {"version":3,"file":"biorxiv-list-recent.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-recent.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAkDjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiiBhC,CAAC"}