Skip to content

Commit a6c4f4c

Browse files
aborrusoclaude
andcommitted
fix(worker): log endpoint_url for sparql_query in telemetry (v0.4.80)
server field was always "" for sparql_query because logging code used server_url but SPARQL tool parameter is endpoint_url. Fix: a['server_url'] ?? a['endpoint_url'] ?? '' Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3735286 commit a6c4f4c

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

LOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# LOG
22

3+
## 2026-03-10
4+
5+
- fix(`worker.ts`): `sparql_query` now logs correct `server` field — was always `""` because logging code read `server_url` but SPARQL tool uses `endpoint_url`; fix: `a['server_url'] ?? a['endpoint_url'] ?? ''`
6+
37
## 2026-03-08
48

59
- fix(skill): bilingual query rule made conditional — use native language only on monolingual portals (dati.gov.it → IT, data.gov → EN); bilingual only on multilingual portals (data.europa.eu, open.canada.ca)

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dxt_version": "0.1",
33
"name": "ckan-mcp-server",
4-
"version": "0.4.79",
4+
"version": "0.4.80",
55
"display_name": "CKAN MCP Server",
66
"description": "Explore open data portals based on CKAN (dati.gov.it, data.gov, open.canada.ca, ...)",
77
"long_description": "MCP server for interacting with CKAN-based open data portals. Provides tools for advanced dataset search with Solr syntax, DataStore queries for tabular data analysis, organization and group exploration, and complete metadata access.",

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.79",
3+
"version": "0.4.80",
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
@@ -19,7 +19,7 @@ import { registerAllPrompts } from "./prompts/index.js";
1919
export function createServer(): McpServer {
2020
return new McpServer({
2121
name: "ckan-mcp-server",
22-
version: "0.4.79"
22+
version: "0.4.80"
2323
});
2424
}
2525

src/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export default {
221221
if (request.method === 'GET' && url.pathname === '/health') {
222222
return new Response(JSON.stringify({
223223
status: 'ok',
224-
version: '0.4.79',
224+
version: '0.4.80',
225225
tools: 20,
226226
resources: 7,
227227
prompts: 6,
@@ -244,7 +244,7 @@ export default {
244244
if (body?.method === 'tools/call' && body?.params?.name) {
245245
const tool = body.params.name;
246246
const a = body.params.arguments ?? {};
247-
const entry: Record<string, unknown> = { tool, server: a['server_url'] ?? '' };
247+
const entry: Record<string, unknown> = { tool, server: a['server_url'] ?? a['endpoint_url'] ?? '' };
248248
if (a['q'] !== undefined) entry['q'] = a['q'];
249249
if (a['fq'] !== undefined) entry['fq'] = a['fq'];
250250
if (a['query'] !== undefined) entry['query'] = a['query'];

0 commit comments

Comments
 (0)