viafrei 2.7.6 → 2.7.10
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 +1 -1
- package/CHANGELOG.md +81 -0
- package/README.md +1 -1
- package/package.json +1 -1
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.
|
|
20
|
+
| Server | `viafrei` 2.7.10 (set by hand; the capture is of 2.6.40 and is taken again after the 2.7.10 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,83 @@ a Changelog and the versions follow Semantic Versioning.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [2.7.10] - 2026-11-27
|
|
9
|
+
|
|
10
|
+
**Roadworks lines say where the site is, and a publish-gate hang now shows where it stopped.** No tool name, input schema or annotation changes.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **A roadworks line says where the site is on its road (#290).** On prod, every 2.7.9 `find_roadworks_ahead` line said "Ort nicht angegeben". The API's roadworks rows carry no subtitle and no description, only the chainage (`position.fromKm`, junctions where named) and a point; the 2.7.9 tests had used hand-made rows that all carried a text. A line now says between which junctions the site lies, else its kilometre, else its point; "place not given" remains only for a row with none of them. The test is built from the API's own A7 answer, trimmed (`server/test/fixtures/roadworks-a7.json`).
|
|
14
|
+
- **A publish-gate run killed after its verdict now says how far it got (#288).** On the publish runner a gate run was killed at the 120 s deadline after printing its full verdict, four times in about five runs, each time in a different case. The hang is not reproduced: each case takes about 0.6 s locally, and about 750 gate runs in a linux/amd64 `node:24.22.3` container (1 GB, 2 CPUs) did not hang. So its cause is not fixed here. The gate now prints each step after its verdict (removing the workspace, workspace removed, exiting), each with its elapsed milliseconds. The next kill's partial output then names the phase that held it: the removal, the process exit, or, with all three lines printed, the parent still waiting on the pipe. The self-test checks these lines on every run.
|
|
15
|
+
|
|
16
|
+
### Still open
|
|
17
|
+
- #290: criteria B5, D7 and D8 (city jam questions), and the production re-run (E9).
|
|
18
|
+
- #288: the root cause, which the next occurrence's partial output will name.
|
|
19
|
+
|
|
20
|
+
## [2.7.9] - 2026-11-27
|
|
21
|
+
|
|
22
|
+
**The answers the 2.7.8 question round found wrong or guessed are fixed, and the server runs on API 2.0.7.** No tool name, input schema or annotation changes. A place tool asked for a name that several towns share now answers with the candidates (structured `{ambiguous, query, candidates}`) instead of guessing one.
|
|
23
|
+
|
|
24
|
+
**Contract note: two additive structured fields.** No field is removed or renamed.
|
|
25
|
+
- A place tool's candidates answer is a normal result (not `isError`) with `structuredContent` `{ambiguous: true, query, candidates: [{name, kind, districtCode, kreis, lat, lon}]}`. find_speed_cameras' candidates answer also carries `planningOnly` and `noticeDe`.
|
|
26
|
+
- `get_driving_rules` with a place and topic `lez` adds `zoneVerdict: {kind, text}` to its structured content when the API holds a verdict (`kind` is `inside`, `transfer` or `outside`; `text` is the answer's first line). Where no boundary is held, the field is absent and `conditionNote` carries the caveat, as before.
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
- **A home page for a browser at `GET /`.** A browser that asks for HTML gets one static page: what the server answers, its tools, resources and prompts, and how to connect. The page is a byte copy of the site's page and is generated into `src/content/home-page.ts`. It is sent with a hash-pinned Content-Security-Policy, `nosniff`, a referrer policy and `Vary: Accept`. An MCP client, `curl` or a request without `Accept: text/html` still gets the empty 404. `/mcp`, `/sse` and `/messages` are unchanged.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- **API 2.0.7.** The pin, the contract fixture and the generated operations come from the release tag. The meaning changes come with it:
|
|
33
|
+
- the platform version is the API's own;
|
|
34
|
+
- `meta.asOf` counts only the live families;
|
|
35
|
+
- speed cameras no longer list webcams;
|
|
36
|
+
- Land and "abroad" are read from Land areas.
|
|
37
|
+
- **Train boards are no longer cut at five.** The board is asked with `limit` 50, the minutes of the asked window (`duration_min`, 5 to 120) and the asked `categories`.
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
- **A town name that several towns share is asked, not guessed.** In the round, "Neustadt" took a Hamburg district. Every place tool now answers with up to five candidates, each with its Land, Kreis and coordinates, and asks for the Kreis, the Land or lat/lon (#291).
|
|
41
|
+
- One town held twice (two sources, under 2 km apart) is one place.
|
|
42
|
+
- `find_place` says such a place once and, with `near`, lists the nearest first.
|
|
43
|
+
- **"Hauptbahnhof" alone is asked.** `get_train_departures` with only station words ("Hauptbahnhof", "Hbf", "main station") now asks which town is meant instead of answering for the first match (#291).
|
|
44
|
+
- **Roadworks say where and when, for the asked days.** `find_roadworks_ahead` used to read a fixed fortnight; it now passes the asked `from`/`to` to the API (default: today and the seven days after). The answer opens with how many sites the window holds. Each line gives the road, what it is, where on the road, its start and end, and the distance; a place's sites come nearest first (#290).
|
|
45
|
+
- **`get_driving_rules` opens with the zone verdict of an asked place.** The API sent whether the place lies inside or outside, but the answer listed only the rules (round Q56, Alexanderplatz). The verdict now leads, with the zone's published name. Where no boundary is held, the existing caveat still leads and never says "outside" (#293).
|
|
46
|
+
- **A speed-camera list with no announced mobile check says so.** It adds that mobile checks are still possible anywhere (round Q49) (#291).
|
|
47
|
+
- **Every `find_speed_cameras` answer carries the § 23 notice.** The candidates of a shared town name and the no-place refusal came without it. They now open with it, and the candidates' structured content carries `planningOnly` and `noticeDe` (#291).
|
|
48
|
+
- The raw JSON a client showed for this tool (#291 B4) is not a server render path: the server's `content[0].text` is prose in every outcome (tested); the cause is most likely the client presenting `structuredContent`, not reproduced. A test over the four outcomes (a list, none, a refusal, candidates) checks that the text is not JSON and holds the notice. The result shape is unchanged.
|
|
49
|
+
- **The roadworks count cannot lie.** `find_roadworks_ahead` sends the API the limit it lists by (`limit`, default 20), so the count read from the API's page matches the lines shown (#290).
|
|
50
|
+
|
|
51
|
+
### Still open
|
|
52
|
+
- **#290:** criteria A7 and A8.
|
|
53
|
+
- **#291:** B4 (cause not reproduced, see above) and A3, "one match far larger".
|
|
54
|
+
- **Not in this release:** #289 (the server-side wording of the road verdict and the jam-first headline), #292 (watch_situation for the chargers find_charging_station shows) and #295 (find_parking for lorries says which sources it searched).
|
|
55
|
+
|
|
56
|
+
## [2.7.8] - 2026-11-27
|
|
57
|
+
|
|
58
|
+
**2.7.7 was published as an image only: its npm publish stopped in the mutation gate, so npm has no 2.7.7.** This release carries 2.7.7 with its answers unchanged, plus the fix that lets the mutation run pass.
|
|
59
|
+
|
|
60
|
+
### Fixed
|
|
61
|
+
- **The release mutation run passes its static-mutant bound again.** The npm publish of 2.7.7 stopped in the mutation gather: `src/tools/handlers.ts` had 247 static mutants, over its bound of 220. 2.7.7 added two module-level word tables for lorry rules (26 static mutants) and a module-level arrow for an address with no town (1). Stryker runs the whole suite for each static mutant. All three are now built in function declarations, with the same words and the same behaviour. The older module-level lamp-colour table (9 static mutants) is built in a function too, so the file ends at 211, below its bound of 220 rather than at it; the bound is not raised. The tests now pin every lorry layer and kind word and every lamp colour word, in both languages. Before, the static run marked these words killed or timed out; scored per test, ten of them would have survived.
|
|
62
|
+
- **A hung gate run is reported as a hang, never as "ACCEPTED".** In the publish-hygiene gate self-test, a gate run killed at the 120 s deadline has no exit code, and it was read as exit -1. The poisoned tarball was then reported as "ACCEPTED - it would have shipped". That happened twice on this release's pull request, on Node 24; a re-run passed. A killed run is now `CANNOT RUN`, named by its case. The output shows what the gate printed before the kill, and the self-test exits 2. `scripts/tools.mjs` marks a timeout's `ToolError` as `timedOut`, keeps the partial output, and gives callers `exitOf` to tell a hang from an exit code. The eight other self-tests that read `error.status ?? -1` now use `exitOrHang`: a hang stops the suite with `<suite>: CANNOT RUN`, what the program printed, and exit 2. Their verdicts are otherwise unchanged. Those suites are check-leaks, check-sources, check-versions, probe-catalogue, propose-release, release-notes, mutation-workflow and snyk-workflow. No case is slow: each gate run takes about a second, on Node 22 and on Node 24.
|
|
63
|
+
|
|
64
|
+
## [2.7.7] - 2026-11-27
|
|
65
|
+
|
|
66
|
+
**The answers the 2.7.6 prod round found wrong are right on API 2.0.4.** `check_road_status` no longer answers "internal" for a motorway asked by number. Four other answers no longer refuse or misname what the user asked: `describe_station` with no departures, `find_address` with a street alone, `check_station_facilities` on a stop that is no DB station, and `describe_station` on a main station. Lorry rules and situation lines no longer read out provider codes. Tool names and input schemas are those of 2.7.6.
|
|
67
|
+
|
|
68
|
+
### Fixed
|
|
69
|
+
- **`check_road_status` answers a motorway asked by number again.** On API 2.0.4 `{road: "A7"}`, `{road: "A1", place: "Bremen"}` and `{road: "A7", vehicle: "long_lorry"}` answered "internal". The words were written for a proposed `roadStatus` shape. API 2.0.4 sends a different one (`counts.currentFamilies`, `sourcesAnswered[].sourceFamily`, entries with `term`, `title`, `subtitle`, `description`, `detail`), and reading `currentBy.length` threw a TypeError. The contract's example sends `roadStatus: null`, so no test met the real shape. The answer now reads API 2.0.4's `roadStatus` (`roadStatusOf`):
|
|
70
|
+
- the tally names the publishers that counted, each once (the holder part of its attribution line);
|
|
71
|
+
- the "Sources that answered" line quotes each source's name, which carries a colon of its own;
|
|
72
|
+
- an Autobahn GmbH entry is said as title · junction — description, and another publisher's entry as its message, with the road named;
|
|
73
|
+
- planned, current and works-programme entries are named by their bucket; every status and term has words in both languages.
|
|
74
|
+
|
|
75
|
+
The test is built from prod's A7 answer, trimmed (`server/test/fixtures/road-status-a7.json`).
|
|
76
|
+
- **A motorway asked together with a place is that place's situations on it.** The answer already offered this narrowing ("narrow it with a place (road and place together)"), but the motorway path ignored the place.
|
|
77
|
+
- **The "tool call failed" log line names a crash.** It now carries the crash's `message` (cut at 200 characters) and a stack `frame`: the first one in the package's own `src/` or `dist/` (not a dependency's), its path cut at the last of them, else the first frame there is. Before, a prod "internal" answer left only `TypeError`. An API failure still logs its kind and no message, because its words may repeat the request's.
|
|
78
|
+
- **`describe_station` with `departures: 0` no longer answers invalid_input.** API 2.0.4's `getStationPage` lists at least one departure (minimum 1). The server now asks for one and leaves the departures section out.
|
|
79
|
+
- **`describe_station` describes the DB station of the name first.** "Leipzig Hbf" had answered with the tram stop in front of the station. A stop of that name, or of that code (`eva_no`), is described only when DB's register has no station of it.
|
|
80
|
+
- **`find_address` with a street and number alone asks for the town.** Before, it answered with the API's generic 400 sentence ("One or more parameters are invalid."). When the query reads as a street and house number with no town or postcode, the answer says which street and number it read and that the town or postcode is missing (`invalid_input`, reason `place_missing`). Any other refusal (a town alone, a query with a town or postcode) is still the API's own.
|
|
81
|
+
- **`check_station_facilities` on a stop that is no DB station.** "Stuttgart Charlottenplatz" answered "I do not know a station or stop called …", although the stop search knows the stop. The answer now gives the stop's lifts and escalators where the API publishes them for it. Otherwise it says that the stop, named as asked, is known but is no DB station and has no published lift or escalator status, and points to `describe_station` for the step-free platforms (`out_of_coverage`).
|
|
82
|
+
- **Lorry rules are said in words, once each.** Near Haan the answer listed "Kaiserstraße, Haan: priority_route" ten times, once per published segment. Each rule is now one line: the layer in words (Lkw-Vorrangroute, Lang-Lkw-Positivnetz, Beschränkung, Lkw-Zone), the publisher's words or what is limited in words (Höhe, Gewicht, Breite, Länge, Achslast, Durchfahrtverbot; a kind added later is said as published) with the published figure, and the direction where one is stated.
|
|
83
|
+
- **A situation line never reads out a provider code or an empty road.** The city of Köln's closure read "- : Straßensperrung", and roadworks read "A7: constructionWorks". A DATEX code is now said by its kind, as the motorway list already did. A situation with no road starts with its words.
|
|
84
|
+
|
|
8
85
|
## [2.7.6] - 2026-11-27
|
|
9
86
|
|
|
10
87
|
**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.
|
|
@@ -4643,6 +4720,10 @@ for it, so the number is free; the bridge will use it when the platform does.
|
|
|
4643
4720
|
commits, and a squash makes them unreachable from `main` - which would turn
|
|
4644
4721
|
the check red on `main` for everybody, for something no contributor did.
|
|
4645
4722
|
|
|
4723
|
+
[2.7.10]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.10
|
|
4724
|
+
[2.7.9]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.9
|
|
4725
|
+
[2.7.8]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.8
|
|
4726
|
+
[2.7.7]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.7
|
|
4646
4727
|
[2.7.6]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.6
|
|
4647
4728
|
[2.7.5]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.5
|
|
4648
4729
|
[2.7.4]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.7.4
|
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.
|
|
2339
|
+
**24 tools, 9 prompts, 10 resources and 2 resource templates** — server 2.7.10, snapshot of 2026-11-20. The version 2.7.10 was set by hand; the capture is of 2.6.40 and is taken again after the 2.7.10 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
|
+
"version": "2.7.10",
|
|
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",
|