viafrei 2.2.14 → 2.3.3
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 +8 -6
- package/CHANGELOG.md +58 -0
- package/README.md +25 -73
- package/package.json +1 -1
package/API.md
CHANGED
|
@@ -9,7 +9,7 @@ the server's own text, reproduced verbatim, because that text is what an
|
|
|
9
9
|
assistant reads when it decides which tool to call; paraphrasing it here would
|
|
10
10
|
document a different server.
|
|
11
11
|
|
|
12
|
-
**It is a dated snapshot, taken on 2026-10-
|
|
12
|
+
**It is a dated snapshot, taken on 2026-10-21.** Generating this file makes
|
|
13
13
|
it impossible for the document and the snapshot to disagree — CI regenerates and
|
|
14
14
|
compares — but it cannot keep the snapshot from ageing against the live server,
|
|
15
15
|
because a capture is a point in time. **The source of truth is the running
|
|
@@ -17,11 +17,11 @@ server:** connect any MCP client and call `tools/list`.
|
|
|
17
17
|
|
|
18
18
|
| | |
|
|
19
19
|
| --- | --- |
|
|
20
|
-
| Server | `viafrei` 2.
|
|
20
|
+
| Server | `viafrei` 2.3.3 |
|
|
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 |
|
|
24
|
-
| Captured from | `https://mcp.viafrei.de/mcp` on 2026-10-
|
|
24
|
+
| Captured from | `https://mcp.viafrei.de/mcp` on 2026-10-21 |
|
|
25
25
|
| Surface | 22 tools, 10 resources, 2 resource templates, 9 prompts |
|
|
26
26
|
| Parameter schemas | JSON Schema draft-07 |
|
|
27
27
|
| Capabilities | `tools`, `resources`, `prompts`, `logging` |
|
|
@@ -546,7 +546,7 @@ The server's own instructions to a connecting client, verbatim:
|
|
|
546
546
|
|
|
547
547
|
**Not read-only** — it creates or removes state. Answers from data this service already holds (closed world). Idempotent: false. Destructive: false.
|
|
548
548
|
|
|
549
|
-
> Opens a watch so THIS conversation is told when something changes: a road
|
|
549
|
+
> Opens a watch so THIS conversation is told when something changes: a road closed or restricted (not a jam), a stop running late, a weather warning, a charger freeing up. Use when asked to be told later: "sag mir Bescheid, wenn die A8 wieder frei ist", "tell me when a warning comes for Kiel". A name is enough as the key; no lookup first. Do NOT use to look up now, nor for e-mail, SMS or alerts outside this chat — we cannot send one; say so. Set hours (≤ 24, default 3) for the time asked; condition narrows it (only the reopening, one charge point). Session-scoped, ≤ 10 watches. Show attribution.
|
|
550
550
|
|
|
551
551
|
| parameter | type | required | default | constraints |
|
|
552
552
|
| --- | --- | --- | --- | --- |
|
|
@@ -555,10 +555,11 @@ The server's own instructions to a connecting client, verbatim:
|
|
|
555
555
|
| `condition` | object | no | — | keys: `delay_min`, `late_share`, `min_trips`, `radius_km`, `min_level`, `event`, `point_id` (each described below); `additionalProperties` |
|
|
556
556
|
| `hours` | number | no | — | min 0.25; max 24 |
|
|
557
557
|
| `language` | string | no | `"de"` | one of `"de"`, `"en"` |
|
|
558
|
+
| `request` | string | no | — | max length 200 |
|
|
558
559
|
| `until` | string | no | — | format `date-time`; pattern (288 characters — see the description; the `format` above is the short answer) |
|
|
559
560
|
|
|
560
561
|
- **`key`** — The thing to watch, in the person's own words — a name is enough and no read tool is needed first; the server resolves it and the answer names the key it resolved to. `road`: a road number ("A8", "B27"). `place`: a town or address ("Fulda"). `weather`: a place name ("Kiel"), resolved to the DWD warn cell it lies in — or a warn cell id ("801002000"); a Land or Kreis is an area and takes no single cell. `station`: a stop or station name ("Köln Hbf", "München, Marienplatz"), resolved to its DHID the way get_departures resolves a stop — or a DHID ("de:14612:28"); an EVA number from get_train_departures ("8000207") is not a DHID and is refused. `charger`: a place ("Würzburg"), resolved to the nearest charging site that reports live occupancy — or a site id from find_charging_station. `region`: a city, district or Land ("Hamburg", "Landkreis Fulda"), resolved to its AGS key the way check_transit_disruption resolves its region — or an AGS key ("14612"). A name that fits several places or stops gets a which-one list and opens no watch; call again with the chosen line.
|
|
561
|
-
- **`kind`** — What kind of thing to watch. `road` = one motorway or federal road (key: "A8", "B27") — reports a closure or restriction appearing or clearing; `station` = one public-transport stop (key: its name, "Köln Hbf", or its DHID) — reports departures running late past the threshold; `region` = a city, district or Land (key: its name, "Hamburg", or its AGS key, "14612") — reports the share of late trips crossing the threshold; `place` = a town or address (key: "Fulda") — reports road restrictions appearing within the radius; `weather` = one DWD warn cell (key: a place name, "Kiel", or the cell id) — reports an official warning coming into force; `charger` = one charging site (key: a place, "Würzburg", or the site id) — reports a point turning free.
|
|
562
|
+
- **`kind`** — What kind of thing to watch. `road` = one motorway or federal road (key: "A8", "B27") — reports a closure or restriction appearing or clearing, not a jam; `station` = one public-transport stop (key: its name, "Köln Hbf", or its DHID) — reports departures running late past the threshold; `region` = a city, district or Land (key: its name, "Hamburg", or its AGS key, "14612") — reports the share of late trips crossing the threshold; `place` = a town or address (key: "Fulda") — reports road restrictions appearing within the radius, not a jam; `weather` = one DWD warn cell (key: a place name, "Kiel", or the cell id) — reports an official warning coming into force; `charger` = one charging site (key: a place, "Würzburg", or the site id) — reports a point turning free.
|
|
562
563
|
- **`condition`** — Optional threshold; the keys of each kind, with an example: road {"event": "reopen"} (only the reopening); station {"delay_min": 20}; region {"late_share": 0.3, "delay_min": 5, "min_trips": 20}; place {"radius_km": 10}; weather {"min_level": 3}; charger {"point_id": "2"} (one charge point). Any other key, or a key of another kind, is refused by name; leave it out for the default. The answer repeats the condition it applies.
|
|
563
564
|
- `delay_min` (integer, min 1; max 600) — station: minutes of delay that count as a disruption (default 10).
|
|
564
565
|
- `late_share` (number, min 0.01; max 1) — region: share of observed trips running late that trips the watch (default 0.25).
|
|
@@ -569,6 +570,7 @@ The server's own instructions to a connecting client, verbatim:
|
|
|
569
570
|
- `point_id` (string, min length 1; max length 200) — charger: one charge point of the site instead of any of them.
|
|
570
571
|
- **`hours`** — How long to watch, in hours (default 3, maximum 24). Prefer this over `until`: it needs no knowledge of the current time. Give one of `hours` or `until`, never both.
|
|
571
572
|
- **`language`** — Set this on every call to the language the person is writing in: "en" if they wrote English, "de" if they wrote German. Do not leave it out: it defaults to German ("de"), which is only the fallback when the language is genuinely unclear, so an English question sent without it is answered in German — a wrong answer. Place names, station names and road numbers are never translated in either language; in English the German term is kept in parentheses so the person recognises it on signs and in local apps.
|
|
573
|
+
- **`request`** — The person's request in their own words ("sag mir Bescheid, wenn sich auf der A7 ein Stau bildet"). Pass it on every call: a `road` or `place` watch reports closures and restrictions, never a jam or slow traffic, and the answer says so — a request about a jam alone opens no watch.
|
|
572
574
|
- **`until`** — An explicit end instant as ISO-8601 with an offset ("2026-09-20T18:40:00+02:00"), at most 24 hours ahead. Use only when the person named a time; otherwise use `hours`. Give one of `hours` or `until`, never both.
|
|
573
575
|
|
|
574
576
|
### `stop_watch` — Stop a watch
|
|
@@ -753,5 +755,5 @@ single call.
|
|
|
753
755
|
---
|
|
754
756
|
|
|
755
757
|
Generated from `catalogue.json` by `scripts/gen-api-doc.mjs`. The snapshot was
|
|
756
|
-
read from `https://mcp.viafrei.de/mcp` on 2026-10-
|
|
758
|
+
read from `https://mcp.viafrei.de/mcp` on 2026-10-21; no tool was invoked to
|
|
757
759
|
produce it, so no data provider was contacted.
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,62 @@ a Changelog and the versions follow Semantic Versioning.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [2.3.3] - 2026-10-21
|
|
9
|
+
|
|
10
|
+
**Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
|
|
11
|
+
relays to. The running server reports 2.3.3 while the registry's latest is 2.3.2, so
|
|
12
|
+
this release moves the package to the server's number and carries whatever had been
|
|
13
|
+
waiting under `[Unreleased]`. Prepared by the `Version sync` workflow: the shipped
|
|
14
|
+
reference was re-captured from the running server, and the probe reported the surface
|
|
15
|
+
**unchanged** — only the version string and the capture date moved.
|
|
16
|
+
|
|
17
|
+
## [2.3.2] - 2026-10-20
|
|
18
|
+
|
|
19
|
+
**Answers that name the place they used, one line per place, and faster lookups.**
|
|
20
|
+
The package matches the server's 2.3.2 and covers the server releases 2.3.0 to
|
|
21
|
+
2.3.2, which are fixes from a 1,000-question test round. No tool, prompt or
|
|
22
|
+
resource was added, removed or renamed. One tool gained an optional argument.
|
|
23
|
+
|
|
24
|
+
### Changed (tool surface)
|
|
25
|
+
|
|
26
|
+
- **`watch_situation`**: a road or place watch reports closures and restrictions,
|
|
27
|
+
not jams, and the description now says so. The new optional `request` argument
|
|
28
|
+
carries the person's own words. A watch asked for a jam alone opens nothing and
|
|
29
|
+
says why; a mixed request opens the watch and says what it does not cover.
|
|
30
|
+
|
|
31
|
+
### Fixed (answers)
|
|
32
|
+
|
|
33
|
+
- **The place used is named.** When a place, station or stop was matched under
|
|
34
|
+
another spelling or name ("Munich", a typo), the answer's first line says which
|
|
35
|
+
place it answered for. English and French names of the large cities and the
|
|
36
|
+
Länder resolve.
|
|
37
|
+
- **Every label offered in a which-one list resolves** when it is handed back,
|
|
38
|
+
in one call. A junction label ("AS Cloppenburg (A1)") is read on its road.
|
|
39
|
+
- **One place, one line.** The same charging site, works site or car park from two
|
|
40
|
+
feeds within 50 m is one line, and every feed is credited.
|
|
41
|
+
- **No all-clear for a road we hold nothing on.** A motorway number that exists
|
|
42
|
+
but has no stretch with us, or one that does not exist, is refused with the
|
|
43
|
+
nearest real numbers.
|
|
44
|
+
- **Each source carries its own "as of" time**, the headline takes the newest live
|
|
45
|
+
one, and a source that has stopped publishing is flagged.
|
|
46
|
+
- **Public names, not internal ids**: a low-emission zone by its city, postcodes
|
|
47
|
+
with their leading zero, no record numbers in road entries.
|
|
48
|
+
- **Copy**: real plurals, the formal "Sie" in German, no German words in English
|
|
49
|
+
answers except quoted provider text, relative dates counted from today in Berlin.
|
|
50
|
+
- **Roads**: closures are counted by what is closed (a footway or one lane is a
|
|
51
|
+
restriction); in a dense city the headline gives the count within 3 km first;
|
|
52
|
+
roadworks by place also ask the Land roadworks feeds.
|
|
53
|
+
- **Places**: a city district never carries another Land; an address that is not found
|
|
54
|
+
says whether the town or only the street is missing from the map, and suggests
|
|
55
|
+
similar streets.
|
|
56
|
+
- **Transit**: an empty departure board names the next departure; a Land whose
|
|
57
|
+
service alerts have gone silent says since when; train lines read "S2", not "S S2".
|
|
58
|
+
- **Charging**: a site whose name says it is private is not listed; an ended source
|
|
59
|
+
yields to a current one at the same place.
|
|
60
|
+
- **Speed**: city lorry restrictions answer in well under a second (was about 6 s),
|
|
61
|
+
weather warnings for a place are found faster, and the street suggestion reads
|
|
62
|
+
the nearest addresses first.
|
|
63
|
+
|
|
8
64
|
## [2.2.14] - 2026-10-20
|
|
9
65
|
|
|
10
66
|
**Hamburg's street detail, lorry rules for more cities, step-free platforms and English summaries.**
|
|
@@ -3234,6 +3290,8 @@ for it, so the number is free; the bridge will use it when the platform does.
|
|
|
3234
3290
|
commits, and a squash makes them unreachable from `main` - which would turn
|
|
3235
3291
|
the check red on `main` for everybody, for something no contributor did.
|
|
3236
3292
|
|
|
3293
|
+
[2.3.3]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.3.3
|
|
3294
|
+
[2.3.2]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.3.2
|
|
3237
3295
|
[2.2.14]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.2.14
|
|
3238
3296
|
[2.2.6]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.2.6
|
|
3239
3297
|
[2.2.3]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v2.2.3
|
package/README.md
CHANGED
|
@@ -41,79 +41,31 @@ on viafrei.de, with a map.
|
|
|
41
41
|
> from our data, and AI can make mistakes, so check anything important (a
|
|
42
42
|
> closure, a departure, a price) against the source each answer names.
|
|
43
43
|
|
|
44
|
-
> **New in 2.2
|
|
45
|
-
>
|
|
44
|
+
> **New in 2.3.2: answers that name the place they used, one line per place, and
|
|
45
|
+
> faster lookups.** Since 2.2.14, from a 1,000-question test round:
|
|
46
46
|
>
|
|
47
|
-
> - **
|
|
48
|
-
>
|
|
49
|
-
>
|
|
50
|
-
>
|
|
51
|
-
>
|
|
52
|
-
>
|
|
53
|
-
>
|
|
54
|
-
>
|
|
55
|
-
>
|
|
56
|
-
>
|
|
57
|
-
>
|
|
58
|
-
>
|
|
59
|
-
>
|
|
60
|
-
>
|
|
61
|
-
>
|
|
62
|
-
>
|
|
63
|
-
>
|
|
64
|
-
> - **
|
|
65
|
-
>
|
|
66
|
-
> and
|
|
67
|
-
> bus stop named with its city ("Stuttgart Charlottenplatz") is that stop, not
|
|
68
|
-
> the nearest railway station. Dresden's stop register answers, and in Frankfurt
|
|
69
|
-
> the answer names the traffic signals near a stop that have an acoustic signal
|
|
70
|
-
> for blind pedestrians.
|
|
71
|
-
> - **Low-emission zones from Essen's and Bochum's own boundaries.**
|
|
72
|
-
> `get_driving_rules` with a place now checks the point against the zone each
|
|
73
|
-
> city publishes, as it did for Berlin, Aachen, Duisburg and München. Two
|
|
74
|
-
> publishers' polygons count as one zone only when they share at least half of
|
|
75
|
-
> the smaller one, so a sliver of a neighbour's zone no longer decides the answer.
|
|
76
|
-
> - **English summaries.** With `language: "en"`, every road and transit entry
|
|
77
|
-
> carries a one-line `gist` in our own words ("Closure on the A59; since
|
|
78
|
-
> 2026-10-05, until 2026-10-23 12:00, whole measure until 2031-12-23."). The
|
|
79
|
-
> publisher's German words stay quoted and labelled as German, never translated.
|
|
80
|
-
> - **A reason code on every tool error.** An error result now carries
|
|
81
|
-
> `_meta.errorCode` from a closed list of seven: `invalid_input`, `not_found`,
|
|
82
|
-
> `out_of_coverage`, `unavailable`, `limit_reached`, `timeout`, `internal`. A
|
|
83
|
-
> client can decide whether to retry, rephrase or give up without parsing the
|
|
84
|
-
> message.
|
|
85
|
-
> - **More context around a place**: Brandenburg's road border crossings to
|
|
86
|
-
> Poland, Karlsruhe's winter-service streets, Schleswig-Holstein's signed detour
|
|
87
|
-
> routes with their extra distance and last day, Aachen's pedestrian-zone
|
|
88
|
-
> entrances with their delivery hours, München's loading and delivery bays (some
|
|
89
|
-
> carry a sensor; its reading is not published, so a bay is never called free),
|
|
90
|
-
> and what Berlin's counting sites usually count at this hour, from a past
|
|
91
|
-
> month's median and labelled as such.
|
|
92
|
-
> - **Parking**: Kiel's car parks and P+R sites, Frankfurt's disabled-badge bays,
|
|
93
|
-
> and a Karlsruhe lorry bay's fee and time limit.
|
|
94
|
-
> - **Charging**: smartlab ended its ladenetz.de and ladebusiness publications on
|
|
95
|
-
> 2026-10-19. Their sites answer with place, plugs and power only, dated and with
|
|
96
|
-
> no status, through 17 Nov 2026, and then stop. A live feed that has answered
|
|
97
|
-
> "unchanged" for too long is no longer called current.
|
|
98
|
-
> - **Smaller things**: a mistyped tool name gets the closest real names back;
|
|
99
|
-
> `watch_situation` takes a region by its name ("Hamburg"); `horizon_days` counts
|
|
100
|
-
> through the last day you mean; one police message carried by two feeds is one
|
|
101
|
-
> line, and one closure published once per direction is one line "both
|
|
102
|
-
> directions"; a long answer is cut at a whole line; the coverage lists in the
|
|
103
|
-
> road tools' descriptions now match what they read (Land roads in NI, BW, MV, SN
|
|
104
|
-
> and TH; federal roads also in SH, BY and BE); LPG and CNG are said to be held
|
|
105
|
-
> by no source.
|
|
47
|
+
> - **The place used is named.** Asked for "Munich", every place tool answers
|
|
48
|
+
> "Answering for München (you asked "Munich")." on its first line; the same for a
|
|
49
|
+
> station or stop matched under another spelling.
|
|
50
|
+
> - **Every label offered resolves.** A which-one list's labels ("Wolfen
|
|
51
|
+
> (Bitterfeld)", "AS Cloppenburg (A1)") answer in one call when handed back.
|
|
52
|
+
> - **One place, one line.** In Oschatz, a works site carried by two of Saxony's
|
|
53
|
+
> feeds (its closure system and its roadworks feed) reads once: "Bahnhofstraße · S30 — Oschatz;
|
|
54
|
+
> Erneuerung Gehweg (laufend, 31.08.2026–30.10.2026; 0,3 km)".
|
|
55
|
+
> - **No false all-clear.** `check_autobahn_traffic` for a motorway number we
|
|
56
|
+
> hold no stretch of says so and names the nearest real numbers, instead of
|
|
57
|
+
> "nothing reported".
|
|
58
|
+
> - **Dense cities read better.** `check_road_status {place: "Kiel"}` leads with
|
|
59
|
+
> "im Umkreis von 3 km 61 Meldungen, davon 11 Sperrungen", then the whole
|
|
60
|
+
> 25 km.
|
|
61
|
+
> - **A near miss on an address helps.** `find_address` for "Heisfeldr Straße 10,
|
|
62
|
+
> Leer" says the town holds addresses but none on that street, and suggests
|
|
63
|
+
> "Heisfelder Straße (26789 Leer (Ostfriesland)) — 114 kartierte Adressen".
|
|
64
|
+
> - **Watches say what they watch.** `watch_situation` takes the person's words in
|
|
65
|
+
> `request`; a jam alone opens no watch, because a road watch reports closures
|
|
66
|
+
> and restrictions, not jams.
|
|
106
67
|
>
|
|
107
|
-
>
|
|
108
|
-
> Rhine-Westphalia, VMZ Bremen), city roadworks from fifteen city and Land portals,
|
|
109
|
-
> the low-emission-zone check by place, the measured traffic of Hamburg and Bonn,
|
|
110
|
-
> and Dortmund's free disabled-badge bays.
|
|
111
|
-
>
|
|
112
|
-
> **Earlier, in 2.1:** viafrei.de opens on a live conversation and an
|
|
113
|
-
> [examples page](https://viafrei.de/en/examples), every German motorway has a
|
|
114
|
-
> [live page](#-motorway-pages) of its own, the site's cards say what the tools say,
|
|
115
|
-
> hydrogen stations, company offices, and more city roads and car parks. Every
|
|
116
|
-
> source is listed, with what it feeds and what we hold back, in
|
|
68
|
+
> Every source is listed, with what it feeds and what we hold back, in
|
|
117
69
|
> [SOURCES.md](SOURCES.md). The [CHANGELOG](CHANGELOG.md) has the whole list.
|
|
118
70
|
|
|
119
71
|
---
|
|
@@ -1034,7 +986,7 @@ Restart the client and ask one of the questions above.
|
|
|
1034
986
|
|
|
1035
987
|
<!-- catalogue:begin — generated by scripts/gen-readme-catalogue.mjs from catalogue.json; do not edit by hand -->
|
|
1036
988
|
|
|
1037
|
-
**22 tools, 9 prompts, 10 resources and 2 resource templates** — server 2.
|
|
989
|
+
**22 tools, 9 prompts, 10 resources and 2 resource templates** — server 2.3.3, snapshot of 2026-10-21. Each line is the server's own words; the full parameters are in [API.md](API.md).
|
|
1038
990
|
|
|
1039
991
|
#### 🚗 On the road
|
|
1040
992
|
|
|
@@ -1090,7 +1042,7 @@ Restart the client and ask one of the questions above.
|
|
|
1090
1042
|
|
|
1091
1043
|
| tool | what it answers |
|
|
1092
1044
|
|---|---|
|
|
1093
|
-
| [`watch_situation`](API.md#watch_situation--watch-for-a-change) — Watch for a change | Opens a watch so THIS conversation is told when something changes: a road
|
|
1045
|
+
| [`watch_situation`](API.md#watch_situation--watch-for-a-change) — Watch for a change | Opens a watch so THIS conversation is told when something changes: a road closed or restricted (not a jam), a stop running late, a weather warning, a charger freeing up. |
|
|
1094
1046
|
| [`stop_watch`](API.md#stop_watch--stop-a-watch) — Stop a watch | Ends a watch this conversation opened with watch_situation, so no further notifications arrive for it. |
|
|
1095
1047
|
|
|
1096
1048
|
#### 🧭 Prompts — ready-made briefings
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viafrei",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "German motorway traffic and roadworks, rail, parking, charging, fuel, address and weather data in your AI assistant - MCP, no API key. stdio bridge to the hosted ViaFrei MCP server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|