mcp-databnf 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-databnf",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "MCP server for data.bnf.fr, the Bibliothèque nationale de France open catalogue. Look up authors, works, editions and the Gallica links attached to them. No API key required.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -25,13 +25,19 @@
25
25
  "url": "git+https://github.com/smeet666/mcp-databnf.git"
26
26
  },
27
27
  "license": "MIT",
28
- "author": "Damien Bouissou",
28
+ "author": {
29
+ "name": "Damien Bouissou",
30
+ "url": "https://github.com/smeet666"
31
+ },
29
32
  "type": "module",
30
33
  "bin": {
31
34
  "mcp-databnf": "dist/index.js"
32
35
  },
33
36
  "exports": {
34
- ".": "./dist/index.js",
37
+ ".": {
38
+ "types": "./dist/index.d.ts",
39
+ "import": "./dist/index.js"
40
+ },
35
41
  "./client": {
36
42
  "types": "./dist/bnf/client.d.ts",
37
43
  "import": "./dist/bnf/client.js"
@@ -41,20 +47,21 @@
41
47
  "dist",
42
48
  "README.md",
43
49
  "LICENSE",
44
- "CHANGELOG.md"
50
+ "CHANGELOG.md",
51
+ "server.json"
45
52
  ],
46
53
  "engines": {
47
- "node": ">=20.0.0"
54
+ "node": ">=24.0.0"
48
55
  },
49
56
  "mcpName": "io.github.smeet666/mcp-databnf",
50
57
  "scripts": {
51
58
  "build": "tsup",
52
59
  "typecheck": "tsc --noEmit",
53
- "pretest": "npm run build:fixtures",
54
60
  "test": "vitest run test/unit",
55
61
  "test:live": "vitest run test/live --testTimeout=180000",
56
62
  "build:fixtures": "node scripts/build-fixtures.mjs",
57
- "format": "prettier --write .",
63
+ "format": "biome check --write && prettier --write \"**/*.{md,yml}\"",
64
+ "check": "biome ci && prettier --check \"**/*.{md,yml}\"",
58
65
  "prepublishOnly": "npm run typecheck && npm run test && npm run build",
59
66
  "start": "node dist/index.js",
60
67
  "inspector": "npx @modelcontextprotocol/inspector node dist/index.js"
@@ -64,10 +71,11 @@
64
71
  "zod": "^4.4.3"
65
72
  },
66
73
  "devDependencies": {
67
- "@types/node": "^22.18.0",
68
- "prettier": "^3.9.6",
74
+ "@biomejs/biome": "2.5.10",
75
+ "@types/node": "^24.13.3",
76
+ "prettier": "3.9.6",
69
77
  "tsup": "^8.5.1",
70
78
  "typescript": "^5.9.3",
71
- "vitest": "^4.1.10"
79
+ "vitest": "^4.1.11"
72
80
  }
73
81
  }
package/server.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.smeet666/mcp-databnf",
4
+ "description": "Search the BnF open catalogue: authors, works, editions and links to what is digitised.",
5
+ "websiteUrl": "https://github.com/smeet666/mcp-databnf#readme",
6
+ "icons": [
7
+ {
8
+ "src": "https://raw.githubusercontent.com/smeet666/mcp-databnf/main/assets/icon-128.png",
9
+ "mimeType": "image/png",
10
+ "sizes": ["128x128"]
11
+ },
12
+ {
13
+ "src": "https://raw.githubusercontent.com/smeet666/mcp-databnf/main/assets/icon-512.png",
14
+ "mimeType": "image/png",
15
+ "sizes": ["512x512"]
16
+ }
17
+ ],
18
+ "repository": {
19
+ "url": "https://github.com/smeet666/mcp-databnf",
20
+ "source": "github"
21
+ },
22
+ "version": "2.0.0",
23
+ "packages": [
24
+ {
25
+ "registryType": "npm",
26
+ "identifier": "mcp-databnf",
27
+ "version": "2.0.0",
28
+ "transport": {
29
+ "type": "stdio"
30
+ },
31
+ "environmentVariables": [
32
+ {
33
+ "name": "BNF_USER_AGENT",
34
+ "description": "Identify your own client. The project's own identifier is appended, so the BnF can always reach a person.",
35
+ "isRequired": false
36
+ },
37
+ {
38
+ "name": "BNF_MIN_INTERVAL_MS",
39
+ "description": "Minimum milliseconds between requests. Default 3000, which is also the floor.",
40
+ "isRequired": false
41
+ },
42
+ {
43
+ "name": "BNF_TIMEOUT_MS",
44
+ "description": "Deadline for one SPARQL query, in milliseconds. Default 60000.",
45
+ "isRequired": false
46
+ },
47
+ {
48
+ "name": "BNF_MAX_RETRIES",
49
+ "description": "Attempts after a busy answer. Default 3.",
50
+ "isRequired": false
51
+ },
52
+ {
53
+ "name": "BNF_CACHE_TTL_MS",
54
+ "description": "How long an answer is kept in memory, in milliseconds. Default 900000. Zero turns the cache off.",
55
+ "isRequired": false
56
+ },
57
+ {
58
+ "name": "BNF_LOG_LEVEL",
59
+ "description": "silent, error, info or debug. Default error. Logs go to stderr.",
60
+ "isRequired": false
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "registryType": "mcpb",
66
+ "identifier": "https://github.com/smeet666/mcp-databnf/releases/download/v2.0.0/mcp-databnf-2.0.0.mcpb",
67
+ "version": "2.0.0",
68
+ "transport": {
69
+ "type": "stdio"
70
+ }
71
+ }
72
+ ]
73
+ }