viafrei 2.7.3 → 2.7.6

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/API.md CHANGED
@@ -17,7 +17,7 @@ server:** connect any MCP client and call `tools/list`.
17
17
 
18
18
  | | |
19
19
  | --- | --- |
20
- | Server | `viafrei` 2.7.3 (set by hand; the capture is of 2.6.40 and is taken again after the 2.7.3 deploy) |
20
+ | Server | `viafrei` 2.7.6 (set by hand; the capture is of 2.6.40 and is taken again after the 2.7.6 deploy) |
21
21
  | MCP protocol | `2025-06-18` |
22
22
  | Streamable HTTP | https://mcp.viafrei.de/mcp |
23
23
  | Legacy HTTP+SSE | https://mcp.viafrei.de/sse |
package/CHANGELOG.md CHANGED
@@ -5,6 +5,71 @@ a Changelog and the versions follow Semantic Versioning.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.7.6] - 2026-11-27
9
+
10
+ **The server runs on API 2.0.4 and its answers say what the API gives.** The server's tools, prompts and resources are those of 2.7.5; no tool name or input schema changes, and the reason codes and fields below are additive.
11
+
12
+ ### Fixed
13
+ - **The release's mutation run ends inside its 20-minute shards again.** `find_poi`'s OSM word tables (`server/src/tools/osm-words.ts`) were module-level, so Stryker treated their ~1,050 mutants as static and ran the whole suite for each one. That took about two hours against an estimate of 259 s, and shard 6 of the 2.7.4 and 2.7.5 publishes hit its limit, so the publish was skipped. The tables are now built inside functions, so each mutant runs only the tests that read it (about one). A new test pins every word in both languages, so the mutants are killed, not left alive. The file's pieces are measured (`server/scripts/mutation-weights.json`). `scripts/mutation-weights.mjs` now also reads the log of the reusable workflow, whose lines start with `Mutation / `.
14
+ - **An empty list is never sent as an empty query value.** The API client left out `undefined`, `null` and `""` but sent an empty array as `name=`, which API 2.0.4 refuses with 400 "empty value". It now leaves out any parameter whose value is empty once joined. The API mock refuses empty values as the API does, so every tool test also checks this (#281).
15
+ - **`describe_station` on a stop that is not in DB's register.** API 2.0.4 builds a page for such a stop with no register number or slug. Its `pageUrl` is the stop's page under the nearest station page that lists it, or null. A null page address is left out, so the answer shows the stop's name alone and never the text "null" (#279).
16
+ - **`find_parking` lists OpenStreetMap's car parks where no publisher reports a site.** In central Berlin it answered "I know of no parking", but the API's answer carries OpenStreetMap's car parks in `meta.around.osmCarParks`. They are now listed in the API's order and cap:
17
+ - each line gives the name and operator, the distance and the address, then the extract day; the list is credited by the ODbL line the answer carries;
18
+ - in `structuredContent.osmFacilities`, capacity and free spaces are null, never zero;
19
+ - beside the publishers' sites they follow as a separate block;
20
+ - under a free-spaces or facilities filter, the answer first says that the filter cannot be checked for them (#280).
21
+ - **`find_charging_station` names a site by its name and address, never by an internal id.** A site with no name was shown by its record id, such as `bnetza_lsr:52.52,13.40:…`. Without `max_power_kw`, `operator` or `conditions`, the tool now asks API 2.0.4 for its place grouping (`group=place`), which folds one place's records into one line labelled by its name and address. Each line gives:
22
+ - the operator, the plugs and the power;
23
+ - the price per kWh as the API publishes it, to three decimals with trailing zeros trimmed ("0,489 €/kWh brutto", "0,59"), marked net or gross, and never printed when it is not published;
24
+ - the live counts with their time. A status that no point confirms now leads with its last counts, followed by "status from 09:36 (9 h 17 min ago) — possibly out of date";
25
+ - "per charging point register" for register places, with the register's release date said once;
26
+ - "located by its address" where that applies.
27
+
28
+ Under the list the answer adds "price per kWh published for k of n only", the sites `only_available` hid, by reason, and the site ids a charger watch takes for the places that report a status. With the filters the grouping does not take, each record keeps its own line, named by its name, its operator or "charging site". An empty filtered answer counts the circle by the API's `meta.inRadius` without a second read. `watch_situation` (kind `charger`) names a site without a name by its operator in the same way (#269).
29
+ - **`find_place` names the Kreis a place lies in and dates the place data by its day.** Each line now gives the Kreis that the API's place search states ("Kreis Borken", "kreisfreie Stadt München"), and an English answer says "district Borken" or "independent city München". A place without a Kreis leaves no empty slot in its line. An English line gives the English name beside the German one: "München (Munich)". The as-of is the place data's day ("As of 2026-11-23"), never a clock time from its load. When the data carries no time, no as-of is said. The cap of 10 that the head names is the catalogue's and the API's (#268).
30
+ - **`check_transit_disruption` says the share of late trips and the alerts, never a bare "No disruptions found."** A region's answer now leads with the share of observed trips that were late at least once. It gives the counts, the source's own window and the stops reporting, for example "Berlin: 23% of observed trips late at least once (1,007 of 4,437 trips in the last 60 minutes, reports from 672 stops)". The same sentence names the trips that skip a stop. The next line gives the median worst delay, the untimed trips and the newest report counted. The counting, change-only and per-line notes follow. The alerts close the answer:
31
+ - when alerts are in force, how many there are (also when the list is cut), each with its lines, headline and end;
32
+ - when none is in force: "none in force now", or that no source covers the area, with the last day one arrived, or that the feeds are not current.
33
+
34
+ When reports arrived but no trip had a delay to count, the answer says so and gives the untimed trips and the stops reporting. "No realtime reports" is kept for a window where nothing arrived at all. A region asked by its code is named by the API's name for it. A line asked alone gives its alerts anywhere, and says when the timetable knows no such line. The API does not carry a trend against the window before, the reports behind the counts, the trips cancelled, or its late threshold in minutes, so none of these is said (#270).
35
+ - **Every tool refusal carries its reason code.** Most handler refusals carried no `_meta.errorCode`, so the request log and the usage counters could not count them. Examples are an unknown station, stop, motorway or region, a missing station, a watch without kind or key, the eleventh watch, and a bad `stop_watch` call. Each handler now names its own code: `not_found`, `invalid_input`, `limit_reached` or `unavailable`. An API failure is coded where it is worded: a quota or rate limit is `limit_reached`, and an overload is `unavailable`. Where the refusal is about an argument clause, the code comes with an `errorReason`. An unknown region in `check_transit_disruption` gives the new reason `region`, and an unknown place in `get_driving_rules` is now `not_found` (#262).
36
+ - **`watch_situation` names a station watched from a name by that name, not by its stop id.** The answer said "I am watching stop 1:de:…" and "Resolved from …: the stop X, DHID 1:de:…". It now says "I am watching stop X" and "Resolved from …: the stop X". `structuredContent.key` still carries the id the platform watches.
37
+ - **`describe_location` refuses a call without both coordinates, as `invalid_input`.** It no longer fails inside. A call with no coordinate carries `place_missing`, and a call with only half of one carries `half_coordinate`. The schema check normally refuses such a call first.
38
+
39
+ ### Changed
40
+ - **The server runs against ViaFrei API 2.0.4** (`server/api.pin`, the contract fixture copied from the release tag).
41
+ - A refusal under load (problem type `overloaded`, a 429 or a 503) is now told apart from the key's rate or quota by its problem type only. API 2.0.4 sends it RateLimit-Policy but no RateLimit field. It is answered as "the API is busy, ask again in N seconds" with error code `unavailable`, never as a limit reached.
42
+ - A spent quota (`quota-exceeded`) says that the access's quota is used up, not "ask again in a minute".
43
+ - Both answers name the API's own `retryAfter` when it gives one.
44
+ - `find_nearby`'s OpenStreetMap filling stations without a price (`data.osmFuel`) are the released field, credited by the ODbL line the answer carries.
45
+ - A road situation's id goes into the `getRoadSituation` path percent-encoded, slashes, spaces and colons included, because API 2.0.4 takes the id exactly as it lists it. No tool reads one yet; a client test pins the encoding.
46
+
47
+ ## [2.7.5] - 2026-11-26
48
+
49
+ **The server runs on API 1.2.2.** The server's tools, prompts and resources are those of 2.7.4; what changes is where three answers come from: the place resolver, the stop boards around a point and the station page are the API's released operations.
50
+
51
+ ### Changed
52
+ - **The server runs against ViaFrei API 1.2.2** (`server/api.pin`), where the place resolver, the stop boards around a point and the station page are released operations. A place name is resolved by the API (`resolvePlace`) before the place search; `get_departures` around a place resolves the place first and asks the stop boards for its point; `describe_station` reads the released station page.
53
+
54
+ ### Not carried by API 1.2.2
55
+ What today's server said and the released API does not return; the answer leaves it out rather than guessing it:
56
+ - the **FlixBus/FlixTrain block** after the stops around a place (`get_departures`): the released stop boards carry no long-distance departures;
57
+ - on the station page (`describe_station`): a lift's **reason** and **expected return time**, its **tracks** (an English line gives DB's position words instead, or "no location given" only where DB gives none), and the **rail-replacement flag** of a departure;
58
+ - a station page section the API gives no time of its own is said without "As of"; the rail lamp and step-free now are left out where such a section holds nothing.
59
+
60
+ ## [2.7.4] - 2026-11-25
61
+
62
+ **Seven answers carry what today's server says, where the API already returns it.** The server's tools, prompts and resources are those of 2.7.3; what changes is the wording of these answers.
63
+
64
+ ### Fixed
65
+ - **`find_parking`** lists each site with its kind, spaces, free places, the share occupied and the operator's status with its time; a reading from another day is dated, and a reading more than 30 minutes old (three of the 10-minute updates today's server assumes when a feed's own cadence is unknown) says its age and is worded as last reported. The head line and the not-full note are today's.
66
+ - **`describe_location`** gives the low-emission zone's details under its line: the plaque, an exempt road, a released area and the date of the zone data.
67
+ - **`find_poi`** answers with today's head and lines (kind in words, brand, address, distance from the place, the page count and the extract date); a town given with `in` is used as given and `near` is not looked up.
68
+ - **`check_weather_warnings`** gives each warning its DWD level name, hazard, area and warn cell, valid window, the headline and the sentence for the drive.
69
+ - **`check_autobahn_traffic`** gives one line per entry with since and until, the delay, its length and distance, and the provider's own text; a provider code is said by its kind, never read out.
70
+ - **`find_address`** folds one door mapped twice (a chain of points within 150 m with no contradicting postcode or town, names folded as today) into one point with a note, gives the Land and numbers points further apart with their spread.
71
+ - **`find_roadworks_ahead`** refuses a calendar date it cannot read with today's message.
72
+
8
73
  ## [2.7.3] - 2026-11-24
9
74
 
10
75
  **Three answers say what the API already returns.** The server's tools, prompts and resources are those of 2.7.2, and one parameter's text (`limit` of `get_departures`) now says it counts per stop around a place; what changes is how `get_departures`, `check_road_status` and `check_weather_warnings` word their answers.
@@ -4578,6 +4643,9 @@ for it, so the number is free; the bridge will use it when the platform does.
4578
4643
  commits, and a squash makes them unreachable from `main` - which would turn
4579
4644
  the check red on `main` for everybody, for something no contributor did.
4580
4645
 
4646
+ [2.7.6]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.6
4647
+ [2.7.5]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.5
4648
+ [2.7.4]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.4
4581
4649
  [2.7.3]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.3
4582
4650
  [2.7.2]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.2
4583
4651
  [2.7.1]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.1
package/README.md CHANGED
@@ -2336,7 +2336,7 @@ Restart the client and ask one of the questions above.
2336
2336
 
2337
2337
  <!-- catalogue:begin — generated by scripts/gen-readme-catalogue.mjs from catalogue.json; do not edit by hand -->
2338
2338
 
2339
- **24 tools, 9 prompts, 10 resources and 2 resource templates** — server 2.7.3, snapshot of 2026-11-20. The version 2.7.3 was set by hand; the capture is of 2.6.40 and is taken again after the 2.7.3 deploy. Each line is the server's own words; the full parameters are in [API.md](API.md).
2339
+ **24 tools, 9 prompts, 10 resources and 2 resource templates** — server 2.7.6, snapshot of 2026-11-20. The version 2.7.6 was set by hand; the capture is of 2.6.40 and is taken again after the 2.7.6 deploy. Each line is the server's own words; the full parameters are in [API.md](API.md).
2340
2340
 
2341
2341
  #### 🚗 On the road
2342
2342
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viafrei",
3
- "version": "2.7.3",
3
+ "version": "2.7.6",
4
4
  "description": "The German Real-Time Mobility Context Platform for AI: live motorway traffic and roadworks, trains and buses, parking, charging, fuel and weather in your AI assistant - MCP, no API key, no sign-up. stdio bridge to the hosted ViaFrei MCP server.",
5
5
  "keywords": [
6
6
  "mcp",