@aborruso/ckan-mcp-server 0.4.15 → 0.4.16

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 CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  ## 2026-01-23
4
4
 
5
+ ### MQA Quality Metrics - Fix identifier format
6
+
7
+ - **Bug fix**: Identifier transformation for data.europa.eu API compatibility
8
+ - **Issue**: CKAN identifiers with colon separator (e.g., `c_f158:224c373e...`) were not recognized by MQA API
9
+ - **Root cause**: data.europa.eu uses hyphen-separated identifiers (`c_f158-224c373e...`)
10
+ - **Solution**: Replace colons with hyphens before API call: `.replace(/:/g, '-')`
11
+ - **Impact**: MQA quality metrics now work for all dati.gov.it datasets, including municipal portals
12
+ - **Example**: Messina air quality dataset now returns score 405/560 (Eccellente)
13
+ - **File modified**: `src/tools/quality.ts` (line 41)
14
+ - **Deployed**: Cloudflare Workers v0.4.16
15
+
5
16
  ### MQA Quality Metrics Tool
6
17
 
7
18
  - **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.15"
2752
+ version: "0.4.16"
2753
2753
  });
2754
2754
  }
2755
2755
  function registerAll(server2) {