timetable-api-node 1.7.6 → 1.7.9

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.
Files changed (3) hide show
  1. package/README.md +4 -3
  2. package/index.ts +7 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -96,7 +96,7 @@ license key, not an `NRAK-...` user API key.
96
96
  Cloud Run reads the key from Secret Manager:
97
97
 
98
98
  ```bash
99
- gcloud run services update timetable-api-node --region=us-central1 --project=timetable-252615 --set-secrets=NEW_RELIC_LICENSE_KEY=new-relic-license-key:latest
99
+ gcloud run services update timetable-api-node --region=europe-north1 --project=timetable-252615 --set-secrets=NEW_RELIC_LICENSE_KEY=new-relic-license-key:latest
100
100
  ```
101
101
 
102
102
  ## MCP Server
@@ -538,7 +538,8 @@ Nearby stops — same search as `get_stops_around_location`, for non-MCP clients
538
538
 
539
539
  All routes as a JSON array, sorted by short name.
540
540
 
541
- - **Response:** raw route objects from the timetable store.
541
+ - **Optional:** `full=1` — raw route objects from the timetable store (trip maps, shapes, departure maps; ~9 MB) instead of the list fields.
542
+ - **Response:** array of `{ external_id, short_name, long_name, color, type, stops_by_shape }` (~20 KB). `stops_by_shape` holds stop codes per direction, keyed `"0"` and `"1"`.
542
543
 
543
544
  (`GET /routes` returns an HTML table.)
544
545
 
@@ -592,7 +593,7 @@ Vehicles within 1 km of a point. Short-cached (10 s).
592
593
 
593
594
  ## Deployment
594
595
 
595
- Production runs on Cloud Run (`timetable-api-node`, `us-central1`, project
596
+ Production runs on Cloud Run (`timetable-api-node`, `europe-north1`, project
596
597
  `timetable-252615`) behind Cloudflare.
597
598
 
598
599
  - **Image.** The Dockerfile imports the GTFS feed at build time
package/index.ts CHANGED
@@ -446,6 +446,13 @@ app.get("/smithery.json", (req, res) => {
446
446
  res.sendFile(path.join(__dirname, "smithery.json"));
447
447
  });
448
448
 
449
+ // Glama checks this path on the server's own domain to confirm who maintains
450
+ // the listing; it 404'd before, though the file was already in the repo.
451
+ app.get("/.well-known/glama.json", (req, res) => {
452
+ setStaticAssetCache(res, 3600 * 24 * 7);
453
+ res.sendFile(path.join(__dirname, "glama.json"));
454
+ });
455
+
449
456
  app.get("/server.json", (req, res) => {
450
457
  setStaticAssetCache(res, 3600 * 24 * 7);
451
458
  res.sendFile(path.join(__dirname, "server.json"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "timetable-api-node",
3
- "version": "1.7.6",
3
+ "version": "1.7.9",
4
4
  "description": "Lviv (Ukraine) public transport REST API and read-only Model Context Protocol (MCP) server: stops, timetables, routes, live vehicle positions, GTFS/GTFS-RT. No API key required.",
5
5
  "main": "index.ts",
6
6
  "type": "module",
@@ -66,7 +66,7 @@
66
66
  "@types/express": "^5.0.6",
67
67
  "@types/lokijs": "^1.5.14",
68
68
  "@types/newrelic": "^9.14.8",
69
- "@types/node": "^22.20.5",
69
+ "@types/node": "^26.6.5",
70
70
  "typescript": "^7.0.2",
71
71
  "vitest": "^5.0.0"
72
72
  }