Skip to content

Commit fd6a12e

Browse files
committed
Fix MQA quality score max 450→405 (v0.4.23)
Correct maximum score: 100+100+110+75+20=405 Files: src/tools/quality.ts, tests/integration/quality.test.ts
1 parent 7bdd8b3 commit fd6a12e

6 files changed

Lines changed: 12 additions & 6 deletions

File tree

LOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
## 2026-01-26
44

5+
### Release v0.4.23
6+
7+
- Fix MQA quality score maximum from 450 to 405 (correct max: 100+100+110+75+20)
8+
- Files modified: `src/tools/quality.ts:442`, `tests/integration/quality.test.ts:279,302`
9+
510
### Release v0.4.22
611

712
- Fix MQA identifier normalization to handle dot separators (e.g. `c_g273:D.1727` -> `c_g273-d-1727`)
13+
- Workers deploy: https://ckan-mcp-server.andy-pr.workers.dev (2026-01-26)
814

915
### Release v0.4.21
1016

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aborruso/ckan-mcp-server",
3-
"version": "0.4.22",
3+
"version": "0.4.23",
44
"description": "MCP server for interacting with CKAN open data portals",
55
"main": "dist/index.js",
66
"type": "module",

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { registerAllPrompts } from "./prompts/index.js";
1616
export function createServer(): McpServer {
1717
return new McpServer({
1818
name: "ckan-mcp-server",
19-
version: "0.4.22"
19+
version: "0.4.23"
2020
});
2121
}
2222

src/tools/quality.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ export function formatQualityMarkdown(data: any, datasetId: string): string {
439439
lines.push("");
440440

441441
if (normalized.info?.score !== undefined) {
442-
lines.push(`**Overall Score**: ${normalized.info.score}/450`);
442+
lines.push(`**Overall Score**: ${normalized.info.score}/405`);
443443
lines.push("");
444444
}
445445

src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export default {
214214
if (request.method === 'GET' && url.pathname === '/health') {
215215
return new Response(JSON.stringify({
216216
status: 'ok',
217-
version: '0.4.22',
217+
version: '0.4.23',
218218
tools: 14,
219219
resources: 7,
220220
prompts: 5,

tests/integration/quality.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ describe('ckan_get_mqa_quality integration', () => {
276276

277277
expect(result).toContain('# Quality Metrics');
278278
expect(result).toContain('test-dataset');
279-
expect(result).toContain('**Overall Score**: 395/450');
279+
expect(result).toContain('**Overall Score**: 395/405');
280280
expect(result).toContain('## Dimension Scores');
281281
expect(result).toContain('Accessibility: 90/100 ⚠️ (max 100)');
282282
expect(result).toContain('Findability: 100/100 ✅');
@@ -299,7 +299,7 @@ describe('ckan_get_mqa_quality integration', () => {
299299

300300
const result = formatQualityMarkdown(partialData, 'partial-dataset');
301301

302-
expect(result).toContain('**Overall Score**: 200/450');
302+
expect(result).toContain('**Overall Score**: 200/405');
303303
expect(result).toContain('## Accessibility');
304304
expect(result).not.toContain('## Reusability');
305305
});

0 commit comments

Comments
 (0)