@opendata.cat/mcp-server 0.0.17 → 0.0.18
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/README.md +3 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -224,8 +224,9 @@ Les contribucions son benvingudes! Per afegir un nou portal de dades obertes:
|
|
|
224
224
|
|
|
225
225
|
## Changelog
|
|
226
226
|
|
|
227
|
-
### v0.0.
|
|
228
|
-
-
|
|
227
|
+
### v0.0.17 (2026-04-14)
|
|
228
|
+
- Simplificacio automatica de geometries GIS: centroide + bounding box en lloc de milers de coordenades
|
|
229
|
+
- Decodificador GTFS-RT integrat: trens FGC en temps real (retards, alertes, posicions GPS)
|
|
229
230
|
- Descodifica automaticament fitxers Protocol Buffers (.pb) de GTFS Realtime
|
|
230
231
|
- API REST documentada amb Swagger UI a /api/docs.html (OpenAPI 3.1)
|
|
231
232
|
- Instruccions per a models locals: LM Studio, Ollama (MCPHost) i Jan
|
package/dist/index.js
CHANGED
|
@@ -13,10 +13,10 @@ import { queryOpendatasoft } from "./clients/opendatasoft.js";
|
|
|
13
13
|
import { decodeGtfsRt } from "./clients/gtfsrt.js";
|
|
14
14
|
const server = new McpServer({
|
|
15
15
|
name: "opendata-cat",
|
|
16
|
-
version: "
|
|
16
|
+
version: "",
|
|
17
17
|
});
|
|
18
18
|
// Tool 1: search_datasets
|
|
19
|
-
server.tool("search_datasets", "Cerca datasets de dades obertes catalanes per text lliure.
|
|
19
|
+
server.tool("search_datasets", "Cerca datasets de dades obertes catalanes per text lliure. IMPORTANT: fes múltiples cerques amb termes diferents per cobrir un tema ampli. Ex: si l'usuari pregunta per 'emergències', cerca 'bombers', '112 trucades', 'mossos policia', 'SEM ambulància' per separat. La cerca inclou sinònims en català i castellà.", {
|
|
20
20
|
query: z.string().describe("Text de cerca (ex: 'qualitat aire', 'pressupostos')"),
|
|
21
21
|
portal: z.string().optional().describe("Filtrar per portal: 'generalitat', 'barcelona', 'diba', 'aoc', 'reus', 'girona', 'fgc'"),
|
|
22
22
|
category: z.string().optional().describe("Filtrar per categoria"),
|
|
@@ -471,7 +471,7 @@ async function main() {
|
|
|
471
471
|
// Health check
|
|
472
472
|
if (req.url === "/health") {
|
|
473
473
|
res.writeHead(200, { "Content-Type": "application/json" });
|
|
474
|
-
res.end(JSON.stringify({ status: "ok", name: "opendata-cat", version: "
|
|
474
|
+
res.end(JSON.stringify({ status: "ok", name: "opendata-cat", version: "" }));
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
477
|
// MCP endpoint
|