@cyanheads/biorxiv-mcp-server 0.2.6 → 0.2.8
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 +51 -24
- package/CLAUDE.md +51 -24
- package/Dockerfile +9 -7
- package/README.md +76 -60
- package/changelog/0.2.x/0.2.7.md +35 -0
- package/changelog/0.2.x/0.2.8.md +26 -0
- package/changelog/template.md +9 -26
- package/dist/config/server-config.d.ts +8 -6
- package/dist/config/server-config.d.ts.map +1 -1
- package/dist/config/server-config.js +10 -12
- package/dist/config/server-config.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.d.ts +18 -5
- package/dist/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.js +87 -33
- package/dist/mcp-server/tools/definitions/biorxiv-get-fulltext.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-get-preprint.tool.d.ts +4 -2
- package/dist/mcp-server/tools/definitions/biorxiv-get-preprint.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-get-preprint.tool.js +19 -12
- package/dist/mcp-server/tools/definitions/biorxiv-get-preprint.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.d.ts +19 -9
- package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.js +125 -40
- package/dist/mcp-server/tools/definitions/biorxiv-get-published-version.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-list-categories.tool.js +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-list-categories.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts +5 -2
- package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js +76 -47
- package/dist/mcp-server/tools/definitions/biorxiv-list-recent.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.d.ts +12 -1
- package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js +33 -6
- package/dist/mcp-server/tools/definitions/biorxiv-search-preprints.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +30 -11
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/services/biorxiv/biorxiv-service.d.ts +27 -4
- package/dist/services/biorxiv/biorxiv-service.d.ts.map +1 -1
- package/dist/services/biorxiv/biorxiv-service.js +105 -47
- package/dist/services/biorxiv/biorxiv-service.js.map +1 -1
- package/dist/services/biorxiv/types.d.ts +5 -0
- package/dist/services/biorxiv/types.d.ts.map +1 -1
- package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts +6 -3
- package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.d.ts.map +1 -1
- package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js +6 -7
- package/dist/services/biorxiv-fulltext/biorxiv-fulltext-service.js.map +1 -1
- package/dist/services/europe-pmc/europe-pmc-service.d.ts +7 -3
- package/dist/services/europe-pmc/europe-pmc-service.d.ts.map +1 -1
- package/dist/services/europe-pmc/europe-pmc-service.js +55 -13
- package/dist/services/europe-pmc/europe-pmc-service.js.map +1 -1
- package/dist/services/shared.d.ts +23 -1
- package/dist/services/shared.d.ts.map +1 -1
- package/dist/services/shared.js +45 -1
- package/dist/services/shared.js.map +1 -1
- package/package.json +14 -13
- package/server.json +9 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Shared utilities for biorxiv-mcp-server service layer. Provides
|
|
3
|
-
* HTML error detection, calendar-date and
|
|
3
|
+
* HTML error detection, DOI input normalization, calendar-date and
|
|
4
|
+
* upstream-text normalization,
|
|
4
5
|
* `Retry-After` parsing and rate-limit rejection lookup shared by every fetch
|
|
5
6
|
* path, and the server version string used in User-Agent headers across all
|
|
6
7
|
* services.
|
|
@@ -20,6 +21,27 @@ export declare function detectHtmlError(text: string): boolean;
|
|
|
20
21
|
* without a prior regex gate.
|
|
21
22
|
*/
|
|
22
23
|
export declare function isValidCalendarDate(dateStr: string): boolean;
|
|
24
|
+
/** A preprint DOI reduced to its bare form, plus the revision a version suffix named. */
|
|
25
|
+
export interface NormalizedDoi {
|
|
26
|
+
/** Bare DOI, e.g. `10.64898/2026.03.11.711201`. */
|
|
27
|
+
doi: string;
|
|
28
|
+
/** Revision named by a trailing `vN` (`"2"` for `…711201v2`); absent when none was given. */
|
|
29
|
+
version?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Reduce a pasted preprint reference to its bare DOI. Accepts the bare DOI
|
|
33
|
+
* itself, a `https://doi.org/` or `http(s)://dx.doi.org/` resolver URL, a
|
|
34
|
+
* `doi:` label, or a `{www.}{biorxiv,medrxiv}.org/content/` article URL — any
|
|
35
|
+
* of them with a trailing `vN` revision and an article-tab suffix (`.full`,
|
|
36
|
+
* `.full.pdf`, `.article-metrics`, …).
|
|
37
|
+
* A URL's query string and fragment are dropped. Returns the revision the
|
|
38
|
+
* suffix named alongside the DOI, and `undefined` when what is left is not a
|
|
39
|
+
* DOI — callers raise their `invalid_doi_format` on that.
|
|
40
|
+
*
|
|
41
|
+
* A bare DOI passes through unchanged: stripping only ever removes text around
|
|
42
|
+
* a bioRxiv/medRxiv identifier, never characters of one.
|
|
43
|
+
*/
|
|
44
|
+
export declare function normalizeDoi(input: string): NormalizedDoi | undefined;
|
|
23
45
|
/**
|
|
24
46
|
* Strip Highwire/JATS export artifacts that bioRxiv/medRxiv and EuropePMC leak
|
|
25
47
|
* into raw title and abstract text, so no upstream markup reaches
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/services/shared.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/services/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAU5D;AAED,yFAAyF;AACzF,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAuBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAWrE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAuBlF;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAOvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAiB7F;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEhE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,MAA4B,CAAC"}
|
package/dist/services/shared.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Shared utilities for biorxiv-mcp-server service layer. Provides
|
|
3
|
-
* HTML error detection, calendar-date and
|
|
3
|
+
* HTML error detection, DOI input normalization, calendar-date and
|
|
4
|
+
* upstream-text normalization,
|
|
4
5
|
* `Retry-After` parsing and rate-limit rejection lookup shared by every fetch
|
|
5
6
|
* path, and the server version string used in User-Agent headers across all
|
|
6
7
|
* services.
|
|
@@ -33,6 +34,49 @@ export function isValidCalendarDate(dateStr) {
|
|
|
33
34
|
const date = new Date(Date.UTC(year, month - 1, day));
|
|
34
35
|
return (date.getUTCFullYear() === year && date.getUTCMonth() === month - 1 && date.getUTCDate() === day);
|
|
35
36
|
}
|
|
37
|
+
/** A doi.org resolver or bioRxiv/medRxiv article URL in front of the DOI, scheme optional. */
|
|
38
|
+
const DOI_URL_PREFIX = /^(?:https?:\/\/)?(?:(?:dx\.)?doi\.org\/|(?:www\.)?(?:bio|med)rxiv\.org\/content\/)/i;
|
|
39
|
+
/** The `doi:` scheme label, as in citations. */
|
|
40
|
+
const DOI_SCHEME_PREFIX = /^doi:\s*/i;
|
|
41
|
+
/**
|
|
42
|
+
* An article-page suffix after the DOI's final digit: an optional `vN` revision,
|
|
43
|
+
* then any article-tab suffix (`.full`, `.full.pdf`, `.full.pdf+html`,
|
|
44
|
+
* `.full-text`, `.article-metrics`, `.supplementary-material`, …), then an
|
|
45
|
+
* optional trailing slash, matched case-insensitively. Anchored after a digit,
|
|
46
|
+
* and each tab suffix starts with a letter, so neither a `v` inside a
|
|
47
|
+
* non-numeric identifier nor a `.`-separated digit group is ever stripped —
|
|
48
|
+
* bioRxiv and medRxiv identifiers are digits and dots, ending in a digit.
|
|
49
|
+
*/
|
|
50
|
+
const ARTICLE_SUFFIX = /(?<=\d)(?:v(\d+))?(?:\.[a-z][\w+-]*)*\/?$/i;
|
|
51
|
+
/** `10.` + a registrant code of four or more digits + `/` + a non-empty suffix. */
|
|
52
|
+
const BARE_DOI = /^10\.\d{4,}\/\S+$/;
|
|
53
|
+
/**
|
|
54
|
+
* Reduce a pasted preprint reference to its bare DOI. Accepts the bare DOI
|
|
55
|
+
* itself, a `https://doi.org/` or `http(s)://dx.doi.org/` resolver URL, a
|
|
56
|
+
* `doi:` label, or a `{www.}{biorxiv,medrxiv}.org/content/` article URL — any
|
|
57
|
+
* of them with a trailing `vN` revision and an article-tab suffix (`.full`,
|
|
58
|
+
* `.full.pdf`, `.article-metrics`, …).
|
|
59
|
+
* A URL's query string and fragment are dropped. Returns the revision the
|
|
60
|
+
* suffix named alongside the DOI, and `undefined` when what is left is not a
|
|
61
|
+
* DOI — callers raise their `invalid_doi_format` on that.
|
|
62
|
+
*
|
|
63
|
+
* A bare DOI passes through unchanged: stripping only ever removes text around
|
|
64
|
+
* a bioRxiv/medRxiv identifier, never characters of one.
|
|
65
|
+
*/
|
|
66
|
+
export function normalizeDoi(input) {
|
|
67
|
+
let text = input.trim();
|
|
68
|
+
const url = DOI_URL_PREFIX.exec(text);
|
|
69
|
+
text = url
|
|
70
|
+
? text.slice(url[0].length).replace(/[?#].*$/, '')
|
|
71
|
+
: text.replace(DOI_SCHEME_PREFIX, '');
|
|
72
|
+
const suffix = ARTICLE_SUFFIX.exec(text);
|
|
73
|
+
const version = suffix?.[1];
|
|
74
|
+
if (suffix)
|
|
75
|
+
text = text.slice(0, suffix.index);
|
|
76
|
+
if (!BARE_DOI.test(text))
|
|
77
|
+
return;
|
|
78
|
+
return version === undefined ? { doi: text } : { doi: text, version: String(Number(version)) };
|
|
79
|
+
}
|
|
36
80
|
/**
|
|
37
81
|
* Strip Highwire/JATS export artifacts that bioRxiv/medRxiv and EuropePMC leak
|
|
38
82
|
* into raw title and abstract text, so no upstream markup reaches
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/services/shared.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/services/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,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,CAAC;QACb,IACE,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ;YACnC,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,EACpD,CAAC;YACD,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,IAAI,CAAC,KAAK;QAAE,OAAO;IACnB,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AAC9D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,OAA2B;IACtD,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,UAAU,CAAC;AAC1E,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAW,WAAW,CAAC,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/biorxiv-mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
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 &&
|
|
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": "
|
|
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.
|
|
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.
|
|
97
|
-
"defuddle": "^0.19.
|
|
97
|
+
"@cyanheads/mcp-ts-core": "^0.13.6",
|
|
98
|
+
"defuddle": "^0.19.4",
|
|
98
99
|
"linkedom": "^0.18.13",
|
|
99
100
|
"pino-pretty": "^13.1.3",
|
|
100
|
-
"zod": "^4.
|
|
101
|
+
"zod": "^4.6.5"
|
|
101
102
|
},
|
|
102
103
|
"devDependencies": {
|
|
103
|
-
"@biomejs/biome": "2.5.
|
|
104
|
+
"@biomejs/biome": "2.5.14",
|
|
104
105
|
"@socketsecurity/bun-security-scanner": "^1.1.2",
|
|
105
|
-
"@types/node": "26.2
|
|
106
|
+
"@types/node": "26.6.2",
|
|
106
107
|
"depcheck": "^1.4.7",
|
|
107
|
-
"ignore": "^7.0.
|
|
108
|
-
"tsc-alias": "^1.9.
|
|
108
|
+
"ignore": "^7.0.9",
|
|
109
|
+
"tsc-alias": "^1.9.5",
|
|
109
110
|
"typescript": "^7.0.2",
|
|
110
|
-
"vitest": "^
|
|
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.
|
|
9
|
+
"version": "0.2.8",
|
|
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.
|
|
22
|
+
"version": "0.2.8",
|
|
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.
|
|
71
|
+
"version": "0.2.8",
|
|
66
72
|
"packageArguments": [
|
|
67
73
|
{
|
|
68
74
|
"type": "positional",
|