@cyanheads/biorxiv-mcp-server 0.4.3 → 0.5.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 (35) hide show
  1. package/AGENTS.md +20 -7
  2. package/CLAUDE.md +20 -7
  3. package/Dockerfile +14 -7
  4. package/README.md +24 -94
  5. package/changelog/0.5.x/0.5.0.md +23 -0
  6. package/changelog/0.5.x/0.5.1.md +22 -0
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +2 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts +2 -0
  11. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts.map +1 -1
  12. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js +18 -2
  13. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js.map +1 -1
  14. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.d.ts.map +1 -1
  15. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js +1 -1
  16. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js.map +1 -1
  17. package/dist/mcp-server/tools/definitions/index.d.ts +2 -0
  18. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  19. package/dist/services/biorxiv/biorxiv-service.d.ts +3 -1
  20. package/dist/services/biorxiv/biorxiv-service.d.ts.map +1 -1
  21. package/dist/services/biorxiv/biorxiv-service.js +7 -8
  22. package/dist/services/biorxiv/biorxiv-service.js.map +1 -1
  23. package/dist/services/biorxiv/types.d.ts +8 -0
  24. package/dist/services/biorxiv/types.d.ts.map +1 -1
  25. package/dist/services/europe-pmc/europe-pmc-service.d.ts +5 -1
  26. package/dist/services/europe-pmc/europe-pmc-service.d.ts.map +1 -1
  27. package/dist/services/europe-pmc/europe-pmc-service.js +8 -3
  28. package/dist/services/europe-pmc/europe-pmc-service.js.map +1 -1
  29. package/dist/services/shared.d.ts +6 -2
  30. package/dist/services/shared.d.ts.map +1 -1
  31. package/dist/services/shared.js +38 -10
  32. package/dist/services/shared.js.map +1 -1
  33. package/package.json +4 -3
  34. package/server.json +3 -3
  35. package/skills/biorxiv-guide/SKILL.md +66 -0
package/AGENTS.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** biorxiv-mcp-server
4
- **Version:** 0.4.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.16`
4
+ **Version:** 0.5.1
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
9
9
 
10
10
  > **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
@@ -251,9 +251,18 @@ src/
251
251
 
252
252
  ## Skills
253
253
 
254
- Skills are modular instructions in `framework-skills/` at the project root. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. The directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand these development skills to every agent that installs it. Keep `skills/` free for skills meant for those agents.
254
+ Two skill trees live at the project root, written for different readers:
255
255
 
256
- **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
256
+ | Tree | For | Written by |
257
+ |:-----|:----|:-----------|
258
+ | `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
259
+ | `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
260
+
261
+ Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
262
+
263
+ A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
264
+
265
+ **Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
257
266
 
258
267
  Available skills:
259
268
 
@@ -265,6 +274,7 @@ Available skills:
265
274
  | `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
266
275
  | `add-resource` | Scaffold a new resource definition |
267
276
  | `add-prompt` | Scaffold a new prompt definition |
277
+ | `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
268
278
  | `add-service` | Scaffold a new service integration |
269
279
  | `add-test` | Scaffold test file for a tool, resource, or service |
270
280
  | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
@@ -312,7 +322,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
312
322
  | `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
313
323
  | `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
314
324
  | `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
315
- | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
325
+ | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity, `.mcpbignore` coverage, plugin manifests, the published `skills/` tree (run by devcheck) |
316
326
  | `bun run list-skills` | Print the skill registry |
317
327
  | `bun run tree` | Generate directory structure doc |
318
328
  | `bun run format` | Auto-fix formatting (safe fixes only) |
@@ -331,7 +341,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
331
341
 
332
342
  ## Bundling
333
343
 
334
- `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP deployments are unaffected. Delete `manifest.json` and `.mcpbignore` to opt out; `lint:packaging` skips cleanly.
344
+ `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/` at a package root, and `SKILL.md` — a `skills/` deeper in a package, like the MCP SDK's `dist/ext/skills/`, is runtime code and ships); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp`, which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases. MCPB is stdio-only — HTTP deployments are unaffected. Delete `manifest.json` and `.mcpbignore` to opt out; `lint:packaging` skips cleanly.
335
345
 
336
346
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
337
347
 
@@ -404,7 +414,10 @@ import { getEuropePmcService } from '@/services/europe-pmc/europe-pmc-service.js
404
414
  - [ ] `biorxiv_list_recent` and `biorxiv_list_published_versions` with `server="both"` surface per-server pagination state, not a merged cursor
405
415
  - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
406
416
  - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
417
+ - [ ] `plugin.json` + `mcp.json` (Agent Plugins 1.0.0 — read by Codex, Cursor, GitHub Copilot, VS Code, Kiro) populated — `plugin.json` `name` = the unscoped repo name (lowercase `a-z`, `0-9`, `-`, `.` only); `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords` from `package.json`; no other top-level field, `extensions` included. `mcp.json` holds one `"type": "stdio"` entry keyed by the unscoped name, `npx -y <full package name>`, and the same fixed `env` as `.codex-plugin/mcp.json`. Neither file carries a user-supplied variable (no `""`, no `${…}` besides `${PLUGIN_ROOT}`/`${PLUGIN_DATA}`): keys reach Codex through `.codex-plugin/mcp.json` `env_vars`, which works only while `.codex-plugin/plugin.json` keeps `"mcpServers": "./.codex-plugin/mcp.json"`
407
418
  - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = the unscoped repo name (never the npm scope — `lint:packaging` enforces this); `interface.shortDescription` from `package.json` description
408
419
  - [ ] `.codex-plugin/mcp.json` updated — server name key is the unscoped repo name; every user-supplied variable (API key, contact email, instance URL) is listed in `env_vars` so Codex forwards it from the user's environment. Never write `"KEY": ""` into `env` — an empty value replaces the user's exported key and is read as unset
409
420
  - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `author`, `repository`, `license`, `keywords` from `package.json`; inline `mcpServers` entry keyed by the unscoped repo name. Every user-supplied variable is declared under `userConfig` (`type`, `title`, `description`; `sensitive: true` for keys and tokens; `required: true` or `default: ""`) and referenced from `env` as `"KEY": "${user_config.<option>}"` — mirror the `user_config` block in `manifest.json`. Never write `"KEY": ""` into `env`
421
+ - [ ] Any new root dev path has a root-anchored line in `.mcpbignore`; `bun run bundle` and `lint:packaging` pass
422
+ - [ ] If the server publishes a skill in root `skills/`: `lint:packaging` passes, and `field-test` verified every gate and identifier claim in it against live tool behavior
410
423
  - [ ] `bun run devcheck` passes
package/CLAUDE.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** biorxiv-mcp-server
4
- **Version:** 0.4.3
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.16`
4
+ **Version:** 0.5.1
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.18`
6
6
  **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
- **MCP SDK:** `@modelcontextprotocol/server` ^2.3.1
7
+ **MCP SDK:** `@modelcontextprotocol/server` ^2.4.0
8
8
  **Zod:** ^4.6.7
9
9
 
10
10
  > **Read the framework docs first:** `node_modules/@cyanheads/mcp-ts-core/CLAUDE.md` contains the full API reference — builders, Context, error codes, exports, patterns. This file covers server-specific conventions only.
@@ -251,9 +251,18 @@ src/
251
251
 
252
252
  ## Skills
253
253
 
254
- Skills are modular instructions in `framework-skills/` at the project root. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. The directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand these development skills to every agent that installs it. Keep `skills/` free for skills meant for those agents.
254
+ Two skill trees live at the project root, written for different readers:
255
255
 
256
- **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
256
+ | Tree | For | Written by |
257
+ |:-----|:----|:-----------|
258
+ | `framework-skills/` | The agent developing this server — framework skills (`metadata.audience: external`) plus any development-time skills of the server's own | `init` and the `maintenance` sync (framework skills); you (your own) |
259
+ | `skills/` | The agents that install the server and call its tools — tool chains, identifier sources, gates | You, deliberately, with the `add-skill` skill. Absent by default; usually none is needed |
260
+
261
+ Development skills are modular instructions. Read them directly when a task matches — e.g., `framework-skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry. Their directory is deliberately not `skills/`: Claude Code and Codex auto-load a plugin's root `skills/`, so a server that ships `.claude-plugin/` or `.codex-plugin/` would hand them to every agent that installs it.
262
+
263
+ A published skill in root `skills/` reaches plugin installs and the `.mcpb` bundle as-is, ships in the npm package and the Docker image, and reaches MCP clients when the server opts in with `createApp({ skills: 'skills' })`. `lint:packaging` validates the tree.
264
+
265
+ **Agent skill directory:** Copy `framework-skills/` into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `framework-skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
257
266
 
258
267
  Available skills:
259
268
 
@@ -265,6 +274,7 @@ Available skills:
265
274
  | `add-app-tool` | Scaffold an MCP App tool + paired UI resource |
266
275
  | `add-resource` | Scaffold a new resource definition |
267
276
  | `add-prompt` | Scaffold a new prompt definition |
277
+ | `add-skill` | Author a skill the server publishes in root `skills/` for the agents that use it — when one earns its place, structure, validation, delivery |
268
278
  | `add-service` | Scaffold a new service integration |
269
279
  | `add-test` | Scaffold test file for a tool, resource, or service |
270
280
  | `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
@@ -312,7 +322,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
312
322
  | `bun run audit:fix` | `bun audit fix` — upgrade vulnerable packages to the lowest safe version within existing ranges (`--dry-run` previews, `--latest` rewrites ranges). First response when `devcheck` flags a transitive advisory; then `bun update <name>`, then `bun dedupe` |
313
323
  | `bun run audit:refresh` | Delete `bun.lock` and reinstall. Last resort after `audit:fix`, `bun update <name>`, and `bun dedupe` — re-resolves every ranged dep (the framework pin included) and rewrites the lockfile as `lockfileVersion: 2` |
314
324
  | `bun run lint:mcp` | Run the MCP definition linter standalone (rule catalog: `api-linter` skill) |
315
- | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity (run by devcheck) |
325
+ | `bun run lint:packaging` | Packaging surface checks — `server.json`/`manifest.json` env-var parity, `.mcpbignore` coverage, plugin manifests, the published `skills/` tree (run by devcheck) |
316
326
  | `bun run list-skills` | Print the skill registry |
317
327
  | `bun run tree` | Generate directory structure doc |
318
328
  | `bun run format` | Auto-fix formatting (safe fixes only) |
@@ -331,7 +341,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
331
341
 
332
342
  ## Bundling
333
343
 
334
- `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips two classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/`, `SKILL.md`) and platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on. MCPB is stdio-only — HTTP deployments are unaffected. Delete `manifest.json` and `.mcpbignore` to opt out; `lint:packaging` skips cleanly.
344
+ `bun run bundle` produces a `.mcpb` extension bundle for one-click install in Claude Desktop. `mcpb pack` reads `.mcpbignore`, not `.gitignore`, so every root path the bundle must not ship — source, tests, docs, caches, logs, agent docs, plugin manifests, gitignored local files — needs a root-anchored line there (`/docs/`, never `docs/`, which also strips `node_modules/*/docs/`); `lint:packaging` names each missing or unanchored line. Root `skills/` ships on purpose. The pack step is followed by `scripts/clean-mcpb.ts`, which prunes dev dependencies (`mcpb clean`) and strips four classes of `node_modules/**` content that root-anchored `.mcpbignore` patterns cannot reach: dependency-shipped agent docs (`framework-skills/`, `skills/`, `.claude/`, `.agents/` at a package root, and `SKILL.md` — a `skills/` deeper in a package, like the MCP SDK's `dist/ext/skills/`, is runtime code and ships); platform-specific native bindings, which would otherwise lock the bundle to the platform it was packed on; node-gyp build output beside a `binding.gyp`, which records the packing machine's paths — compiled `*.node` addons stay; and build-only package files — the framework's `changelog/`, `scripts/`, `templates/`, `CLAUDE.md`, `AGENTS.md`, and config bases. MCPB is stdio-only — HTTP deployments are unaffected. Delete `manifest.json` and `.mcpbignore` to opt out; `lint:packaging` skips cleanly.
335
345
 
336
346
  **Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match, that every `user_config` option is wired into `mcp_config.env` as `"X": "${user_config.X}"` (the host substitutes nothing else — `"${X}"` reaches the server as that literal string), and that an optional string option carries `"default": ""`.
337
347
 
@@ -404,7 +414,10 @@ import { getEuropePmcService } from '@/services/europe-pmc/europe-pmc-service.js
404
414
  - [ ] `biorxiv_list_recent` and `biorxiv_list_published_versions` with `server="both"` surface per-server pagination state, not a merged cursor
405
415
  - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
406
416
  - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
417
+ - [ ] `plugin.json` + `mcp.json` (Agent Plugins 1.0.0 — read by Codex, Cursor, GitHub Copilot, VS Code, Kiro) populated — `plugin.json` `name` = the unscoped repo name (lowercase `a-z`, `0-9`, `-`, `.` only); `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords` from `package.json`; no other top-level field, `extensions` included. `mcp.json` holds one `"type": "stdio"` entry keyed by the unscoped name, `npx -y <full package name>`, and the same fixed `env` as `.codex-plugin/mcp.json`. Neither file carries a user-supplied variable (no `""`, no `${…}` besides `${PLUGIN_ROOT}`/`${PLUGIN_DATA}`): keys reach Codex through `.codex-plugin/mcp.json` `env_vars`, which works only while `.codex-plugin/plugin.json` keeps `"mcpServers": "./.codex-plugin/mcp.json"`
407
418
  - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = the unscoped repo name (never the npm scope — `lint:packaging` enforces this); `interface.shortDescription` from `package.json` description
408
419
  - [ ] `.codex-plugin/mcp.json` updated — server name key is the unscoped repo name; every user-supplied variable (API key, contact email, instance URL) is listed in `env_vars` so Codex forwards it from the user's environment. Never write `"KEY": ""` into `env` — an empty value replaces the user's exported key and is read as unset
409
420
  - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `author`, `repository`, `license`, `keywords` from `package.json`; inline `mcpServers` entry keyed by the unscoped repo name. Every user-supplied variable is declared under `userConfig` (`type`, `title`, `description`; `sensitive: true` for keys and tokens; `required: true` or `default: ""`) and referenced from `env` as `"KEY": "${user_config.<option>}"` — mirror the `user_config` block in `manifest.json`. Never write `"KEY": ""` into `env`
421
+ - [ ] Any new root dev path has a root-anchored line in `.mcpbignore`; `bun run bundle` and `lint:packaging` pass
422
+ - [ ] If the server publishes a skill in root `skills/`: `lint:packaging` passes, and `field-test` verified every gate and identifier claim in it against live tool behavior
410
423
  - [ ] `bun run devcheck` passes
package/Dockerfile CHANGED
@@ -29,6 +29,11 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
29
29
  # Copy the rest of the source code
30
30
  COPY . .
31
31
 
32
+ # The skills a server publishes (`createApp({ skills: 'skills' })`) are read at
33
+ # runtime from the application root. Created when the project has none, so the
34
+ # production stage's copy below holds with or without one.
35
+ RUN mkdir -p skills
36
+
32
37
  # Build the application
33
38
  RUN bun run build
34
39
 
@@ -40,8 +45,8 @@ RUN bun run build
40
45
  # here can run JavaScript — bunfig.toml's security scanner runs as a Bun
41
46
  # program, and so do the OTel and musl-prune scripts — so the stage runs on
42
47
  # $BUILDPLATFORM and cross-installs with `--os`/`--cpu`, which pick each
43
- # platform-specific optional dependency (native bindings) for the target. Only
44
- # `node_modules` leaves this stage.
48
+ # platform-specific optional dependency (native bindings such as DuckDB's) for
49
+ # the target. Only `node_modules` leaves this stage.
45
50
  #
46
51
  # A clean image rather than `FROM build`: the build stage's node_modules holds
47
52
  # devDependencies.
@@ -94,10 +99,11 @@ RUN --mount=type=cache,target=/root/.bun/install/cache \
94
99
  fi
95
100
 
96
101
  # `--os`/`--cpu` have no libc counterpart, so a native dependency published in
97
- # glibc and musl variants installs both. The runtime image is Debian (glibc)
98
- # and never loads the musl copy; the script deletes every package whose own
99
- # `libc` admits only musl. It follows every install, since a later
100
- # `bun install` restores what it removes.
102
+ # glibc and musl variants (DuckDB's bindings, for one) installs both. The
103
+ # runtime image is Debian (glibc) and never loads the musl copy; the script
104
+ # deletes every package whose own `libc` admits only musl. It follows every
105
+ # install, since a later `bun install` restores what it removes. A server on a
106
+ # musl (Alpine) runtime image drops these two lines.
101
107
  COPY scripts/prune-musl-packages.ts ./scripts/
102
108
  RUN bun scripts/prune-musl-packages.ts
103
109
 
@@ -122,7 +128,7 @@ ENV NODE_ENV=production
122
128
 
123
129
  # OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
124
130
  ARG APP_VERSION
125
- LABEL org.opencontainers.image.title="@cyanheads/biorxiv-mcp-server"
131
+ LABEL org.opencontainers.image.title="biorxiv-mcp-server"
126
132
  LABEL org.opencontainers.image.description="Search and retrieve bioRxiv and medRxiv preprints — by DOI, date interval, or keyword — via MCP. STDIO or Streamable HTTP."
127
133
  LABEL org.opencontainers.image.licenses="Apache-2.0"
128
134
  LABEL org.opencontainers.image.version="${APP_VERSION}"
@@ -135,6 +141,7 @@ COPY --from=deps /usr/src/app/node_modules ./node_modules
135
141
 
136
142
  # Copy the compiled application code from the build stage
137
143
  COPY --from=build /usr/src/app/dist ./dist
144
+ COPY --from=build /usr/src/app/skills ./skills
138
145
 
139
146
  # The 'oven/bun' image already provides a non-root user named 'bun'.
140
147
  # We will use this existing user for enhanced security.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.4.3-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/biorxiv-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.3.1-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/biorxiv-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/biorxiv-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.5.1-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/biorxiv-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.4.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/biorxiv-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/biorxiv-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.4-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -58,7 +58,8 @@ bioRxiv and medRxiv preprints, metadata and full text. Search by keyword and aut
58
58
  ### `biorxiv_list_recent` <sub>tool</sub>
59
59
 
60
60
  - Takes a `start_date`/`end_date` interval, `server` (default `both`), and optional `category` (a value from `biorxiv_list_categories`) and bioRxiv-only `funder` (a ROR ID) filters; a filter that cannot be applied raises `invalid_category` or `invalid_funder`
61
- - Pages of 30 advance with an integer `cursor`, tracked per server (`{ biorxiv: { cursor, total }, medrxiv: { cursor, total } }`); a cursor past the last page is marked `exhausted: true`, and a server that did not answer is named in `failed[]`
61
+ - Pages of 30 advance with an integer `cursor`, tracked per server (`{ biorxiv: { cursor, total, newPreprints }, medrxiv: { cursor, total, newPreprints } }`); a cursor past the last page is marked `exhausted: true`, and a server that did not answer is named in `failed[]`
62
+ - Rows are revisions: `total` counts every version posted in the interval, while `newPreprints` counts the preprints whose first version posted in it, as the API reports it (absent when the API sends no count)
62
63
  - Abstracts are omitted by default; `include_abstract: true` adds them. Each is the preprint's latest-revision abstract, even on a row for an earlier revision
63
64
 
64
65
  ---
@@ -123,112 +124,32 @@ Agent-friendly output:
123
124
 
124
125
  ## Getting started
125
126
 
126
- ### Public Hosted Instance
127
+ Connect to the hosted instance, no install:
127
128
 
128
- A public instance is available at `https://biorxiv.caseyjhand.com/mcp` — no installation required. Point any MCP client at it via Streamable HTTP:
129
-
130
- ```json
131
- {
132
- "mcpServers": {
133
- "biorxiv-mcp-server": {
134
- "type": "streamable-http",
135
- "url": "https://biorxiv.caseyjhand.com/mcp"
136
- }
137
- }
138
- }
129
+ ```sh
130
+ claude mcp add --transport http biorxiv-mcp-server https://biorxiv.caseyjhand.com/mcp
139
131
  ```
140
132
 
141
- ### Self-Hosted / Local
133
+ Or run it locally:
142
134
 
143
- Add the following to your MCP client configuration file.
144
-
145
- ```json
146
- {
147
- "mcpServers": {
148
- "biorxiv-mcp-server": {
149
- "type": "stdio",
150
- "command": "bunx",
151
- "args": ["@cyanheads/biorxiv-mcp-server@latest"],
152
- "env": {
153
- "MCP_TRANSPORT_TYPE": "stdio",
154
- "MCP_LOG_LEVEL": "info",
155
- "BIORXIV_MAILTO": "your@email.com"
156
- }
157
- }
158
- }
159
- }
135
+ ```sh
136
+ claude mcp add biorxiv-mcp-server -- npx -y @cyanheads/biorxiv-mcp-server
160
137
  ```
161
138
 
162
- Or with npx (no Bun required):
139
+ For other clients, add this to the MCP config file:
163
140
 
164
141
  ```json
165
142
  {
166
143
  "mcpServers": {
167
144
  "biorxiv-mcp-server": {
168
- "type": "stdio",
169
145
  "command": "npx",
170
- "args": ["-y", "@cyanheads/biorxiv-mcp-server@latest"],
171
- "env": {
172
- "MCP_TRANSPORT_TYPE": "stdio",
173
- "MCP_LOG_LEVEL": "info",
174
- "BIORXIV_MAILTO": "your@email.com"
175
- }
176
- }
177
- }
178
- }
179
- ```
180
-
181
- Or with Docker:
182
-
183
- ```json
184
- {
185
- "mcpServers": {
186
- "biorxiv-mcp-server": {
187
- "type": "stdio",
188
- "command": "docker",
189
- "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "-e", "BIORXIV_MAILTO=your@email.com", "ghcr.io/cyanheads/biorxiv-mcp-server:latest"]
146
+ "args": ["-y", "@cyanheads/biorxiv-mcp-server"]
190
147
  }
191
148
  }
192
149
  }
193
150
  ```
194
151
 
195
- For Streamable HTTP, set the transport and start the server:
196
-
197
- ```sh
198
- MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 BIORXIV_MAILTO=your@email.com bun run start:http
199
- # Server listens at http://localhost:3010/mcp
200
- ```
201
-
202
- ### Prerequisites
203
-
204
- - [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
205
-
206
- ### Installation
207
-
208
- 1. **Clone the repository:**
209
-
210
- ```sh
211
- git clone https://github.com/cyanheads/biorxiv-mcp-server.git
212
- ```
213
-
214
- 2. **Navigate into the directory:**
215
-
216
- ```sh
217
- cd biorxiv-mcp-server
218
- ```
219
-
220
- 3. **Install dependencies:**
221
-
222
- ```sh
223
- bun install
224
- ```
225
-
226
- 4. **Configure environment:**
227
-
228
- ```sh
229
- cp .env.example .env
230
- # optionally set BIORXIV_MAILTO for polite API access
231
- ```
152
+ A contact email in `BIORXIV_MAILTO` (`-e BIORXIV_MAILTO=you@example.com`, or an `env` entry) identifies your requests in the `User-Agent` header, as the Cold Spring Harbor Lab API guidelines ask. For Docker or a source build, see [Running the server](#running-the-server).
232
153
 
233
154
  ## Configuration
234
155
 
@@ -256,6 +177,16 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
256
177
 
257
178
  ### Local development
258
179
 
180
+ Requires [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
181
+
182
+ - **Clone and install:**
183
+
184
+ ```sh
185
+ git clone https://github.com/cyanheads/biorxiv-mcp-server.git
186
+ cd biorxiv-mcp-server && bun install
187
+ cp .env.example .env # optionally set BIORXIV_MAILTO
188
+ ```
189
+
259
190
  - **Build and run:**
260
191
 
261
192
  ```sh
@@ -279,11 +210,10 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
279
210
  ### Docker
280
211
 
281
212
  ```sh
282
- docker build -t biorxiv-mcp-server .
283
- docker run --rm -e BIORXIV_MAILTO=your@email.com -p 3010:3010 biorxiv-mcp-server
213
+ docker run --rm -e BIORXIV_MAILTO=your@email.com -p 3010:3010 ghcr.io/cyanheads/biorxiv-mcp-server:latest
284
214
  ```
285
215
 
286
- The Dockerfile defaults to HTTP transport, stateless session mode, and logs to `/var/log/biorxiv-mcp-server`. OpenTelemetry peer dependencies are installed by default — build with `--build-arg OTEL_ENABLED=false` to omit them.
216
+ The image defaults to HTTP transport, stateless session mode, and logs to `/var/log/biorxiv-mcp-server`; the server listens at `http://localhost:3010/mcp`. To run it over stdio from an MCP client, use `"command": "docker"` with `"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/biorxiv-mcp-server:latest"]`. To build locally, `docker build -t biorxiv-mcp-server .`; OpenTelemetry peer dependencies are installed by default — build with `--build-arg OTEL_ENABLED=false` to omit them.
287
217
 
288
218
  ## Project structure
289
219
 
@@ -0,0 +1,23 @@
1
+ ---
2
+ summary: "Publishes the biorxiv-guide Agent Skill over MCP as skill://biorxiv-guide/SKILL.md and moves to mcp-ts-core 0.13.18, with MCP SDK 2.4 and the fix for the per-request HTTP memory leak in 0.13.16."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.5.0 — 2026-10-28
8
+
9
+ ## Added
10
+
11
+ - **`biorxiv-guide` Agent Skill**: a published skill covering search syntax, identifier origins, and counting gates for the `biorxiv_*` tools, served over MCP as the resource `skill://biorxiv-guide/SKILL.md` (with the `skill://{+path}` resource template) and shipped in the npm package, the Docker image, and the `.mcpb`.
12
+
13
+ ## Changed
14
+
15
+ - `@cyanheads/mcp-ts-core` ^0.13.16 → ^0.13.18: MCP SDK 2.4 and the fix for the 0.13.16 per-request HTTP memory leak (0.13.17); `createApp({ skills })`, the Agent Plugins root `plugin.json` and `mcp.json`, and a `.mcpb` without the framework's build-only files (0.13.18)
16
+ - Bundle cleaner and packaging check keep the MCP SDK's skills runtime in the `.mcpb` (local port of cyanheads/mcp-ts-core#794)
17
+ - **`biorxiv_search_preprints` `server` description** now says it scopes the search itself as well as enrichment; the parameter already restricted the EuropePMC search to that server's preprints.
18
+ - **README Getting started** is the hosted `claude mcp add` command, a local `npx` command, and one client-config JSON; the MCP SDK badge reads `^2.4.0`.
19
+ - **`CLAUDE.md` and `AGENTS.md`** framework sections, `.github/SECURITY.md`, and the issue forms (one Environment table in the bug report) resynced from mcp-ts-core 0.13.18; `bunfig.toml` `minimumReleaseAge` is 1 day (was 3).
20
+
21
+ ## Fixed
22
+
23
+ - **Per-request HTTP memory leak**: the HTTP transport no longer retains each request's signal; 0.13.16 leaked about 71 KiB per request, growing the heap under sustained traffic (mcp-ts-core 0.13.17, cyanheads/mcp-ts-core#786).
@@ -0,0 +1,22 @@
1
+ ---
2
+ summary: "biorxiv_search_preprints groups the caller's query before joining its own clauses, so an unparenthesized OR filters again; biorxiv_list_recent reports each server's new-preprint count; titles ending in ' #' keep the '#' in content[] headings."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.5.1 — 2026-10-29
8
+
9
+ ## Added
10
+
11
+ - **`biorxiv_list_recent` `newPreprints`**: each server's `pagination` entry and `content[]` summary line report the API's `count_new_papers`, the preprints whose first version posted in the interval for the applied filters. Omitted when the API sends no readable count (#86).
12
+
13
+ ## Changed
14
+
15
+ - **`biorxiv-guide` Agent Skill** 1.0 → 1.1: drops the "wrap every `OR` in parentheses" gate and points new-preprint counting at `newPreprints`.
16
+ - **`biorxiv_list_recent` `total` description** states that it counts revision rows (#86).
17
+
18
+ ## Fixed
19
+
20
+ - **`biorxiv_search_preprints` `OR` queries**: the trimmed `query` is parenthesized before the author, date, and server clauses are joined to it, so `transformer OR CRISPR` matches the `(transformer OR CRISPR)` set instead of `CRISPR` alone. An author-only call adds no parentheses (#85).
21
+ - **Headings in `content[]`**: `escapeMarkdown` escapes the last `#` of a run that a space, a tab, or the value's start precedes and only spaces or tabs follow (`abc #` → `abc \#`, `#######` → `######\#`), so a title ending in such a run renders as the `structuredContent` title (#87).
22
+ - **`escapeMarkdown`** runs in time linear in the value's length (#89).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileoverview biorxiv-mcp-server entry point. Initializes BiorxivApiService,
4
4
  * EuropePmcService, and BiorxivFullTextService in setup(), then registers all
5
- * tool definitions with createApp().
5
+ * tool definitions and the published skills/ tree with createApp().
6
6
  * @module index
7
7
  */
8
8
  export {};
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileoverview biorxiv-mcp-server entry point. Initializes BiorxivApiService,
4
4
  * EuropePmcService, and BiorxivFullTextService in setup(), then registers all
5
- * tool definitions with createApp().
5
+ * tool definitions and the published skills/ tree with createApp().
6
6
  * @module index
7
7
  */
8
8
  import { createApp } from '@cyanheads/mcp-ts-core';
@@ -16,6 +16,7 @@ await createApp({
16
16
  tools: [...allToolDefinitions],
17
17
  resources: [],
18
18
  prompts: [],
19
+ skills: 'skills',
19
20
  instructions: 'bioRxiv/medRxiv preprints, addressed by 10.1101/ or 10.64898/ DOI and searched across both servers by default. Find preprints with biorxiv_search_preprints (keyword or author, ranked by EuropePMC) or biorxiv_list_recent (a date interval, filtered by a category string from biorxiv_list_categories and, on bioRxiv, by a funder ROR ID). Resolve a DOI with biorxiv_get_preprint for metadata and revisions, biorxiv_get_fulltext for the article body as Markdown, and biorxiv_get_published_version for the journal crosswalk once a preprint has been published — it also takes the DOI of a journal article and returns the preprint it was posted as. biorxiv_list_published_versions lists those crosswalk records by journal publication date — the preprints that became journal articles in an interval, whenever they were posted, filtered on bioRxiv by the DOI prefix of a journal publisher.',
20
21
  // Stateless HTTP: no tool gates on ctx.requestInput, so no session store is needed.
21
22
  sessionMode: 'stateless',
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,MAAM,SAAS,CAAC;IACd,IAAI,EAAE,oB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ACR,qBAAqB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,oBAAoB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,0BAA0B,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACxD,CAAC;CACF,CAAC,CAAC"}
@@ -67,12 +67,14 @@ export declare const biorxivListRecentTool: import("@cyanheads/mcp-ts-core").Too
67
67
  biorxiv: z.ZodOptional<z.ZodObject<{
68
68
  cursor: z.ZodNumber;
69
69
  total: z.ZodNumber;
70
+ newPreprints: z.ZodOptional<z.ZodNumber>;
70
71
  nextCursor: z.ZodOptional<z.ZodNumber>;
71
72
  exhausted: z.ZodOptional<z.ZodBoolean>;
72
73
  }, z.core.$strip>>;
73
74
  medrxiv: z.ZodOptional<z.ZodObject<{
74
75
  cursor: z.ZodNumber;
75
76
  total: z.ZodNumber;
77
+ newPreprints: z.ZodOptional<z.ZodNumber>;
76
78
  nextCursor: z.ZodOptional<z.ZodNumber>;
77
79
  exhausted: z.ZodOptional<z.ZodBoolean>;
78
80
  }, z.core.$strip>>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAkDjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0jBhC,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;AAwDjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6kBhC,CAAC"}
@@ -155,7 +155,14 @@ export const biorxivListRecentTool = tool('biorxiv_list_recent', {
155
155
  biorxiv: z
156
156
  .object({
157
157
  cursor: z.number().describe('Current cursor (offset used for this page).'),
158
- total: z.number().describe('Total preprints available on bioRxiv for these filters.'),
158
+ total: z
159
+ .number()
160
+ .describe('Rows bioRxiv lists in the interval for these filters — one per revision posted in it, so a preprint revised in the interval counts once per version. For the number of new preprints, read newPreprints.'),
161
+ newPreprints: z
162
+ .number()
163
+ .int()
164
+ .optional()
165
+ .describe('Preprints whose first version posted on bioRxiv in the interval, for these filters — the rows with version "1" across every page of the listing, as bioRxiv counts them. Absent when bioRxiv reports no count, as on an exhausted entry; never a 0 standing in for an unknown count.'),
159
166
  nextCursor: z.number().optional().describe('Cursor value for the next page, if any.'),
160
167
  exhausted: z
161
168
  .boolean()
@@ -167,7 +174,14 @@ export const biorxivListRecentTool = tool('biorxiv_list_recent', {
167
174
  medrxiv: z
168
175
  .object({
169
176
  cursor: z.number().describe('Current cursor (offset used for this page).'),
170
- total: z.number().describe('Total preprints available on medRxiv for these filters.'),
177
+ total: z
178
+ .number()
179
+ .describe('Rows medRxiv lists in the interval for these filters — one per revision posted in it, so a preprint revised in the interval counts once per version. For the number of new preprints, read newPreprints.'),
180
+ newPreprints: z
181
+ .number()
182
+ .int()
183
+ .optional()
184
+ .describe('Preprints whose first version posted on medRxiv in the interval, for these filters — the rows with version "1" across every page of the listing, as medRxiv counts them. Absent when medRxiv reports no count, as on an exhausted entry; never a 0 standing in for an unknown count.'),
171
185
  nextCursor: z.number().optional().describe('Cursor value for the next page, if any.'),
172
186
  exhausted: z
173
187
  .boolean()
@@ -482,6 +496,8 @@ export const biorxivListRecentTool = tool('biorxiv_list_recent', {
482
496
  if (!p)
483
497
  continue;
484
498
  let line = `**${SERVER_LABEL[server]}:** page offset ${p.cursor}, total ${p.total}`;
499
+ if (p.newPreprints !== undefined)
500
+ line += `, ${p.newPreprints} new preprint${p.newPreprints === 1 ? '' : 's'}`;
485
501
  if (p.nextCursor !== undefined)
486
502
  line += ` — next cursor: ${p.nextCursor}`;
487
503
  else if (!p.exhausted)
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-list-recent.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-recent.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,8BAA8B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EACL,YAAY,EACZ,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,OAAO,GAAG,CAAC,SAAS,EAAE,SAAS,CAAU,CAAC;AAChD,MAAM,YAAY,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAW,CAAC;AAEzE,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,8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