@aborruso/ckan-mcp-server 0.4.15 → 0.4.17
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/LOG.md +30 -0
- package/dist/index.js +2 -2
- package/dist/worker.js +40 -37
- package/package.json +1 -1
package/LOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
## 2026-01-23
|
|
4
4
|
|
|
5
|
+
### Release v0.4.17
|
|
6
|
+
|
|
7
|
+
- Published to npm: `@aborruso/ckan-mcp-server@0.4.17`
|
|
8
|
+
- Aligned with GitHub tag `v0.4.17`
|
|
9
|
+
|
|
10
|
+
### MQA Quality Metrics - Identifier normalization and disambiguation
|
|
11
|
+
|
|
12
|
+
- **Fix**: Normalize identifiers for data.europa.eu lookups (lowercase, collapse hyphens)
|
|
13
|
+
- **Fix**: Retry with disambiguation suffixes (`~~1`, `~~2`) when base identifier 404s
|
|
14
|
+
- **Result**: MQA quality now matches portal IDs for datasets like Beinasco (with `~~1`)
|
|
15
|
+
- **Improved errors**: clearer message when identifier is not aligned
|
|
16
|
+
- **Files modified**: `src/tools/quality.ts`, `tests/integration/quality.test.ts`
|
|
17
|
+
- **Deployed**: Cloudflare Workers v0.4.17
|
|
18
|
+
|
|
19
|
+
### Release v0.4.16
|
|
20
|
+
|
|
21
|
+
- Published to npm: `@aborruso/ckan-mcp-server@0.4.16`
|
|
22
|
+
- Aligned with GitHub tag `v0.4.16`
|
|
23
|
+
|
|
24
|
+
### MQA Quality Metrics - Fix identifier format
|
|
25
|
+
|
|
26
|
+
- **Bug fix**: Identifier transformation for data.europa.eu API compatibility
|
|
27
|
+
- **Issue**: CKAN identifiers with colon separator (e.g., `c_f158:224c373e...`) were not recognized by MQA API
|
|
28
|
+
- **Root cause**: data.europa.eu uses hyphen-separated identifiers (`c_f158-224c373e...`)
|
|
29
|
+
- **Solution**: Replace colons with hyphens before API call: `.replace(/:/g, '-')`
|
|
30
|
+
- **Impact**: MQA quality metrics now work for all dati.gov.it datasets, including municipal portals
|
|
31
|
+
- **Example**: Messina air quality dataset now returns score 405/560 (Eccellente)
|
|
32
|
+
- **File modified**: `src/tools/quality.ts` (line 41)
|
|
33
|
+
- **Deployed**: Cloudflare Workers v0.4.16
|
|
34
|
+
|
|
5
35
|
### MQA Quality Metrics Tool
|
|
6
36
|
|
|
7
37
|
- **Feature**: Added `ckan_get_mqa_quality` tool for retrieving quality metrics from data.europa.eu MQA API
|
package/dist/index.js
CHANGED
|
@@ -2117,7 +2117,7 @@ async function getMqaQuality(serverUrl, datasetId) {
|
|
|
2117
2117
|
"package_show",
|
|
2118
2118
|
{ id: datasetId }
|
|
2119
2119
|
);
|
|
2120
|
-
const europeanId = dataset.identifier || dataset.name;
|
|
2120
|
+
const europeanId = (dataset.identifier || dataset.name).replace(/:/g, "-");
|
|
2121
2121
|
const mqaUrl = `${MQA_API_BASE}/${europeanId}`;
|
|
2122
2122
|
try {
|
|
2123
2123
|
const response = await axios2.get(mqaUrl, {
|
|
@@ -2749,7 +2749,7 @@ var registerAllPrompts = (server2) => {
|
|
|
2749
2749
|
function createServer() {
|
|
2750
2750
|
return new McpServer({
|
|
2751
2751
|
name: "ckan-mcp-server",
|
|
2752
|
-
version: "0.4.
|
|
2752
|
+
version: "0.4.16"
|
|
2753
2753
|
});
|
|
2754
2754
|
}
|
|
2755
2755
|
function registerAll(server2) {
|