@aborruso/ckan-mcp-server 0.4.63 → 0.4.65

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
@@ -1,5 +1,13 @@
1
1
  # LOG
2
2
 
3
+ ## 2026-03-04 (v0.4.65)
4
+
5
+ - feat(europa): add `publisher` to `ALLOWED_FACETS` in `europa_dataset_search` — now shows top publishers per query
6
+
7
+ ## 2026-03-04 (v0.4.64)
8
+
9
+ - fix(europa): `q=*` now correctly returns all 1.7M+ datasets — Europa API ignores `q` when omitted; sending `q=*` was causing Elasticsearch to return only ~6k results; match-all queries (`*`, `*:*`) now omit the `q` parameter
10
+
3
11
  ## 2026-03-04
4
12
 
5
13
  - feat: expose Europa API facets in `europa_dataset_search` — country, format, categories, and 15 more facet types now rendered as tables (markdown) and compact objects (JSON, top 15 items per facet)
package/dist/index.js CHANGED
@@ -3991,7 +3991,10 @@ var EUROPA_SEARCH_URL = "https://data.europa.eu/api/hub/search/search";
3991
3991
  async function makeEuropaSearchRequest(params) {
3992
3992
  const isNode = typeof process !== "undefined" && !!process.versions?.node;
3993
3993
  const searchParams = new URLSearchParams();
3994
- searchParams.set("q", params.q);
3994
+ const isMatchAll = !params.q || params.q === "*" || params.q === "*:*";
3995
+ if (!isMatchAll) {
3996
+ searchParams.set("q", params.q);
3997
+ }
3995
3998
  searchParams.set("page", String(params.page ?? 0));
3996
3999
  searchParams.set("limit", String(params.limit ?? 10));
3997
4000
  searchParams.set("filters", "dataset");
@@ -4185,7 +4188,8 @@ var ALLOWED_FACETS = /* @__PURE__ */ new Set([
4185
4188
  "scoring",
4186
4189
  "language",
4187
4190
  "subject",
4188
- "hvdCategory"
4191
+ "hvdCategory",
4192
+ "publisher"
4189
4193
  ]);
4190
4194
  function resolveFacetTitle(title, lang) {
4191
4195
  if (typeof title === "string") return title;