@cyanheads/biorxiv-mcp-server 0.2.5 → 0.2.7

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.
package/AGENTS.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** biorxiv-mcp-server
4
- **Version:** 0.2.5
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
6
- **Engines:** Bun ≥1.3.0, Node ≥24.0.0
4
+ **Version:** 0.2.7
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.5`
6
+ **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
8
- **Zod:** ^4.4.3
8
+ **Zod:** ^4.6.5
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.
11
11
 
@@ -37,7 +37,8 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
37
37
  - **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
38
38
  - **Need input the caller didn't supply?** `return ctx.requestInput(...)` and read `ctx.inputs` when the handler is re-entered. Never `await` for user input mid-handler.
39
39
  - **Secrets in env vars only** — never hardcoded.
40
- - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed before moving on. The comment is for future readers — state the concrete changes, not the conversation that produced them.
40
+ - **Cut noise.** Add only what earns its place: no speculative generality, no guards for states the framework already prevents (Zod-validated params, classified errors), no abstraction until a third caller proves it, no option nothing sets.
41
+ - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
41
42
 
42
43
  ---
43
44
 
@@ -102,7 +103,21 @@ export function getServerConfig(): z.infer<typeof ServerConfigSchema> {
102
103
  }
103
104
  ```
104
105
 
105
- `parseEnvConfig` maps Zod schema paths → env var names so validation errors name the actual variable rather than the internal path.
106
+ `parseEnvConfig` maps Zod schema paths → env var names so validation errors name the actual variable rather than the internal path. It reads an empty string and an unsubstituted whole-value `${…}` placeholder (an MCPB optional field left blank) as unset, so an optional field stays `undefined` and a defaulted field takes its default — no per-field `z.preprocess` guard needed.
107
+
108
+ ### Session posture and shutdown
109
+
110
+ ```ts
111
+ await createApp({
112
+ sessionMode: 'stateless', // or { default: 'stateful', require: 'stateful' }
113
+ setup(core) { startMyWatcher(core.config); },
114
+ async teardown() { await stopMyWatcher(); },
115
+ });
116
+ ```
117
+
118
+ `sessionMode` declares the HTTP session posture in `src/` instead of leaving it to a deployment's `MCP_SESSION_MODE`, which still wins whenever it carries a meaningful value. This server declares `stateless` — no tool calls `ctx.requestInput`. Add `require: 'stateful'` if a tool ever asks the caller for input mid-handler: startup then fails with a `ConfigurationError` rather than serving a mode in which a 2025-era client can never answer the prompt. Stdio is never refused.
119
+
120
+ `teardown(core)` is the `setup()` counterpart — release a watcher, socket, or non-`unref()`'d timer there. It runs after the transport stops and before the logger closes, on every shutdown path. This server's services allocate none, so it declares no `teardown`.
106
121
 
107
122
  ---
108
123
 
@@ -129,7 +144,7 @@ Handlers receive a unified `ctx` object. Key properties:
129
144
 
130
145
  Handlers throw — the framework catches, classifies, and formats.
131
146
 
132
- **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive a typed `ctx.fail(reason, …)` keyed by the declared reason union. TypeScript catches `ctx.fail('typo')` at compile time, `data.reason` is auto-populated for observability, and the linter enforces conformance against the handler body. The `recovery` field is required (≥ 5 words, lint-validated). Spread `ctx.recoveryFor('reason')` into `data` to mirror the contract recovery onto the wire. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
147
+ **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive a typed `ctx.fail(reason, …)` keyed by the declared reason union. TypeScript catches `ctx.fail('typo')` at compile time, `data.reason` is auto-populated for observability, and the linter enforces conformance against the handler body. The `recovery` field is required (≥ 5 words, lint-validated). Spread `ctx.recoveryFor('reason')` into `data` to mirror the contract recovery onto the wire (`data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim). Every declared reason must be named by a literal `ctx.fail('<reason>'` or `ctx.recoveryFor('<reason>')` in its handler — `lint:mcp`'s `error-contract-unthrown` flags one that isn't. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
133
148
 
134
149
  ```ts
135
150
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
@@ -220,9 +235,9 @@ src/
220
235
 
221
236
  ## Skills
222
237
 
223
- Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry.
238
+ 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.
224
239
 
225
- **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
240
+ **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.
226
241
 
227
242
  Available skills:
228
243
 
@@ -240,12 +255,12 @@ Available skills:
240
255
  | `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
241
256
  | `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
242
257
  | `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
243
- | `devcheck` | Lint, format, typecheck, audit |
244
258
  | `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
245
- | `maintenance` | Investigate changelogs, adopt upstream changes, and sync skills after `bun update --latest` |
259
+ | `git-wrapup` | Land working-tree changes as a commit stack — version bump, changelog, verify, commit by concern, release commit on top. No tag, no push to main; opens the release PR when the project declares release PR mode |
260
+ | `release-pr-review` | Review pass on an open release PR — simplifier + correctness review, fixes as ordinary commits on top of the stack, PR body kept in sync. Release PR mode only |
261
+ | `release-and-publish` | Fast-forward merge (release PR mode) + tag + push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
262
+ | `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
246
263
  | `orchestrations` | Chain task skills into a gated multi-phase pipeline — build-out, QA-fix, update-ship — when you can spawn sub-agents |
247
- | `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
248
- | `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
249
264
  | `api-auth` | Auth modes, scopes, JWT/OAuth |
250
265
  | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
251
266
  | `api-config` | AppConfig, parseConfig, env vars |
@@ -262,7 +277,7 @@ Available skills:
262
277
  | `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
263
278
  | `techniques` | Catalog of response/data-shaping techniques — overflow handling, payload shaping, retrieval patterns |
264
279
 
265
- **Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
280
+ **Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `framework-skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
266
281
 
267
282
  When you complete a skill's checklist, check the boxes and add a completion timestamp at the end (e.g., `Completed: 2026-05-21`).
268
283
 
@@ -278,7 +293,8 @@ When you complete a skill's checklist, check the boxes and add a completion time
278
293
  | `bun run rebuild` | Clean + build |
279
294
  | `bun run clean` | Remove build artifacts |
280
295
  | `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
281
- | `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
296
+ | `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` |
297
+ | `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` |
282
298
  | `bun run tree` | Generate directory structure doc |
283
299
  | `bun run format` | Auto-fix formatting (safe fixes only) |
284
300
  | `bun run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
@@ -293,13 +309,17 @@ When you complete a skill's checklist, check the boxes and add a completion time
293
309
  | `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
294
310
  | `bun run release:github` | Create (or repair) a GitHub Release on the current version's annotated tag |
295
311
 
312
+ **CI is one file.** `.github/workflows/codeql.yml` is the only GitHub Actions workflow: CodeQL is GitHub-owned end to end, and the file runs only while the repo's CodeQL *default setup* is turned off. Verification — `devcheck`, tests, the release gates — runs locally; don't add a workflow that re-runs it.
313
+
296
314
  ---
297
315
 
298
316
  ## Bundling
299
317
 
300
- `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 (`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.
318
+ `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.
319
+
320
+ **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": ""`.
301
321
 
302
- **Adding an env var requires both files:** `server.json` (`environmentVariables[]`) and `manifest.json` (`mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies alignment.
322
+ **README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `framework-skills/polish-docs-meta/references/readme.md`.
303
323
 
304
324
  ---
305
325
 
@@ -324,12 +344,18 @@ security: false # optional — true ONLY for a source
324
344
 
325
345
  `agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
326
346
 
327
- **Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
347
+ **Section order:** the Keep a Changelog sequence — Added, Changed, Deprecated, Removed, Fixed, Security — then `Dependencies` last. Include only sections with entries — don't ship empty headers.
328
348
 
329
349
  **Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
330
350
 
331
351
  ---
332
352
 
353
+ ## Publishing
354
+
355
+ **Every release goes through a gated release PR** — `git-wrapup`'s "Release PR mode", mode `gated`. Three separate runs, never one: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the changelog entry plus a gates section); `release-pr-review` reviews and fixes on that branch (each fix an ordinary commit on top of the stack, pushed plainly — nothing already pushed is ever rewritten, so `main` keeps the record of what the review corrected — PR body kept in sync, one summary comment); then `release-and-publish` fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. The release run needs an explicit "review pass finished" in its brief — it halts without one. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
356
+
357
+ ---
358
+
333
359
  ## Imports
334
360
 
335
361
  ```ts
@@ -361,7 +387,7 @@ import { getEuropePmcService } from '@/services/europe-pmc/europe-pmc-service.js
361
387
  - [ ] `biorxiv_list_recent` with `server="both"` surfaces per-server pagination state, not a merged cursor
362
388
  - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
363
389
  - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
364
- - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
365
- - [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
366
- - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
390
+ - [ ] `.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
391
+ - [ ] `.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
392
+ - [ ] `.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`
367
393
  - [ ] `bun run devcheck` passes
package/CLAUDE.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** biorxiv-mcp-server
4
- **Version:** 0.2.5
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.12.3`
6
- **Engines:** Bun ≥1.3.0, Node ≥24.0.0
4
+ **Version:** 0.2.7
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.5`
6
+ **Engines:** Bun ≥1.4.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/server` ^2.0.0
8
- **Zod:** ^4.4.3
8
+ **Zod:** ^4.6.5
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.
11
11
 
@@ -37,7 +37,8 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
37
37
  - **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
38
38
  - **Need input the caller didn't supply?** `return ctx.requestInput(...)` and read `ctx.inputs` when the handler is re-entered. Never `await` for user input mid-handler.
39
39
  - **Secrets in env vars only** — never hardcoded.
40
- - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed before moving on. The comment is for future readers — state the concrete changes, not the conversation that produced them.
40
+ - **Cut noise.** Add only what earns its place: no speculative generality, no guards for states the framework already prevents (Zod-validated params, classified errors), no abstraction until a third caller proves it, no option nothing sets.
41
+ - **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
41
42
 
42
43
  ---
43
44
 
@@ -102,7 +103,21 @@ export function getServerConfig(): z.infer<typeof ServerConfigSchema> {
102
103
  }
103
104
  ```
104
105
 
105
- `parseEnvConfig` maps Zod schema paths → env var names so validation errors name the actual variable rather than the internal path.
106
+ `parseEnvConfig` maps Zod schema paths → env var names so validation errors name the actual variable rather than the internal path. It reads an empty string and an unsubstituted whole-value `${…}` placeholder (an MCPB optional field left blank) as unset, so an optional field stays `undefined` and a defaulted field takes its default — no per-field `z.preprocess` guard needed.
107
+
108
+ ### Session posture and shutdown
109
+
110
+ ```ts
111
+ await createApp({
112
+ sessionMode: 'stateless', // or { default: 'stateful', require: 'stateful' }
113
+ setup(core) { startMyWatcher(core.config); },
114
+ async teardown() { await stopMyWatcher(); },
115
+ });
116
+ ```
117
+
118
+ `sessionMode` declares the HTTP session posture in `src/` instead of leaving it to a deployment's `MCP_SESSION_MODE`, which still wins whenever it carries a meaningful value. This server declares `stateless` — no tool calls `ctx.requestInput`. Add `require: 'stateful'` if a tool ever asks the caller for input mid-handler: startup then fails with a `ConfigurationError` rather than serving a mode in which a 2025-era client can never answer the prompt. Stdio is never refused.
119
+
120
+ `teardown(core)` is the `setup()` counterpart — release a watcher, socket, or non-`unref()`'d timer there. It runs after the transport stops and before the logger closes, on every shutdown path. This server's services allocate none, so it declares no `teardown`.
106
121
 
107
122
  ---
108
123
 
@@ -129,7 +144,7 @@ Handlers receive a unified `ctx` object. Key properties:
129
144
 
130
145
  Handlers throw — the framework catches, classifies, and formats.
131
146
 
132
- **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive a typed `ctx.fail(reason, …)` keyed by the declared reason union. TypeScript catches `ctx.fail('typo')` at compile time, `data.reason` is auto-populated for observability, and the linter enforces conformance against the handler body. The `recovery` field is required (≥ 5 words, lint-validated). Spread `ctx.recoveryFor('reason')` into `data` to mirror the contract recovery onto the wire. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
147
+ **Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive a typed `ctx.fail(reason, …)` keyed by the declared reason union. TypeScript catches `ctx.fail('typo')` at compile time, `data.reason` is auto-populated for observability, and the linter enforces conformance against the handler body. The `recovery` field is required (≥ 5 words, lint-validated). Spread `ctx.recoveryFor('reason')` into `data` to mirror the contract recovery onto the wire (`data.recovery.hint`, mirrored into `content[]` text unless the message already contains it verbatim). Every declared reason must be named by a literal `ctx.fail('<reason>'` or `ctx.recoveryFor('<reason>')` in its handler — `lint:mcp`'s `error-contract-unthrown` flags one that isn't. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`, `RequestCancelled`) bubble freely and don't need declaring.
133
148
 
134
149
  ```ts
135
150
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
@@ -220,9 +235,9 @@ src/
220
235
 
221
236
  ## Skills
222
237
 
223
- Skills are modular instructions in `skills/` at the project root. Read them directly when a task matches — e.g., `skills/add-tool/SKILL.md` when adding a tool. `bun run list-skills` prints the full registry.
238
+ 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.
224
239
 
225
- **Agent skill directory:** Copy skills into the directory your agent discovers (Claude Code: `.claude/skills/`, others: equivalent). Skills then load as context without referencing `skills/` paths. After framework updates, run the `maintenance` skill — Phase B re-syncs the agent directory.
240
+ **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.
226
241
 
227
242
  Available skills:
228
243
 
@@ -240,12 +255,12 @@ Available skills:
240
255
  | `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
241
256
  | `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
242
257
  | `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
243
- | `devcheck` | Lint, format, typecheck, audit |
244
258
  | `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
245
- | `maintenance` | Investigate changelogs, adopt upstream changes, and sync skills after `bun update --latest` |
259
+ | `git-wrapup` | Land working-tree changes as a commit stack — version bump, changelog, verify, commit by concern, release commit on top. No tag, no push to main; opens the release PR when the project declares release PR mode |
260
+ | `release-pr-review` | Review pass on an open release PR — simplifier + correctness review, fixes as ordinary commits on top of the stack, PR body kept in sync. Release PR mode only |
261
+ | `release-and-publish` | Fast-forward merge (release PR mode) + tag + push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
262
+ | `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
246
263
  | `orchestrations` | Chain task skills into a gated multi-phase pipeline — build-out, QA-fix, update-ship — when you can spawn sub-agents |
247
- | `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
248
- | `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
249
264
  | `api-auth` | Auth modes, scopes, JWT/OAuth |
250
265
  | `api-canvas` | DataCanvas: register tabular data, run SQL, export, plus the `spillover()` helper for big result sets — Tier 3 opt-in |
251
266
  | `api-config` | AppConfig, parseConfig, env vars |
@@ -262,7 +277,7 @@ Available skills:
262
277
  | `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
263
278
  | `techniques` | Catalog of response/data-shaping techniques — overflow handling, payload shaping, retrieval patterns |
264
279
 
265
- **Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
280
+ **Chaining skills into pipelines.** When the user wants a multi-phase effort — build this server out, QA-and-fix the surface, update-and-ship — *and you can spawn sub-agents*, `framework-skills/orchestrations/SKILL.md` sequences the task skills above into a gated pipeline with verification at each step. Read it to drive the run. Optional: skip it if you can't orchestrate sub-agents, and ignore it entirely if you were *spawned* as one — you've already been scoped to a single phase.
266
281
 
267
282
  When you complete a skill's checklist, check the boxes and add a completion timestamp at the end (e.g., `Completed: 2026-05-21`).
268
283
 
@@ -278,7 +293,8 @@ When you complete a skill's checklist, check the boxes and add a completion time
278
293
  | `bun run rebuild` | Clean + build |
279
294
  | `bun run clean` | Remove build artifacts |
280
295
  | `bun run devcheck` | Lint + format + typecheck + security + changelog sync |
281
- | `bun run audit:refresh` | Delete `bun.lock`, reinstall, and re-run `bun audit`. Use when `devcheck` flags a transitive advisory — Bun's `update` is sticky on transitive resolutions, so the advisory may be a stale-lockfile false positive. If it survives the refresh, it's real. |
296
+ | `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` |
297
+ | `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` |
282
298
  | `bun run tree` | Generate directory structure doc |
283
299
  | `bun run format` | Auto-fix formatting (safe fixes only) |
284
300
  | `bun run format:unsafe` | Also apply Biome's unsafe autofixes — review the diff; they can change behavior |
@@ -293,13 +309,17 @@ When you complete a skill's checklist, check the boxes and add a completion time
293
309
  | `bun run changelog:check` | Verify `CHANGELOG.md` is in sync (used by devcheck) |
294
310
  | `bun run release:github` | Create (or repair) a GitHub Release on the current version's annotated tag |
295
311
 
312
+ **CI is one file.** `.github/workflows/codeql.yml` is the only GitHub Actions workflow: CodeQL is GitHub-owned end to end, and the file runs only while the repo's CodeQL *default setup* is turned off. Verification — `devcheck`, tests, the release gates — runs locally; don't add a workflow that re-runs it.
313
+
296
314
  ---
297
315
 
298
316
  ## Bundling
299
317
 
300
- `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 (`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.
318
+ `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.
319
+
320
+ **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": ""`.
301
321
 
302
- **Adding an env var requires both files:** `server.json` (`environmentVariables[]`) and `manifest.json` (`mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies alignment.
322
+ **README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `framework-skills/polish-docs-meta/references/readme.md`.
303
323
 
304
324
  ---
305
325
 
@@ -324,12 +344,18 @@ security: false # optional — true ONLY for a source
324
344
 
325
345
  `agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
326
346
 
327
- **Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
347
+ **Section order:** the Keep a Changelog sequence — Added, Changed, Deprecated, Removed, Fixed, Security — then `Dependencies` last. Include only sections with entries — don't ship empty headers.
328
348
 
329
349
  **Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
330
350
 
331
351
  ---
332
352
 
353
+ ## Publishing
354
+
355
+ **Every release goes through a gated release PR** — `git-wrapup`'s "Release PR mode", mode `gated`. Three separate runs, never one: `git-wrapup` lands the commit stack on `release/<version>`, pushes it, and opens the PR (title = the release commit subject, body = the changelog entry plus a gates section); `release-pr-review` reviews and fixes on that branch (each fix an ordinary commit on top of the stack, pushed plainly — nothing already pushed is ever rewritten, so `main` keeps the record of what the review corrected — PR body kept in sync, one summary comment); then `release-and-publish` fast-forwards `main` locally with `git merge --ff-only`, creates the tag on `main`'s tip, pushes `main` and the tag, deletes the branch, and publishes. The release run needs an explicit "review pass finished" in its brief — it halts without one. **Never merge through the GitHub UI or `gh pr merge`**: squash and rebase-merge are disabled in the repo settings because both rewrite the stack (rebase-merge also strips the SSH signatures), and a merge commit breaks the linear history.
356
+
357
+ ---
358
+
333
359
  ## Imports
334
360
 
335
361
  ```ts
@@ -361,7 +387,7 @@ import { getEuropePmcService } from '@/services/europe-pmc/europe-pmc-service.js
361
387
  - [ ] `biorxiv_list_recent` with `server="both"` surfaces per-server pagination state, not a merged cursor
362
388
  - [ ] Registered in `createApp()` arrays (directly or via barrel exports)
363
389
  - [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
364
- - [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
365
- - [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
366
- - [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
390
+ - [ ] `.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
391
+ - [ ] `.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
392
+ - [ ] `.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`
367
393
  - [ ] `bun run devcheck` passes
package/Dockerfile CHANGED
@@ -3,8 +3,18 @@
3
3
  #
4
4
  # This stage installs all dependencies (including dev), builds the TypeScript
5
5
  # source code into JavaScript, and prepares the production assets.
6
+ #
7
+ # Pinned to $BUILDPLATFORM rather than the target platform: `bun run build` emits
8
+ # JavaScript, and only `dist/` crosses into the production stage, which runs its
9
+ # own target-arch install. Built for the target instead, the non-native leg of a
10
+ # `--platform linux/amd64,linux/arm64` build runs under QEMU, where bun >= 1.4
11
+ # aborts with a JavaScriptCore allocator assertion and fails the multi-arch push.
12
+ #
13
+ # The constraint this assumes: the build stage produces platform-independent
14
+ # output. A stage that compiles a native addon needs the target-arch toolchain
15
+ # and cannot cross-compile this way — drop the flag there.
6
16
  # ==============================================================================
7
- FROM oven/bun:1.4.0 AS build
17
+ FROM --platform=$BUILDPLATFORM oven/bun:1.4.0 AS build
8
18
 
9
19
  WORKDIR /usr/src/app
10
20
 
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.2.5-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.0.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.0-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.2.7-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.0.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.0-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -19,11 +19,19 @@
19
19
 
20
20
  </div>
21
21
 
22
+ <div align="center">
23
+
24
+ **Public Hosted Server:** [https://biorxiv.caseyjhand.com/mcp](https://biorxiv.caseyjhand.com/mcp)
25
+
26
+ </div>
27
+
22
28
  ---
23
29
 
24
- ## Tools
30
+ ## Overview
31
+
32
+ bioRxiv and medRxiv preprint metadata and full text, searchable via EuropePMC. Fetch preprints by DOI, browse by date interval or subject category, search by keyword and author, resolve journal-publication crosswalks, and extract full text from the rendered article page, from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
25
33
 
26
- Six tools for working with bioRxiv and medRxiv preprint data:
34
+ ### Tools
27
35
 
28
36
  | Tool | Description |
29
37
  |:---|:---|
@@ -34,101 +42,103 @@ Six tools for working with bioRxiv and medRxiv preprint data:
34
42
  | `biorxiv_get_fulltext` | Retrieve a preprint's full text as best-effort Markdown extracted from its rendered HTML article page |
35
43
  | `biorxiv_list_categories` | List valid subject category strings for bioRxiv and medRxiv |
36
44
 
37
- ### `biorxiv_get_preprint`
45
+ ## Capability reference
38
46
 
39
- Fetch preprint metadata by DOI — all revisions in one call.
47
+ ### `biorxiv_get_preprint` <sub>tool</sub>
40
48
 
41
49
  - Batch fetch up to 10 DOIs in a single request
42
- - Each DOI returns the full revision history in `collection[]` — one API call per DOI, no enumeration loop
43
- - Includes title, authors, abstract, category, license, JATS XML full-text link (`jatsxml`), and published journal DOI when the preprint has been accepted
44
- - Scope to `biorxiv`, `medrxiv`, or `both`; when `both`, each DOI fans out in parallel and partial failures report per-DOI in `failed[]`
45
- - Each `failed[]` entry carries a `reason` (`not_found`, `invalid_doi_format`, `upstream_unavailable`, `rate_limited`) and a `retryable` flag — a DOI is only reported as not found when every attempted server answered
46
- - A lookup the origin rate-limited (HTTP 429) reports as `rate_limited` rather than folding into `upstream_unavailable`, and carries `retryAfter` — the wait in seconds `api.biorxiv.org` asked for
50
+ - Each DOI returns its full revision history in `revisions[]` — one API call per DOI, no enumeration loop
51
+ - Includes title, authors, abstract, category, license, JATS XML full-text link (`jatsxmlUrl`), and published journal DOI (`publishedJournalDoi`) once accepted
52
+ - Scope to `biorxiv`, `medrxiv`, or `both` (default `both`); when `both`, each DOI fans out in parallel and partial failures report per-DOI in `failed[]`
53
+ - Each `failed[]` entry carries a `reason` (`not_found`, `invalid_doi_format`, `upstream_unavailable`, `rate_limited`) and a `retryable` flag — a DOI is only reported `not_found` when every attempted server answered
54
+ - A rate-limited lookup (HTTP 429) reports `reason: "rate_limited"` rather than folding into `upstream_unavailable`, carrying `retryAfter` — the wait in seconds `api.biorxiv.org` asked for
47
55
 
48
56
  ---
49
57
 
50
- ### `biorxiv_list_recent`
51
-
52
- Page through preprints in a date interval.
58
+ ### `biorxiv_list_recent` <sub>tool</sub>
53
59
 
54
- - Server-side category filtering via `?category=…` — pass a value from `biorxiv_list_categories`
60
+ - Optional server-side category filter — pass a value from `biorxiv_list_categories`
55
61
  - Fixed page size of 30 (API constraint); advance with integer `cursor` (0, 30, 60, …)
56
- - Response includes `total` count per server for calculating remaining pages
57
- - When `server="both"`, each server paginates independently; response surfaces per-server pagination state (`{ biorxiv: { cursor, total }, medrxiv: { cursor, total } }`)
58
- - A server whose cursor is past its last page is marked `exhausted: true` — the API reports `total: 0` for an out-of-range cursor, so that count is an artifact rather than the interval total
59
- - One server not answering under `server="both"` is named in `failed[]` rather than dropped; the other server's page is still returned, and a non-empty `failed[]` marks the result set as partial
60
- - Every attempted server failing raises a retryable `upstream_unavailable` (or `rate_limited`) error instead of returning an empty page — nothing answered, so an empty interval was never established
62
+ - Response includes a `total` count per server; a cursor past the last page is marked `exhausted: true` rather than reading as zero results in the interval
63
+ - When `server="both"` (default), per-server pagination state is independent (`{ biorxiv: { cursor, total }, medrxiv: { cursor, total } }`); one server not answering is named in `failed[]` while the other's page still returns
64
+ - Every attempted server failing raises a retryable `upstream_unavailable` (or `rate_limited`) error instead of an empty page
61
65
 
62
66
  ---
63
67
 
64
- ### `biorxiv_search_preprints`
68
+ ### `biorxiv_search_preprints` <sub>tool</sub>
65
69
 
66
- Keyword and/or author search with relevance ranking.
67
-
68
- - EuropePMC powers relevance ranking (indexes new preprints within 1–2 days of posting); bioRxiv/medRxiv API provides canonical metadata enrichment
69
- - Optional `author` maps to an EuropePMC `AUTH:"…"` field query, ANDed with the keyword query — supply `query`, `author`, or both
70
- - Covers both servers by default; scope down with `server`
71
- - Optional date range filters (`date_from`, `date_to`)
72
- - Enriched results carry the same latest-revision fields `biorxiv_get_preprint` returns — including `type`, `license`, `funder`, and `authorCorrespondingInstitution`
73
- - Enrichment failures degrade gracefully to EuropePMC-only metadata, surfaced via `partial_results` and a per-record `enrichment_error` (`service_error`, `rate_limited`, or `not_found`)
74
- - A EuropePMC rate limit (HTTP 429) raises a retryable `rate_limited` error carrying the origin's `Retry-After` wait — the search is the primary call and has no metadata to fall back on, unlike the enrichment step
70
+ - Query and/or author required (author maps to an EuropePMC `AUTH:"…"` field query, ANDed with the keyword query); optional `date_from`/`date_to` range and `server` scope (default `both`)
71
+ - Up to 100 results per page (default 25); `cursor_mark` pages through the same ranked list
72
+ - EuropePMC powers relevance ranking (indexes new preprints within 1–2 days of posting); the bioRxiv/medRxiv API enriches matches with canonical metadata
73
+ - Enriched results carry the same latest-revision fields as `biorxiv_get_preprint`, including `type`, `license`, `funder`, and `authorCorrespondingInstitution`
74
+ - Enrichment failures degrade to EuropePMC-only metadata, surfaced via `partial_results` and a per-record `enrichment_error` (`service_error`, `rate_limited`, or `not_found`)
75
+ - A EuropePMC rate limit (HTTP 429) raises a retryable `rate_limited` error carrying the origin's `Retry-After` wait — the search itself has no metadata to fall back on, unlike enrichment
75
76
 
76
77
  ---
77
78
 
78
- ### `biorxiv_get_published_version`
79
-
80
- Resolve a preprint DOI to its journal publication crosswalk.
79
+ ### `biorxiv_get_published_version` <sub>tool</sub>
81
80
 
82
- - Uses the `/pubs/{server}/{doi}` endpoint for richer metadata than the `publishedJournalDoi` field in `biorxiv_get_preprint`
83
- - Returns journal DOI, journal name, published date, and corresponding author institution
84
- - Use when the preprint's `publishedJournalDoi` field is present and you need the full crosswalk record
85
- - Scope to `biorxiv`, `medrxiv`, or `both`; `both` is the default because the two servers share the `10.1101/` DOI prefix, and the output `server` field names the one that answered
86
- - No server answering raises a retryable `upstream_unavailable`, or `rate_limited` with the origin's wait when the failure was an HTTP 429 — never `doi_not_found`, which would assert an absence nothing established
81
+ - Uses the `/pubs/{server}/{doi}` endpoint for richer metadata than the `publishedJournalDoi` field on `biorxiv_get_preprint`
82
+ - Returns journal DOI, journal name, published date, and corresponding-author institution; the output `server` field names which server answered (never `"both"`)
83
+ - Scope to `biorxiv`, `medrxiv`, or `both` (default `both`) — the two servers share the `10.1101/` DOI prefix, so a DOI alone doesn't identify one
84
+ - No server answering raises a retryable `upstream_unavailable`, or `rate_limited` with the origin's wait on an HTTP 429 — never `doi_not_found`, which would assert an absence nothing established
87
85
 
88
86
  ---
89
87
 
90
- ### `biorxiv_get_fulltext`
91
-
92
- Retrieve a preprint's full text as best-effort Markdown.
88
+ ### `biorxiv_get_fulltext` <sub>tool</sub>
93
89
 
94
90
  - Fetches the rendered HTML article page (`www.{server}.org/content/{doi}v{N}.full`) and extracts Markdown — there is no keyless JATS source
95
- - Resolves the latest version via the details API first, for the URL version and clean not-found handling
96
- - Scope to `biorxiv`, `medrxiv`, or `both`; `both` is the default because the two servers share the `10.1101/` DOI prefix. Only the DOI resolution fans out — the full-text fetch targets the single server that answered, named in the output `server` field
97
- - Long articles page via `offset`/`limit` character chunking (`totalChars`, `remainingChars`, `hasMore`); the extracted article is cached per version, so paging costs one origin fetch rather than one per chunk
91
+ - Resolves the latest version via the details API first; only DOI resolution fans out across `biorxiv`/`medrxiv`/`both` (default `both`) — the full-text fetch itself targets whichever server answered, named in the output `server` field
92
+ - Long articles page via `offset`/`limit` character chunking (default `limit` 20,000, max 50,000); response reports `totalChars`, `remainingChars`, and `hasMore`, and the extracted article is cached per version so paging costs one origin fetch
98
93
  - PDF-only preprints and blocked/challenge pages return a typed `fulltext_unavailable` error routing to `biorxiv_get_preprint`
99
- - An origin rate limit (HTTP 429) returns a retryable `rate_limited` error carrying the origin's `Retry-After` wait, rather than a bare fetch failure. Both origins this tool touches can hit it — the article page during the full-text fetch, `api.biorxiv.org` during version resolution — and the recovery hint names which of them are limiting, since `biorxiv_get_preprint` is only a useful fallback while the metadata origin is answering
94
+ - An origin rate limit (HTTP 429) — on either the article-page host or `api.biorxiv.org` during resolution — returns a retryable `rate_limited` error carrying the origin's `Retry-After` wait, with the recovery hint naming which origin is limiting
100
95
 
101
96
  ---
102
97
 
103
- ### `biorxiv_list_categories`
104
-
105
- Return the static subject category taxonomy for both servers.
98
+ ### `biorxiv_list_categories` <sub>tool</sub>
106
99
 
107
100
  - No API call — hardcoded static list (~30 bioRxiv + ~50 medRxiv categories)
108
101
  - Use to validate category strings before passing to `biorxiv_list_recent`
109
102
 
110
103
  ## Features
111
104
 
112
- Built on [`@cyanheads/mcp-ts-core`](https://www.npmjs.com/package/@cyanheads/mcp-ts-core):
113
-
114
- - Declarative tool definitions — single file per tool, framework handles registration and validation
115
- - Unified error handling across all tools
116
- - Pluggable auth (`none`, `jwt`, `oauth`)
117
- - Swappable storage backends: `in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`
118
- - Structured logging with optional OpenTelemetry tracing
119
- - STDIO and Streamable HTTP transports
105
+ Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): stdio and Streamable HTTP transports, pluggable auth (`none` / `jwt` / `oauth`), swappable storage (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`), structured logging with optional OpenTelemetry tracing.
120
106
 
121
107
  bioRxiv-specific:
122
108
 
123
- - `BiorxivApiService` wraps `api.biorxiv.org` — details, publications, and crosswalk endpoints with retry and exponential backoff. An origin rate limit (HTTP 429) is classified as a retryable `rate_limited` error carrying the parsed `Retry-After` wait; the upstream response body never reaches the error payload
124
- - `EuropePmcService` wraps the EuropePMC search endpoint for relevance-ranked keyword and/or author results. An origin rate limit (HTTP 429) is classified the same way as the JSON API's — a retryable `rate_limited` error carrying the parsed `Retry-After` wait, with the upstream response body kept out of the error payload
109
+ - `BiorxivApiService` wraps `api.biorxiv.org` — details, publications, and crosswalk endpoints with retry and exponential backoff; a 429 is classified as a retryable `rate_limited` error carrying the parsed `Retry-After` wait, with the upstream response body kept out of the payload
110
+ - `EuropePmcService` wraps the EuropePMC search endpoint for relevance-ranked keyword and/or author results, classified the same way on a 429
125
111
  - `BiorxivFullTextService` fetches and extracts Markdown from the rendered HTML article pages on `www.biorxiv.org` / `www.medrxiv.org` — a distinct origin from the JSON API
126
112
  - Two-server fan-out via `Promise.allSettled` — both `biorxiv` and `medrxiv` queried in parallel when `server="both"`, results merged and deduplicated by DOI
127
113
  - Polite `User-Agent` header including a mailto address (`BIORXIV_MAILTO` env var) per Cold Spring Harbor Lab API guidelines
128
114
  - Pairs with **pubmed-mcp-server** (post-publication), **openalex-mcp-server** (citation analytics), and **crossref-mcp-server** (DOI metadata)
129
115
 
116
+ Agent-friendly output:
117
+
118
+ - Graceful partial failure — per-DOI and per-server failures land in `failed[]` with a typed `reason` and `retryable` flag instead of aborting the whole batch or listing call
119
+ - Rate-limit transparency — a 429 from any upstream surfaces as `reason: "rate_limited"` carrying the origin's parsed `retryAfter` wait, distinguished from a generic `upstream_unavailable`
120
+ - Discriminated enrichment outputs — `biorxiv_search_preprints` results carry `enriched` plus a typed `enrichment_error` (`service_error` / `rate_limited` / `not_found`) so callers branch on data, not string parsing
121
+ - Paging and pagination state — `exhausted` cursors are flagged as an out-of-range artifact rather than an empty interval, and `biorxiv_get_fulltext` reports `totalChars` / `remainingChars` / `hasMore` for chunked reads
122
+
130
123
  ## Getting started
131
124
 
125
+ ### Public Hosted Instance
126
+
127
+ A public instance is available at `https://biorxiv.caseyjhand.com/mcp` — no installation required. Point any MCP client at it via Streamable HTTP:
128
+
129
+ ```json
130
+ {
131
+ "mcpServers": {
132
+ "biorxiv-mcp-server": {
133
+ "type": "streamable-http",
134
+ "url": "https://biorxiv.caseyjhand.com/mcp"
135
+ }
136
+ }
137
+ }
138
+ ```
139
+
140
+ ### Self-Hosted / Local
141
+
132
142
  Add the following to your MCP client configuration file.
133
143
 
134
144
  ```json
@@ -190,7 +200,7 @@ MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 BIORXIV_MAILTO=your@email.com bun run
190
200
 
191
201
  ### Prerequisites
192
202
 
193
- - [Bun v1.3.0](https://bun.sh/) or higher (or Node.js v24+).
203
+ - [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
194
204
 
195
205
  ### Installation
196
206
 
@@ -238,6 +248,8 @@ All configuration is validated at startup via Zod schemas in `src/config/server-
238
248
  | `LOGS_DIR` | Directory for log files (Node.js only). | `<project-root>/logs` |
239
249
  | `OTEL_ENABLED` | Enable OpenTelemetry instrumentation. | `false` |
240
250
 
251
+ See [`.env.example`](./.env.example) for the full list of optional overrides.
252
+
241
253
  ## Running the server
242
254
 
243
255
  ### Local development
@@ -294,7 +306,7 @@ See [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rule
294
306
 
295
307
  ## Contributing
296
308
 
297
- Issues and pull requests are welcome. Run checks and tests before submitting:
309
+ Issues are welcome. Run checks and tests before submitting:
298
310
 
299
311
  ```sh
300
312
  bun run devcheck
@@ -0,0 +1,11 @@
1
+ ---
2
+ summary: "Fixes the GHCR build stage that made 0.2.5 ship with no container image — this is the first tagged image, carrying everything 0.2.5 shipped elsewhere"
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.6 — 2026-08-25
8
+
9
+ ## Fixed
10
+
11
+ - **Docker build stage no longer fails under emulation** — the build stage now pins `FROM --platform=$BUILDPLATFORM oven/bun:1.4.0 AS build` instead of building for the target platform. On an arm64 build host, the `linux/amd64` leg previously ran under QEMU, where Bun 1.4.0's JavaScriptCore aborted with a spurious MemoryExhaustion assertion during `bun run build`; the stage only emits platform-independent JavaScript and `dist/` is the sole artifact copied forward, so it never needed emulation. This is what blocked 0.2.5's GHCR publish — that release has no image on GHCR. `0.2.6` is the first tagged image, and it also carries `@cyanheads/mcp-ts-core` 0.12.3 and the other 0.2.5 changes that published everywhere else.
@@ -0,0 +1,34 @@
1
+ ---
2
+ summary: "Adopts mcp-ts-core 0.13.5 — date-key parameter aliases, richer tool-error text, and a stateless HTTP session default"
3
+ breaking: false
4
+ security: false
5
+ ---
6
+
7
+ # 0.2.7 — 2026-09-19
8
+
9
+ ## Added
10
+
11
+ - **`inputAliases`** lets `biorxiv_list_recent` accept `date_from`/`date_to` and `biorxiv_search_preprints` accept `start_date`/`end_date`, so a caller reusing the sibling tool's field names still succeeds. Framework 0.13.4 also rewrites a case-style variant of any declared key to its canonical form and repairs a JSON-stringified array after a failed parse. Advertised `inputSchema` is byte-identical to 0.2.6.
12
+ - `.github/workflows/codeql.yml` — the fleet-standard CodeQL static-analysis workflow.
13
+
14
+ ## Changed
15
+
16
+ - **Tool-argument rejections** return `isError` with `structuredContent.error.code` `-32602`; the text carries a `Recovery:` hint and `data.reason: "invalid_arguments"`, and an omitted required field now reads as missing rather than a generic type error (mcp-ts-core 0.12.7, 0.13.3).
17
+ - **Tool error text** closes with `(reason <reason>)`, plus ` · not retryable` when `data.retryable` is false (0.13.5).
18
+ - **Upstream 5xx handling** — an HTTP 500 now retries as `ServiceUnavailable`; a 501 does not retry (0.12.4).
19
+ - **Session mode** — `src/index.ts` now declares `createApp({ sessionMode: 'stateless' })`, so an HTTP source run with `MCP_SESSION_MODE` unset serves stateless instead of resolving `auto` to stateful; an explicitly set `MCP_SESSION_MODE` still overrides it. The Docker image and `.env.example` already pinned `stateless`.
20
+ - **Env config** — every server env var now reads an empty or unsubstituted `${…}` value as unset (0.13.0), not just the three fields that previously carried a placeholder guard.
21
+ - Graceful shutdown — `SIGTERM`/`SIGINT` now end the process explicitly (0.13.1).
22
+ - Server `instructions` rewritten to name `biorxiv_get_fulltext`.
23
+ - Repo tooling — Bun engines floor raised to `>=1.4.0`; skill tree moved `skills/` → `framework-skills/`; `.env.example` corrections; issue-form length budgets tightened.
24
+
25
+ ## Dependencies
26
+
27
+ - `@cyanheads/mcp-ts-core` ^0.12.3 → ^0.13.5
28
+ - `zod` ^4.4.3 → ^4.6.5
29
+ - `defuddle` ^0.19.2 → ^0.19.3
30
+ - `@biomejs/biome` 2.5.10 → 2.5.14
31
+ - `@types/node` 26.2.0 → 26.6.1
32
+ - `ignore` ^7.0.6 → ^7.0.9
33
+ - `tsc-alias` ^1.9.2 → ^1.9.5
34
+ - `vitest` ^4.1.11 → ^5.0.1
@@ -6,8 +6,8 @@
6
6
 
7
7
  # Required. One-line GitHub Release-style headline. 350 character cap — a
8
8
  # ceiling, not a target. Default short and scannable. Don't pad, don't stitch
9
- # unrelated changes with commas/semicolons into an inventory — pick the
10
- # headline, like a tag's theme line. Quotes required: unquoted YAML treats
9
+ # unrelated changes with commas/semicolons into an inventory — pick the one
10
+ # headline the release is about. Quotes required: unquoted YAML treats
11
11
  # `: ` inside the value as a key separator and fails GitHub's strict parser.
12
12
  summary: ""
13
13
 
@@ -117,30 +117,13 @@ security: false
117
117
  in that unrelated item's metadata.
118
118
 
119
119
  TAG ANNOTATIONS — the annotated tag body renders as the GitHub Release body
120
- via `gh release create --notes-from-tag`. The tag is a derivative of this
121
- changelog entry — a condensed, scannable version, not a copy. Format:
122
-
123
- <theme — omit version number, GitHub prepends it>
124
- ← blank line
125
- <1-2 sentence context: what this release does>
126
- ← blank line
127
- Dependency bumps: ← section header
128
- ← blank line
129
- - `@cyanheads/mcp-ts-core` ^0.9.1 → ^0.9.6 ← bullet
130
- ← blank line
131
- Changed: ← only sections with entries
132
- ← blank line
133
- - `format()` output includes `query` in text mode
134
- ← blank line
135
- Added:
136
- ← blank line
137
- - `manifest.json` scaffolded for MCPB bundle support
138
- - Install badges (Claude Desktop, Cursor, VS Code)
139
- ← blank line
140
- <N> tests pass; `bun run devcheck` clean. ← footer
141
-
142
- Never a flat comma-separated string. Always structured markdown with
143
- sections. The tag must scan well as a rendered GitHub Release page.
120
+ via `gh release create --notes-from-tag`. It is a condensed digest of this
121
+ entry, never a copy, and its format is owned by the `release-and-publish`
122
+ skill (step 4, "Create the annotated tag"): a short subject line without the
123
+ version, flat headline bullets — no Keep-a-Changelog section headers, no
124
+ gates line — at most one deps line, issue backlinks, and the changelog link
125
+ last. In release-PR mode the `git-wrapup` skill authors those bullets as the
126
+ PR body's `## Changes` and the tag copies them.
144
127
  -->
145
128
 
146
129
  ## Added
@@ -2,16 +2,18 @@
2
2
  * @fileoverview Server-specific configuration for biorxiv-mcp-server. Parses
3
3
  * domain env vars (BIORXIV_MAILTO, BIORXIV_API_BASE_URL, EUROPEPMC_API_BASE_URL,
4
4
  * BIORXIV_WEB_BASE_URL, MEDRXIV_WEB_BASE_URL) separately from the framework's
5
- * core config. Lazy-parsed on first access.
5
+ * core config. Lazy-parsed on first access. `parseEnvConfig` reads an empty
6
+ * value or an unsubstituted MCPB `${user_config.X}` placeholder as unset, so a
7
+ * blank optional field falls through to its default.
6
8
  * @module config/server-config
7
9
  */
8
10
  import { z } from '@cyanheads/mcp-ts-core';
9
11
  declare const ServerConfigSchema: z.ZodObject<{
10
- mailto: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
- apiBaseUrl: z.ZodDefault<z.ZodString>;
12
- europePmcBaseUrl: z.ZodDefault<z.ZodString>;
13
- biorxivWebBaseUrl: z.ZodPreprocess<z.ZodDefault<z.ZodString>>;
14
- medrxivWebBaseUrl: z.ZodPreprocess<z.ZodDefault<z.ZodString>>;
12
+ mailto: z.ZodOptional<z.ZodEmail>;
13
+ apiBaseUrl: z.ZodDefault<z.ZodURL>;
14
+ europePmcBaseUrl: z.ZodDefault<z.ZodURL>;
15
+ biorxivWebBaseUrl: z.ZodDefault<z.ZodURL>;
16
+ medrxivWebBaseUrl: z.ZodDefault<z.ZodURL>;
15
17
  }, z.core.$strip>;
16
18
  export type ServerConfig = z.infer<typeof ServerConfigSchema>;
17
19
  export declare function getServerConfig(): ServerConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAW3C,QAAA,MAAM,kBAAkB;;;;;;iBAsBtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,wBAAgB,eAAe,IAAI,YAAY,CAS9C;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAExC"}
1
+ {"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;;;;;iBAwBtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAI9D,wBAAgB,eAAe,IAAI,YAAY,CAS9C;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAExC"}
@@ -2,34 +2,32 @@
2
2
  * @fileoverview Server-specific configuration for biorxiv-mcp-server. Parses
3
3
  * domain env vars (BIORXIV_MAILTO, BIORXIV_API_BASE_URL, EUROPEPMC_API_BASE_URL,
4
4
  * BIORXIV_WEB_BASE_URL, MEDRXIV_WEB_BASE_URL) separately from the framework's
5
- * core config. Lazy-parsed on first access.
5
+ * core config. Lazy-parsed on first access. `parseEnvConfig` reads an empty
6
+ * value or an unsubstituted MCPB `${user_config.X}` placeholder as unset, so a
7
+ * blank optional field falls through to its default.
6
8
  * @module config/server-config
7
9
  */
8
10
  import { z } from '@cyanheads/mcp-ts-core';
9
11
  import { parseEnvConfig } from '@cyanheads/mcp-ts-core/config';
10
- /**
11
- * An unsubstituted MCPB placeholder (`${user_config.X}`) reads back as a literal
12
- * string when the user leaves the optional field blank. Strip it to undefined so
13
- * the field falls through to its default instead of failing format validation.
14
- */
15
- const stripMcpbPlaceholder = (v) => typeof v === 'string' && v.startsWith('${') ? undefined : v;
16
12
  const ServerConfigSchema = z.object({
17
13
  mailto: z
18
- .preprocess(stripMcpbPlaceholder, z.string().email().optional())
14
+ .email()
15
+ .optional()
19
16
  .describe('Contact email for User-Agent header — optional, used for polite API access'),
20
- apiBaseUrl: z.string().url().default('https://api.biorxiv.org').describe('bioRxiv API base URL'),
17
+ apiBaseUrl: z.url().default('https://api.biorxiv.org').describe('bioRxiv API base URL'),
21
18
  europePmcBaseUrl: z
22
- .string()
23
19
  .url()
24
20
  .default('https://www.ebi.ac.uk/europepmc/webservices/rest')
25
21
  .describe('EuropePMC REST API base URL'),
26
22
  // Full-text HTML lives on the public websites, not the JSON API host — a
27
23
  // distinct origin per server. Overridable for testing or mirrors.
28
24
  biorxivWebBaseUrl: z
29
- .preprocess(stripMcpbPlaceholder, z.string().url().default('https://www.biorxiv.org'))
25
+ .url()
26
+ .default('https://www.biorxiv.org')
30
27
  .describe('bioRxiv website base URL — source of rendered full-text HTML pages for biorxiv_get_fulltext'),
31
28
  medrxivWebBaseUrl: z
32
- .preprocess(stripMcpbPlaceholder, z.string().url().default('https://www.medrxiv.org'))
29
+ .url()
30
+ .default('https://www.medrxiv.org')
33
31
  .describe('medRxiv website base URL — source of rendered full-text HTML pages for biorxiv_get_fulltext'),
34
32
  });
35
33
  let _config;
@@ -1 +1 @@
1
- {"version":3,"file":"server-config.js","sourceRoot":"","sources":["../../src/config/server-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;GAIG;AACH,MAAM,oBAAoB,GAAG,CAAC,CAAU,EAAW,EAAE,CACnD,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,UAAU,CA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,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @fileoverview biorxiv-mcp-server entry point. Initializes BiorxivApiService
4
- * and EuropePmcService in setup(), then registers all tool definitions with
5
- * createApp().
3
+ * @fileoverview biorxiv-mcp-server entry point. Initializes BiorxivApiService,
4
+ * EuropePmcService, and BiorxivFullTextService in setup(), then registers all
5
+ * tool definitions with createApp().
6
6
  * @module index
7
7
  */
8
8
  export {};
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @fileoverview biorxiv-mcp-server entry point. Initializes BiorxivApiService
4
- * and EuropePmcService in setup(), then registers all tool definitions with
5
- * createApp().
3
+ * @fileoverview biorxiv-mcp-server entry point. Initializes BiorxivApiService,
4
+ * EuropePmcService, and BiorxivFullTextService in setup(), then registers all
5
+ * tool definitions with createApp().
6
6
  * @module index
7
7
  */
8
8
  import { createApp } from '@cyanheads/mcp-ts-core';
@@ -16,10 +16,9 @@ await createApp({
16
16
  tools: [...allToolDefinitions],
17
17
  resources: [],
18
18
  prompts: [],
19
- instructions: 'bioRxiv/medRxiv preprint server. Start with biorxiv_list_categories to see valid category strings for filtering. ' +
20
- 'Use biorxiv_list_recent for date-range browsing, biorxiv_get_preprint for DOI lookup, ' +
21
- 'biorxiv_search_preprints for keyword search (powered by EuropePMC), and ' +
22
- 'biorxiv_get_published_version for full crosswalk metadata when a preprint has been accepted to a journal.',
19
+ instructions: 'bioRxiv/medRxiv preprints, addressed by 10.1101/ 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). 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.',
20
+ // Stateless HTTP: no tool gates on ctx.requestInput, so no session store is needed.
21
+ sessionMode: 'stateless',
23
22
  // Public hosted catalog — serve full landing inventory even when MCP_AUTH_MODE=jwt/oauth.
24
23
  landing: { requireAuth: false },
25
24
  setup(core) {
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,CAAC,GAAG,kBAAkB,CAAC;IAC9B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EACV,mHAAmH;QACnH,wFAAwF;QACxF,0EAA0E;QAC1E,2GAA2G;IAC7G,0FAA0F;IAC1F,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAC/B,KAAK,CAAC,IAAI;QACR,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"}
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,CAAC,GAAG,kBAAkB,CAAC;IAC9B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE;IACX,YAAY,EACV,0fAA0f;IAC5f,oFAAoF;IACpF,WAAW,EAAE,WAAW;IACxB,0FAA0F;IAC1F,OAAO,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;IAC/B,KAAK,CAAC,IAAI;QACR,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-list-recent.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-recent.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAwCjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4bhC,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;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAwCjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+bhC,CAAC"}
@@ -67,6 +67,8 @@ export const biorxivListRecentTool = tool('biorxiv_list_recent', {
67
67
  title: 'List Recent Preprints',
68
68
  description: 'List preprints posted or revised within a date interval, optionally scoped to one server or a subject category. Returns 30 preprints per page (fixed by the API); pass `cursor` as an integer offset (0, 30, 60, …) to step through additional pages. When server="both" (default), per-server pagination state is returned separately — use each server\'s `cursor` field for independent advancement. One server failing under server="both" does not abort the call: the other server\'s page is still returned and the failed one is named in `failed[]`, marking the result set as partial rather than complete. Every attempted server failing is a different case and does abort the call, with a retryable upstream_unavailable (or rate_limited) error — an empty page would otherwise be indistinguishable from an interval that genuinely holds nothing. Call biorxiv_list_categories for valid category strings.',
69
69
  annotations: { readOnlyHint: true, openWorldHint: true },
70
+ // biorxiv_search_preprints spells its date bounds date_from / date_to.
71
+ inputAliases: { date_from: 'start_date', date_to: 'end_date' },
70
72
  input: z.object({
71
73
  start_date: z.string().describe('Start of the date interval (YYYY-MM-DD).'),
72
74
  end_date: z.string().describe('End of the date interval (YYYY-MM-DD).'),
@@ -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;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,E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AAC,IAAI,CAAC,CAAC;QACnB,CAAC;QAED,6EAA6E;QAC7E,4EAA4E;QAC5E,gCAAgC;QAChC,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAC9B,KAAK,CAAC,IAAI,CACR,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAAC,KAAK,GAAG,CACtG,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpD,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,mBAAmB,MAAM,CAAC,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC;QAChE,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACf,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAqB,CAAC,CAAC,CAAC;QACpD,CAAC;QAED,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-list-recent.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-list-recent.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,m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AAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC;QAED,6EAA6E;QAC7E,4EAA4E;QAC5E,gCAAgC;QAChC,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAC9B,KAAK,CAAC,IAAI,CACR,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAAC,KAAK,GAAG,CACtG,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpD,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,mBAAmB,MAAM,CAAC,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC;QAChE,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACf,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAqB,CAAC,CAAC,CAAC;QACpD,CAAC;QAED,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-search-preprints.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-search-preprints.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA2EjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAibrC,CAAC"}
1
+ {"version":3,"file":"biorxiv-search-preprints.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-search-preprints.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA2EjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAobrC,CAAC"}
@@ -81,6 +81,8 @@ export const biorxivSearchPreprintsTool = tool('biorxiv_search_preprints', {
81
81
  title: 'Search Preprints by Keyword',
82
82
  description: 'Search preprints by keyword and/or author using EuropePMC for relevance ranking, then enrich matching DOIs with full bioRxiv/medRxiv metadata. Provide a keyword query, an author name, or both — author maps to an EuropePMC AUTH: field query and is ANDed with the keyword query. Covers both servers by default. EuropePMC indexes new preprints within 1–2 days of posting; for preprints posted within the last day, prefer biorxiv_list_recent. A EuropePMC rate limit (HTTP 429) fails the call with a retryable rate_limited error carrying the wait in seconds — a rate-limited metadata enrichment does not, and instead marks the affected record enrichment_error: "rate_limited".',
83
83
  annotations: { readOnlyHint: true, openWorldHint: true },
84
+ // biorxiv_list_recent spells its date bounds start_date / end_date.
85
+ inputAliases: { start_date: 'date_from', end_date: 'date_to' },
84
86
  input: z
85
87
  .object({
86
88
  query: z
@@ -1 +1 @@
1
- {"version":3,"file":"biorxiv-search-preprints.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-search-preprints.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,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C,CAAC;IACrE,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"biorxiv-search-preprints.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/biorxiv-search-preprints.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAExF,MAAM,oBAAoB,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvD,MAAM,UAAU,GAAG,qBAAqB,CAAC;AAyBzC,MAAM,sBAAsB,GAAoC;IAC9D,aAAa,EAAE,6DAA6D;IAC5E,YAAY,EACV,2GAA2G;IAC7G,SAAS,EAAE,8DAA8D;CAC1E,CAAC;AAEF,SAAS,YAAY,CAAC,CAAmB;IACvC,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACtC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAEhC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;QACf,IAAI,CAAC,CAAC,MAAM;YAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACpD,IAAI,CAAC,CAAC,IAAI;YAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,CAAC,QAAQ;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AC,CAAC,CAAC;YAC5B,KAAK,CAAC,IAAI,CACR,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,yBAAyB,GAAG,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CACzI,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC;IACrE,CAAC;CACF,CAAC,CAAC"}
@@ -11,7 +11,7 @@
11
11
  import { McpError, rateLimited, serviceUnavailable } from '@cyanheads/mcp-ts-core/errors';
12
12
  import { fetchWithTimeout, withRetry } from '@cyanheads/mcp-ts-core/utils';
13
13
  import { getServerConfig } from '../../config/server-config.js';
14
- import { describeWait, detectHtmlError, normalizeUpstreamText, parseRetryAfterSeconds, SERVER_VERSION, } from '../../services/shared.js';
14
+ import { describeWait, detectHtmlError, normalizeUpstreamText, parseRetryAfterSeconds, SERVER_VERSION, } from '../shared.js';
15
15
  // ─── Hardcoded category taxonomy ─────────────────────────────────────────────
16
16
  // No API endpoint provides this; it changes infrequently. Maintained here.
17
17
  const CATEGORIES = {
@@ -24,7 +24,7 @@
24
24
  import type { Context } from '@cyanheads/mcp-ts-core';
25
25
  import type { AppConfig } from '@cyanheads/mcp-ts-core/config';
26
26
  import type { StorageService } from '@cyanheads/mcp-ts-core/storage';
27
- import type { BiorxivServer } from '../../services/biorxiv/types.js';
27
+ import type { BiorxivServer } from '../biorxiv/types.js';
28
28
  /**
29
29
  * Discriminated result of a full-text fetch. `article` carries the extracted
30
30
  * Markdown plus best-effort metadata; `unavailable` records why no readable full
@@ -24,7 +24,7 @@
24
24
  import { McpError } from '@cyanheads/mcp-ts-core/errors';
25
25
  import { fetchWithTimeout, htmlExtractor, withRetry } from '@cyanheads/mcp-ts-core/utils';
26
26
  import { getServerConfig } from '../../config/server-config.js';
27
- import { parseRetryAfterSeconds, SERVER_VERSION } from '../../services/shared.js';
27
+ import { parseRetryAfterSeconds, SERVER_VERSION } from '../shared.js';
28
28
  /**
29
29
  * bioRxiv/medRxiv render their article pages on the Highwire platform, whose
30
30
  * main full-text container is `<div class="article fulltext-view">`. Defuddle's
@@ -11,7 +11,7 @@
11
11
  import { McpError, rateLimited, serviceUnavailable } from '@cyanheads/mcp-ts-core/errors';
12
12
  import { fetchWithTimeout, withRetry } from '@cyanheads/mcp-ts-core/utils';
13
13
  import { getServerConfig } from '../../config/server-config.js';
14
- import { describeWait, detectHtmlError, normalizeUpstreamText, parseRetryAfterSeconds, SERVER_VERSION, } from '../../services/shared.js';
14
+ import { describeWait, detectHtmlError, normalizeUpstreamText, parseRetryAfterSeconds, SERVER_VERSION, } from '../shared.js';
15
15
  /**
16
16
  * The one status this service classifies itself rather than treating as a bug.
17
17
  * Passing it to `fetchWithTimeout` only lowers the log severity from `error` to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/biorxiv-mcp-server",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "mcpName": "io.github.cyanheads/biorxiv-mcp-server",
5
5
  "description": "Search and retrieve bioRxiv and medRxiv preprints — by DOI, date interval, or keyword — via MCP. STDIO or Streamable HTTP.",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "scripts": {
23
23
  "build": "bun run scripts/build.ts",
24
- "rebuild": "bun run scripts/clean.ts && bun run build",
24
+ "rebuild": "bun run scripts/clean.ts && bun run scripts/build.ts",
25
25
  "clean": "bun run scripts/clean.ts",
26
26
  "devcheck": "bun run scripts/devcheck.ts",
27
27
  "tree": "bun run scripts/tree.ts",
@@ -29,14 +29,15 @@
29
29
  "format:unsafe": "biome check --write --unsafe .",
30
30
  "lint:mcp": "bun run scripts/lint-mcp.ts",
31
31
  "lint:packaging": "bun run scripts/lint-packaging.ts",
32
- "bundle": "bun run build && bunx @anthropic-ai/mcpb pack . dist/biorxiv-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/biorxiv-mcp-server.mcpb",
32
+ "bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/biorxiv-mcp-server.mcpb && bun run scripts/clean-mcpb.ts dist/biorxiv-mcp-server.mcpb",
33
33
  "publish-mcp": "mcp-publisher login github -token \"$(security find-generic-password -a \"$USER\" -s mcp-publisher-github-pat -w)\" && mcp-publisher publish",
34
+ "audit:fix": "bun audit fix",
34
35
  "audit:refresh": "rm -f bun.lock && bun install && bun audit",
35
36
  "changelog:build": "bun run scripts/build-changelog.ts",
36
37
  "changelog:check": "bun run scripts/build-changelog.ts --check",
37
38
  "release:github": "bun run scripts/release-github.ts",
38
39
  "list-skills": "bun run scripts/list-skills.ts",
39
- "test": "bunx vitest run",
40
+ "test": "vitest run",
40
41
  "start:stdio": "MCP_TRANSPORT_TYPE=stdio bun ./dist/index.js",
41
42
  "start:http": "MCP_TRANSPORT_TYPE=http bun ./dist/index.js"
42
43
  },
@@ -80,7 +81,7 @@
80
81
  "license": "Apache-2.0",
81
82
  "packageManager": "bun@1.4.0",
82
83
  "engines": {
83
- "bun": ">=1.3.0",
84
+ "bun": ">=1.4.0",
84
85
  "node": ">=24.0.0"
85
86
  },
86
87
  "publishConfig": {
@@ -93,20 +94,20 @@
93
94
  "postcss": "^8.5.23"
94
95
  },
95
96
  "dependencies": {
96
- "@cyanheads/mcp-ts-core": "^0.12.3",
97
- "defuddle": "^0.19.2",
97
+ "@cyanheads/mcp-ts-core": "^0.13.5",
98
+ "defuddle": "^0.19.3",
98
99
  "linkedom": "^0.18.13",
99
100
  "pino-pretty": "^13.1.3",
100
- "zod": "^4.4.3"
101
+ "zod": "^4.6.5"
101
102
  },
102
103
  "devDependencies": {
103
- "@biomejs/biome": "2.5.10",
104
+ "@biomejs/biome": "2.5.14",
104
105
  "@socketsecurity/bun-security-scanner": "^1.1.2",
105
- "@types/node": "26.2.0",
106
+ "@types/node": "26.6.1",
106
107
  "depcheck": "^1.4.7",
107
- "ignore": "^7.0.6",
108
- "tsc-alias": "^1.9.2",
108
+ "ignore": "^7.0.9",
109
+ "tsc-alias": "^1.9.5",
109
110
  "typescript": "^7.0.2",
110
- "vitest": "^4.1.11"
111
+ "vitest": "^5.0.1"
111
112
  }
112
113
  }
package/server.json CHANGED
@@ -6,14 +6,20 @@
6
6
  "url": "https://github.com/cyanheads/biorxiv-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.2.5",
9
+ "version": "0.2.7",
10
+ "remotes": [
11
+ {
12
+ "type": "streamable-http",
13
+ "url": "https://biorxiv.caseyjhand.com/mcp"
14
+ }
15
+ ],
10
16
  "packages": [
11
17
  {
12
18
  "registryType": "npm",
13
19
  "registryBaseUrl": "https://registry.npmjs.org",
14
20
  "identifier": "@cyanheads/biorxiv-mcp-server",
15
21
  "runtimeHint": "bun",
16
- "version": "0.2.5",
22
+ "version": "0.2.7",
17
23
  "packageArguments": [
18
24
  {
19
25
  "type": "positional",
@@ -62,7 +68,7 @@
62
68
  "registryBaseUrl": "https://registry.npmjs.org",
63
69
  "identifier": "@cyanheads/biorxiv-mcp-server",
64
70
  "runtimeHint": "bun",
65
- "version": "0.2.5",
71
+ "version": "0.2.7",
66
72
  "packageArguments": [
67
73
  {
68
74
  "type": "positional",