@aborruso/ckan-mcp-server 0.4.3 → 0.4.4

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/EXAMPLES.md CHANGED
@@ -210,6 +210,14 @@ ckan_datastore_search({
210
210
  })
211
211
  ```
212
212
 
213
+ ### SQL query
214
+ ```typescript
215
+ ckan_datastore_search_sql({
216
+ server_url: "https://demo.ckan.org",
217
+ sql: "SELECT Country, COUNT(*) AS total FROM \"5b3cf3a8-9a58-45ee-8e1a-4d98b8320c9a\" GROUP BY Country ORDER BY total DESC LIMIT 10"
218
+ })
219
+ ```
220
+
213
221
  ## Advanced Solr Searches
214
222
 
215
223
  ### AND combination
@@ -285,6 +293,25 @@ ckan_package_search({
285
293
  })
286
294
  ```
287
295
 
296
+ ## Tags and Groups
297
+
298
+ ### List groups
299
+ ```typescript
300
+ ckan_group_list({
301
+ server_url: "https://www.dati.gov.it/opendata",
302
+ all_fields: true,
303
+ limit: 20
304
+ })
305
+ ```
306
+
307
+ ### Show group details
308
+ ```typescript
309
+ ckan_group_show({
310
+ server_url: "https://www.dati.gov.it/opendata",
311
+ id: "ambiente"
312
+ })
313
+ ```
314
+
288
315
  ## Advanced Solr Query Features
289
316
 
290
317
  CKAN uses Apache Solr for search. The `q` parameter supports advanced Solr query syntax including fuzzy matching, proximity search, boosting, and complex boolean logic.
package/LOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## 2026-01-10
4
4
 
5
+ ### Version 0.4.4 - DataStore SQL
6
+ - **Tool**: Added `ckan_datastore_search_sql`
7
+ - **Docs**: Updated README/EXAMPLES/PRD for SQL support
8
+ - **Tests**: Added SQL fixture and checks
9
+
10
+ ## 2026-01-10
11
+
5
12
  ### Version 0.4.3 - Tags and Groups
6
13
  - **Tags**: Added `ckan_tag_list` with faceting and filtering
7
14
  - **Groups**: Added `ckan_group_list`, `ckan_group_show`, `ckan_group_search`
package/PRD.md CHANGED
@@ -653,9 +653,9 @@ ckan_package_search({
653
653
  - Max 32.000 record per query
654
654
  - Dipende dalla configurazione del server CKAN
655
655
 
656
- 5. **No SQL Support**:
657
- - Tool `ckan_datastore_search_sql` menzionato come "in sviluppo"
658
- - Non implementato nel codice attuale
656
+ 5. **SQL Support Limitations**:
657
+ - `ckan_datastore_search_sql` funziona solo se il portale espone l'endpoint SQL
658
+ - Alcuni portali disabilitano SQL per motivi di sicurezza
659
659
 
660
660
  6. **Timeout**:
661
661
  - 30 secondi fissi per HTTP request
@@ -696,9 +696,9 @@ ckan_package_search({
696
696
  - API key per endpoint privati
697
697
  - OAuth per portali che lo supportano
698
698
 
699
- - [ ] **SQL Query Support**
700
- - Implementare `ckan_datastore_search_sql`
701
- - Supporto query SQL complete
699
+ - [x] **SQL Query Support**
700
+ - Implementato `ckan_datastore_search_sql`
701
+ - Richiede portali con DataStore SQL attivo
702
702
 
703
703
  - [ ] **Caching Layer**
704
704
  - Cache risultati frequenti
package/README.md CHANGED
@@ -185,7 +185,7 @@ Use the public Cloudflare Workers deployment (no local installation required):
185
185
  ### DataStore
186
186
 
187
187
  - **ckan_datastore_search**: Query tabular data
188
- - **ckan_datastore_search_sql**: SQL queries (in development)
188
+ - **ckan_datastore_search_sql**: SQL queries on DataStore
189
189
 
190
190
  ### Groups
191
191
 
@@ -289,6 +289,15 @@ ckan_datastore_search({
289
289
  })
290
290
  ```
291
291
 
292
+ ### DataStore SQL Query
293
+
294
+ ```typescript
295
+ ckan_datastore_search_sql({
296
+ server_url: "https://demo.ckan.org",
297
+ sql: "SELECT Country, COUNT(*) AS total FROM \"abc-123-def\" GROUP BY Country ORDER BY total DESC LIMIT 10"
298
+ })
299
+ ```
300
+
292
301
  ## Supported CKAN Portals
293
302
 
294
303
  Some of the main compatible portals: