mcp-databnf 2.1.2 → 2.2.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/CHANGELOG.md +9 -0
- package/README.md +5 -4
- package/dist/bnf/client.d.ts +2 -1
- package/dist/bnf/client.js +1 -1
- package/dist/bnf/client.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +14 -13
- package/server.json +4 -4
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
11
11
|
import process from "process";
|
|
12
12
|
|
|
13
13
|
// src/version.ts
|
|
14
|
-
var PKG_VERSION = "2.
|
|
14
|
+
var PKG_VERSION = "2.2.0";
|
|
15
15
|
var REPO_URL = "https://github.com/smeet666/mcp-databnf";
|
|
16
16
|
|
|
17
17
|
// src/config.ts
|
|
@@ -1671,7 +1671,7 @@ function retrievalDay(retrievedAt) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
function attribution(retrievedAt, sourceUrl) {
|
|
1673
1673
|
const credit = `Source: ${SOURCE_NAME}, retrieved ${retrievalDay(retrievedAt)}`;
|
|
1674
|
-
return sourceUrl ? `${credit}
|
|
1674
|
+
return sourceUrl ? `${credit} (${sourceUrl})` : credit;
|
|
1675
1675
|
}
|
|
1676
1676
|
var retrievedAtSchema = z2.string().describe(
|
|
1677
1677
|
"When these metadata were read from data.bnf.fr, as an ISO 8601 instant. The BnF licence asks for this date to be stated wherever the metadata are shown, so repeat it alongside the source."
|