@cyanheads/biorxiv-mcp-server 0.4.2 → 0.5.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 (29) hide show
  1. package/AGENTS.md +21 -8
  2. package/CLAUDE.md +21 -8
  3. package/Dockerfile +14 -7
  4. package/README.md +22 -93
  5. package/changelog/0.4.x/0.4.3.md +27 -0
  6. package/changelog/0.5.x/0.5.0.md +23 -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-get-published-version.tool.d.ts.map +1 -1
  11. package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.js +2 -1
  12. package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.js.map +1 -1
  13. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts.map +1 -1
  14. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js +5 -3
  15. package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js.map +1 -1
  16. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.d.ts.map +1 -1
  17. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js +9 -7
  18. package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js.map +1 -1
  19. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts +5 -4
  20. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts.map +1 -1
  21. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js +154 -9
  22. package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js.map +1 -1
  23. package/dist/services/shared.d.ts +23 -13
  24. package/dist/services/shared.d.ts.map +1 -1
  25. package/dist/services/shared.js +41 -16
  26. package/dist/services/shared.js.map +1 -1
  27. package/package.json +9 -8
  28. package/server.json +3 -3
  29. package/skills/biorxiv-guide/SKILL.md +67 -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.2
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.15`
4
+ **Version:** 0.5.0
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
 
@@ -400,11 +410,14 @@ import { getEuropePmcService } from '@/services/europe-pmc/europe-pmc-service.js
400
410
  - [ ] `BIORXIV_MAILTO` included in outbound User-Agent header when set (optional env var)
401
411
  - [ ] DOI input normalized and validated with `normalizeDoi()` before calling API
402
412
  - [ ] Two-server fan-out uses `Promise.allSettled`, or `firstHit()` for a single-DOI lookup one server's answer settles; partial failures reported per-DOI in `failed[]`. A caller cancellation is rethrown, never reported as a failed leg: `ctx.signal.throwIfAborted()` after every fan-out, and before a degraded or cached result is returned
403
- - [ ] Every upstream ladder takes the call's remaining deadline: the handler calls `startCallDeadline()` once and passes it to every service call; the service runs each ladder through `retryWithinBudget(attempt, { deadline, operation, … })` — `withRetry` on what is left of the budget, keeping an origin's last 429 as the ladder's answer when the budget runs out — and passes the attempt `signal` to `fetchWithTimeout` and `Math.min(perAttemptMs, remainingMs)` as its timeout. A required step's expiry fails with the tool's declared retryable reason, never a bare `Timeout`
413
+ - [ ] Every upstream ladder takes the call's remaining deadline: the handler calls `startCallDeadline()` once and passes it to every service call; the service runs each ladder through `retryWithinBudget(attempt, { deadline, operation, … })` — `withRetry` on what is left of the budget, keeping an origin's last 429 as the ladder's answer when the budget runs out, and pacing a 429 whose `Retry-After` names no usable wait (`0`, a past date) like a header-less one — and passes the attempt `signal` to `fetchWithTimeout` and `Math.min(perAttemptMs, remainingMs)` as its timeout. A required step's expiry fails with the tool's declared retryable reason, never a bare `Timeout`
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.2
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.15`
4
+ **Version:** 0.5.0
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
 
@@ -400,11 +410,14 @@ import { getEuropePmcService } from '@/services/europe-pmc/europe-pmc-service.js
400
410
  - [ ] `BIORXIV_MAILTO` included in outbound User-Agent header when set (optional env var)
401
411
  - [ ] DOI input normalized and validated with `normalizeDoi()` before calling API
402
412
  - [ ] Two-server fan-out uses `Promise.allSettled`, or `firstHit()` for a single-DOI lookup one server's answer settles; partial failures reported per-DOI in `failed[]`. A caller cancellation is rethrown, never reported as a failed leg: `ctx.signal.throwIfAborted()` after every fan-out, and before a degraded or cached result is returned
403
- - [ ] Every upstream ladder takes the call's remaining deadline: the handler calls `startCallDeadline()` once and passes it to every service call; the service runs each ladder through `retryWithinBudget(attempt, { deadline, operation, … })` — `withRetry` on what is left of the budget, keeping an origin's last 429 as the ladder's answer when the budget runs out — and passes the attempt `signal` to `fetchWithTimeout` and `Math.min(perAttemptMs, remainingMs)` as its timeout. A required step's expiry fails with the tool's declared retryable reason, never a bare `Timeout`
413
+ - [ ] Every upstream ladder takes the call's remaining deadline: the handler calls `startCallDeadline()` once and passes it to every service call; the service runs each ladder through `retryWithinBudget(attempt, { deadline, operation, … })` — `withRetry` on what is left of the budget, keeping an origin's last 429 as the ladder's answer when the budget runs out, and pacing a 429 whose `Retry-After` names no usable wait (`0`, a past date) like a header-less one — and passes the attempt `signal` to `fetchWithTimeout` and `Math.min(perAttemptMs, remainingMs)` as its timeout. A required step's expiry fails with the tool's declared retryable reason, never a bare `Timeout`
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.2-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.0-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
 
@@ -123,112 +123,32 @@ Agent-friendly output:
123
123
 
124
124
  ## Getting started
125
125
 
126
- ### Public Hosted Instance
126
+ Connect to the hosted instance, no install:
127
127
 
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
- }
128
+ ```sh
129
+ claude mcp add --transport http biorxiv-mcp-server https://biorxiv.caseyjhand.com/mcp
139
130
  ```
140
131
 
141
- ### Self-Hosted / Local
132
+ Or run it locally:
142
133
 
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
- }
134
+ ```sh
135
+ claude mcp add biorxiv-mcp-server -- npx -y @cyanheads/biorxiv-mcp-server
160
136
  ```
161
137
 
162
- Or with npx (no Bun required):
138
+ For other clients, add this to the MCP config file:
163
139
 
164
140
  ```json
165
141
  {
166
142
  "mcpServers": {
167
143
  "biorxiv-mcp-server": {
168
- "type": "stdio",
169
144
  "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"]
145
+ "args": ["-y", "@cyanheads/biorxiv-mcp-server"]
190
146
  }
191
147
  }
192
148
  }
193
149
  ```
194
150
 
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
- ```
151
+ 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
152
 
233
153
  ## Configuration
234
154
 
@@ -256,6 +176,16 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
256
176
 
257
177
  ### Local development
258
178
 
179
+ Requires [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
180
+
181
+ - **Clone and install:**
182
+
183
+ ```sh
184
+ git clone https://github.com/cyanheads/biorxiv-mcp-server.git
185
+ cd biorxiv-mcp-server && bun install
186
+ cp .env.example .env # optionally set BIORXIV_MAILTO
187
+ ```
188
+
259
189
  - **Build and run:**
260
190
 
261
191
  ```sh
@@ -279,11 +209,10 @@ See [`.env.example`](./.env.example) for the full list of optional overrides.
279
209
  ### Docker
280
210
 
281
211
  ```sh
282
- docker build -t biorxiv-mcp-server .
283
- docker run --rm -e BIORXIV_MAILTO=your@email.com -p 3010:3010 biorxiv-mcp-server
212
+ docker run --rm -e BIORXIV_MAILTO=your@email.com -p 3010:3010 ghcr.io/cyanheads/biorxiv-mcp-server:latest
284
213
  ```
285
214
 
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.
215
+ 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
216
 
288
217
  ## Project structure
289
218
 
@@ -0,0 +1,27 @@
1
+ ---
2
+ summary: "biorxiv_get_fulltext keeps short sections headed with a navigation word and renders lists nested in reference entries inline. A 429 with Retry-After 0 or a past date backs off like one with no header, and caller text echoed into notices is Markdown-escaped."
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.4.3 — 2026-10-25
8
+
9
+ ## Changed
10
+
11
+ - **Markdown escaping** — `biorxiv_search_preprints` (query echo line, empty-result notice), `biorxiv_list_recent` (category in its notices), and `biorxiv_get_published_version` (upstream error in the journal-DOI notice) escape caller- and upstream-supplied text with `escapeMarkdownInline`. A notice is the same Markdown string on both surfaces; the `queryEcho` object in `structuredContent` keeps the raw values.
12
+ - **Framework skills and `scripts/devcheck.ts`** synced from mcp-ts-core 0.13.16 — when a direct dependency's audit block also lists transitive copies, devcheck's security audit counts it as direct only if the copy installed at the project root falls inside a high or critical advisory's vulnerable range.
13
+
14
+ ## Fixed
15
+
16
+ - **`biorxiv_get_fulltext` short sections** — a section under 200 words whose heading holds a navigation word (`related`, `responses`, `share`, `terms`, …) is no longer dropped, as medRxiv `10.64898/2026.10.13.26365491` section 3.2 was (#80).
17
+ - **`biorxiv_get_fulltext` nested reference lists** — a list nested in a reference entry (an edited volume's editors) renders inline in page order instead of as numbered items or being deleted near the article's end; a nested list marked `duplicate` is dropped instead when it holds only list items and the rest of the entry already names every item, as whole words and in list order (#82).
18
+ - **Rate limiting** — a 429 with `Retry-After: 0` or an HTTP-date already past takes the exponential backoff of a header-less 429 on every upstream ladder, not four back-to-back requests (#81).
19
+
20
+ ## Dependencies
21
+
22
+ - `@cyanheads/mcp-ts-core` ^0.13.15 → ^0.13.16
23
+ - `defuddle` ^0.19.5 → ^0.19.6
24
+ - `linkedom` ^0.18.13 → ^0.18.14
25
+ - `@biomejs/biome` 2.5.15 → 2.6.3
26
+ - `ignore` ^7.0.13 → ^7.0.14
27
+ - `tsc-alias` ^1.9.8 → ^1.9.9
@@ -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).
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,oBAAoB;IAC1B,KAAK,EAAE,oBAAoB;IAC3B,KAAK,EAAE,C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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"}
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-get-published-version.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-published-version.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAiB,MAAM,+BAA+B,CAAC;AAmBhF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8TzC,CAAC"}
1
+ {"version":3,"file":"biorxiv-get-published-version.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-get-published-version.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAiB,MAAM,+BAA+B,CAAC;AAoBhF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8TzC,CAAC"}
@@ -35,6 +35,7 @@
35
35
  */
36
36
  import { tool, z } from '@cyanheads/mcp-ts-core';
37
37
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
38
+ import { escapeMarkdownInline } from '@cyanheads/mcp-ts-core/utils';
38
39
  import { getBiorxivApiService } from '../../../services/biorxiv/biorxiv-service.js';
39
40
  import { BIORXIV_DOI_PREFIXES, describeWait, escapeMarkdown, findRateLimit, firstHit, normalizeDoi, notFoundHint, startCallDeadline, } from '../../../services/shared.js';
40
41
  function errorMessage(reason) {
@@ -231,7 +232,7 @@ export const biorxivGetPublishedVersionTool = tool('biorxiv_get_published_versio
231
232
  // 4. Only the journal DOI is established. The journal name and publication
232
233
  // date come from the crosswalk alone, so they stay absent — never inferred.
233
234
  ctx.enrich.notice(byJournal?.status === 'rejected'
234
- ? `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.`
235
+ ? `The crosswalk lookup by journal DOI ${publishedDoi} failed (${escapeMarkdownInline(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.`
235
236
  : `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.`);
236
237
  const first = revisions[0];
237
238
  const latest = revisions.at(-1);
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,OAA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C,IAAI,CAAC,iBAAiB,cAAc,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;QACzE,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,cAAc,CAAC,MAAM,CAAC,2BAA2B,CAAC,EAAE,CAAC,CAAC;QAChG,IAAI,MAAM,CAAC,sCAAsC;YAC/C,KAAK,CAAC,IAAI,CACR,oBAAoB,cAAc,CAAC,MAAM,CAAC,sCAAsC,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"}
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,8BAA8B,CAAC;AACpE,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,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;;;;;;;;;EAyjBhC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0jBhC,CAAC"}
@@ -30,6 +30,7 @@
30
30
  */
31
31
  import { tool, z } from '@cyanheads/mcp-ts-core';
32
32
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
33
+ import { escapeMarkdownInline } from '@cyanheads/mcp-ts-core/utils';
33
34
  import { getBiorxivApiService } from '../../../services/biorxiv/biorxiv-service.js';
34
35
  import { describeWait, escapeMarkdown, findRateLimit, isValidCalendarDate, normalizeRorId, startCallDeadline, } from '../../../services/shared.js';
35
36
  const SERVERS = ['biorxiv', 'medrxiv'];
@@ -433,9 +434,10 @@ export const biorxivListRecentTool = tool('biorxiv_list_recent', {
433
434
  }
434
435
  // An ignored filter answered, so it is not in failed[] and a retry will not
435
436
  // change it — but its absent pagination entry needs the same explanation.
436
- if (ignored.length > 0) {
437
+ // Only a sent category can be ignored, so `category` is set whenever ignored[] is not empty.
438
+ if (ignored.length > 0 && category) {
437
439
  const labels = serverLabels(ignored);
438
- notices.push(`${labels} ignored the category filter "${category}" and returned its unfiltered listing, so its records were left out — only the filtered results are shown.`);
440
+ notices.push(`${labels} ignored the category filter "${escapeMarkdownInline(category)}" and returned its unfiltered listing, so its records were left out — only the filtered results are shown.`);
439
441
  }
440
442
  // One server's cursor overshot while the other still returned records. The
441
443
  // fully-empty branch below does not fire, so without this nothing qualifies
@@ -455,7 +457,7 @@ export const biorxivListRecentTool = tool('biorxiv_list_recent', {
455
457
  else {
456
458
  const filterDesc = [
457
459
  `dates ${input.start_date}–${input.end_date}`,
458
- category ? `category "${category}"` : null,
460
+ category ? `category "${escapeMarkdownInline(category)}"` : null,
459
461
  funder ? `funder ${funder}` : null,
460
462
  target !== 'both' ? `server "${target}"` : null,
461
463
  ]