viafrei 1.5.10 → 1.6.2

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 (4) hide show
  1. package/API.md +4 -4
  2. package/CHANGELOG.md +43 -1
  3. package/README.md +428 -277
  4. package/package.json +4 -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-03.** Generating this file makes
12
+ **It is a dated snapshot, taken on 2026-10-04.** 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` 1.5.10 |
20
+ | Server | `viafrei` 1.6.2 |
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-03 |
24
+ | Captured from | `https://mcp.viafrei.de/mcp` on 2026-10-04 |
25
25
  | Surface | 20 tools, 10 resources, 2 resource templates, 9 prompts |
26
26
  | Parameter schemas | JSON Schema draft-07 |
27
27
  | Capabilities | `tools`, `resources`, `prompts`, `logging` |
@@ -679,5 +679,5 @@ single call.
679
679
  ---
680
680
 
681
681
  Generated from `catalogue.json` by `scripts/gen-api-doc.mjs`. The snapshot was
682
- read from `https://mcp.viafrei.de/mcp` on 2026-10-03; no tool was invoked to
682
+ read from `https://mcp.viafrei.de/mcp` on 2026-10-04; no tool was invoked to
683
683
  produce it, so no data provider was contacted.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,45 @@ a Changelog and the versions follow Semantic Versioning.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.6.2] - 2026-10-04
9
+
10
+ **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
11
+ relays to. The running server reports 1.6.2 while the registry's latest is 1.5.10, 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
+ **The first publish since 1.5.10.** 1.6.0 was prepared and merged here but never
18
+ tagged, so it never reached npm, and for a day the registry's `latest` stayed at 1.5.10
19
+ while the server ran 1.6.x. It changed nothing a client can call, and everything it
20
+ carried ships in this version. (1.5.9 was never tagged either, but 1.5.10 overtook it
21
+ and carried its content.)
22
+
23
+ ### Changed
24
+
25
+ - **A README for three readers (#49).** Travellers get seven real answers asked of the
26
+ running server, developers the connect lines for every client and a `curl` walk-through
27
+ of the protocol, businesses what the data is and how it is licensed. Each claim was
28
+ checked against the server before it was written; three it did not back were removed in
29
+ review.
30
+ - **The README's catalogue section is generated (#51).** The tools, prompts and resources
31
+ are rendered from `catalogue.json` by `scripts/gen-readme-catalogue.mjs` between two
32
+ markers, checked by `check:readme`, and regenerated by every release proposal, so the
33
+ list on the npm page cannot drift from the snapshot it ships with.
34
+
35
+ ## [1.6.0] - 2026-10-03
36
+
37
+ **Not published.** This block was merged but never tagged, so `1.6.0` is not on npm;
38
+ its content shipped in 1.6.2.
39
+
40
+ **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
41
+ relays to. The running server reports 1.6.0 while the registry's latest is 1.5.10, so
42
+ this release moves the package to the server's number and carries whatever had been
43
+ waiting under `[Unreleased]`. Prepared by the `Version sync` workflow: the shipped
44
+ reference was re-captured from the running server, and the probe reported the surface
45
+ **unchanged** — only the version string moved; the capture date is the same day.
46
+
8
47
  ## [1.5.10] - 2026-10-03
9
48
 
10
49
  **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
@@ -26,6 +65,9 @@ reference was re-captured from the running server, and the probe reported the su
26
65
 
27
66
  ## [1.5.9] - 2026-10-02
28
67
 
68
+ **Not published.** This block was merged but never tagged, so `1.5.9` is not on npm;
69
+ its content shipped in 1.5.10.
70
+
29
71
  **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
30
72
  relays to. The running server reports 1.5.9 while the registry's latest is 1.5.7, so
31
73
  this release moves the package to the server's number and carries whatever had been
@@ -1721,8 +1763,8 @@ for it, so the number is free; the bridge will use it when the platform does.
1721
1763
  commits, and a squash makes them unreachable from `main` - which would turn
1722
1764
  the check red on `main` for everybody, for something no contributor did.
1723
1765
 
1766
+ [1.6.2]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.6.2
1724
1767
  [1.5.10]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.10
1725
- [1.5.9]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.9
1726
1768
  [1.5.7]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.7
1727
1769
  [1.5.6]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.6
1728
1770
  [1.5.5]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.5
package/README.md CHANGED
@@ -1,211 +1,374 @@
1
- # viafrei
1
+ <div align="center">
2
2
 
3
+ # ViaFrei
4
+
5
+ ### Germany's traffic, trains, charging and roads — in your AI assistant.
6
+
7
+ **Ask in plain words. Get the live answer, with its source.**
8
+
9
+ [![website](https://img.shields.io/badge/viafrei.de-live-0b5fff?logo=googlechrome&logoColor=white)](https://viafrei.de/en)
3
10
  [![npm](https://img.shields.io/npm/v/viafrei?color=cb3837&label=npm&logo=npm)](https://www.npmjs.com/package/viafrei)
4
11
  [![node](https://img.shields.io/node/v/viafrei?logo=node.js&logoColor=white)](https://nodejs.org)
5
12
  [![licence](https://img.shields.io/npm/l/viafrei?color=blue)](LICENSE)
6
- [![no API key](https://img.shields.io/badge/API%20key-none-brightgreen)](#connect-in-one-line)
13
+ [![no API key](https://img.shields.io/badge/API%20key-none-brightgreen)](#-connect-in-one-minute)
7
14
  [![MCP](https://img.shields.io/badge/MCP-Streamable%20HTTP-6f42c1)](https://modelcontextprotocol.io)
8
15
 
9
- **Live German traffic, rail, parking, charging, fuel, addresses and weather —
10
- inside your AI assistant.** Ask in plain German or plain English and the answer
11
- comes back from official open data, with the attribution the licence requires.
16
+ **[viafrei.de](https://viafrei.de/en)** · [Connect your assistant](https://viafrei.de/en/connect) · [For developers](https://viafrei.de/en/developers) · [For businesses](https://viafrei.de/en/business) · [All tools](#-everything-it-can-do) · [API reference](API.md)
17
+
18
+ </div>
19
+
20
+ ---
12
21
 
13
22
  ```
14
- npx viafrei
23
+ claude mcp add --transport http viafrei https://mcp.viafrei.de/mcp
15
24
  ```
16
25
 
17
- **No account, no API key, no sign-up.**
26
+ **Free. No account, no API key, no sign-up.** One line and your assistant knows
27
+ whether the A8 is jammed, whether your train is late, where the nearest
28
+ Type 2 charger is (and whether it is free, where the operator publishes that)
29
+ and whether the lift at your station works — from official
30
+ German open data, live, with the source named in every answer.
18
31
 
19
- ## Ask your assistant things like
32
+ > **New in 1.6:** [viafrei.de](https://viafrei.de/en) is a real site now, in
33
+ > **seven languages** — Deutsch, English, Русский, Български, Українська,
34
+ > Română, Türkçe — with the live figures on the front page and a one-minute
35
+ > guide for every assistant.
20
36
 
21
- **Welche Züge fahren als Nächstes ab Hamburg Hbf?**
37
+ ---
22
38
 
23
- ```
24
- Abfahrten ab Hamburg Hbf (nächste 60 Minuten):
25
- 12:28 RJ 384 → Koebenhavn H, Gleis 5, pünktlich
26
- 12:29 ICE 7 → Karlsruhe Hbf, Gleis 14, pünktlich
27
- 12:33 ICE 774 → Kiel Hbf, Gleis 11, pünktlich
28
- 12:33 ME RB31 → Lüneburg, Gleis 13A-C, pünktlich
29
- 12:34 ICE 601 → München Hbf, Gleis 8A-F, pünktlich
30
-
31
- Stand 12:23 · Quelle: Fahrplandaten: Deutsche Bahn AG, DB API Marketplace,
32
- CC BY 4.0, bearbeitet (…) · Bahnhofsdaten: Deutsche Bahn AG,
33
- DB API Marketplace, CC BY 4.0, bearbeitet (…)
34
- ```
39
+ ## 🧳 What you can ask
35
40
 
36
- That is a real answer, not a mock-up: it came back from
37
- `https://mcp.viafrei.de/mcp` on 2026-09-27 at 12:23 Berlin time. **Two edits, both
38
- named:** the two source URIs are shortened to `…` for the reason in the next
39
- paragraph, and only the first five of the ten departures it returned are shown.
40
- The server sends no "… and five more" line — the truncation is this page's, not
41
- its.
42
-
43
- Every answer ends with a line like that last one. It is the licence talking,
44
- and it is meant to be shown to whoever reads the answer — see
45
- [Using the data you get back](#using-the-data-you-get-back). **Reproduce the
46
- line the server sends you, not this one:** it has been shortened here, and the
47
- real one names each source's URL, which the licence requires you to keep.
48
-
49
- ViaFrei is in its stabilisation and testing phase at the time of writing: live
50
- and free, with some sources thinner than they will be, and the occasional tool
51
- that answers slowly or not at all. **Tell us when that happens** —
52
- [open an issue](https://github.com/mavrovde/viafrei-bridge/issues) with what you
53
- asked and what came back. The server necessarily sees the question, and sees
54
- it fail; what it cannot see is that an answer was useless to you
55
- (see [What it does not do](#what-it-does-not-do)).
56
-
57
- Plain German or plain English, whichever you speak — the answers come back in
58
- the language you asked in, not translated from one house language:
59
-
60
- - *Gibt es gerade Stau auf der A8?*
61
- - *Find a rest area with lorry parking on the A9*
62
- - *Sind auf der A8 Baustellen geplant, wenn ich nächste Woche fahre?*
63
- - *Wo kann ich in Leipzig mit Typ 2 laden?*
64
- - *Gibt es eine Unwetterwarnung für Freiburg?*
65
- - *Brauche ich in Deutschland eine Umweltplakette?*
66
- - *Funktioniert der Aufzug am Bahnhof Köln Messe/Deutz?* — lift and escalator
67
- status, which is the difference between a station being usable and not
68
- - *Wo ist die nächste Apotheke zum Leipziger Hauptbahnhof?*
69
- - *What is at 52.5163, 13.3777?* — and the other direction: a street address to
70
- coordinates
71
- - *Tell me when the A8 reopens* — the server can watch a situation and tell
72
- your assistant when it changes, so you need not keep asking. The watch lives
73
- in the conversation that opened it: it reaches no inbox and no phone, and
74
- it ends with the session. Three hours by default; 24 is the longest one can
75
- be asked to run
76
-
77
- ## What it covers
78
-
79
- **Eighteen tools** as of this release. Grouped by the question they answer,
80
- because the grouping is stable and a pasted catalogue is not:
81
-
82
- | | |
41
+ You don't need to know any tool names. Ask the way you'd ask a friend who
42
+ happens to have every German traffic feed open. German or English; the answer
43
+ comes back in the language you asked in.
44
+
45
+ | when you're… | ask |
83
46
  |---|---|
84
- | **Roads** | live incidents, jams and closures; roadworks ahead on a route; the state of one Autobahn end to end; **lorry** parking on the motorways, with occupancy wherever the operator publishes it — see the note below on car parks |
85
- | **Rail** | next departures from any station with real-time delays and platforms; how punctual public transport is across a region right now (region-wide — never one line, trip or stop); whether a station's lifts and escalators are working right now |
86
- | **Energy** | charging points by connector type and power; the cheapest fuel near a place |
87
- | **Places** | a street address to coordinates and back; points of interest; what is at a coordinate, and what is near it — nationwide, all sixteen Länder (measured on 2026-09-27 — [how](SOURCES.md)) |
88
- | **Weather** | official DWD severe-weather warnings for a place |
89
- | **Watches** | ask once and be told when a situation changes, instead of asking again |
90
-
91
- **One thing the parking row does not yet cover: car parks.** The licence for
92
- station car parks is read and the loader exists, but nothing on the public service
93
- answers with one today — asked for a `car_park` in Köln, Hamburg and Leipzig on
94
- 2026-09-27, every facility that came back was a lorry park or an unclassified site,
95
- and none carried occupancy. So what you get from `find_parking` today is motorway
96
- lorry parking. The table said "car and lorry parking" until this release; it was
97
- the same over-claim the Rail row carried about disruptions, and it is corrected here rather
98
- than left for a user to discover.
99
-
100
- **No tool names, descriptions or schemas are written by hand on this page, on
101
- purpose.** This file is frozen inside a published tarball and cannot be corrected
102
- without a release, so a hand-copied catalogue would start rotting the first time a
103
- description changed on the server.
104
-
105
- **[API.md](API.md) is the way round that, and it is honest about what it is.** It
106
- is *generated* from [`catalogue.json`](catalogue.json) — a snapshot of what the
107
- production server answered when asked to describe itself — and CI fails if the two
108
- have drifted, so the document cannot quietly disagree with the snapshot. What that
109
- does not fix is the snapshot ageing relative to the live server: a capture is a
110
- point in time, and API.md's header carries the date it was taken. **The source of
111
- truth is still the running server**: connect any MCP client and call `tools/list`.
112
- (<https://viafrei.de> is the live national traffic digest, not a catalogue.)
113
-
114
- ## Connect in one line
115
-
116
- The product is a **hosted MCP server**. There is nothing to deploy, no key to
117
- request and no quota to negotiate — point a client at it and the tools appear.
118
-
119
- **Streamable HTTP — the address to use.** Most clients speak this, and they need
120
- none of the rest of this page:
47
+ | 🌅 **about to commute** | *Fahren Busse und Bahnen in Bayern gerade pünktlich?* · *When does the next train leave Hamburg Hbf?* |
48
+ | 🚗 **about to drive** | *Gibt es Stau auf der A8?* · *Are there roadworks on the A7 next week?* · *Is the A1 closed anywhere?* |
49
+ | ⚡ **driving electric** | *Where can I charge with Type 2 near Leipzig?* · *Wo gibt es einen Schnelllader mit 150 kW bei Nürnberg?* |
50
+ | 🅿️ **driving a lorry** | *Find a rest area with lorry parking on the A9* · *Wo ist der nächste Lkw-Parkplatz an der A7?* |
51
+ | ♿ **travelling step-free** | *Funktioniert der Aufzug am Bahnhof Köln Messe/Deutz?* |
52
+ | 🌦️ **watching the weather** | *Gibt es eine Unwetterwarnung für Freiburg?* |
53
+ | 📍 **somewhere new** | *What is at 52.5163, 13.3777?* · *Wo ist die nächste Apotheke am Leipziger Hauptbahnhof?* |
54
+ | 🇩🇪 **new to German roads** | *Do I need an emission sticker for Stuttgart?* · *Is there a speed limit on the Autobahn?* |
55
+ | ⏳ **waiting for news** | *Tell me when the A8 reopens* — the server watches and tells your assistant when it changes |
56
+
57
+ ## 💬 Real answers
58
+
59
+ These came back from the production server at `https://mcp.viafrei.de/mcp` on
60
+ **2026-10-03, 23:54 Berlin time**. They are not mock-ups. Each one shows the
61
+ first lines of what the tool returned, and the source line exactly as it was
62
+ sent.
63
+
64
+ <details open>
65
+ <summary><b>🚆 "Welche Züge fahren als Nächstes ab Hamburg Hbf?"</b> — <code>get_train_departures</code></summary>
66
+
67
+ ```text
68
+ Abfahrten ab Hamburg Hbf (nächste 60 Minuten):
69
+ 23:56 NBE RB61 → Elmshorn, Gleis 14D-F (statt 13D-F), +5 min (ca. 04.10. 00:01)
70
+ 04.10. 00:06 RE RE5 → Stade, Gleis 12A-B, pünktlich
71
+ 23:22 ICE 2514 → Hamburg-Altona, Gleis 11, +51 min (ca. 04.10. 00:13)
72
+ 04.10. 00:17 NBE RB71 → Wrist, Gleis 13D-F, pünktlich
121
73
 
74
+ Stand 23:54 · Quelle: Fahrplandaten: Deutsche Bahn AG, DB API Marketplace, CC BY 4.0, bearbeitet (https://developers.deutschebahn.com) · …
122
75
  ```
123
- https://mcp.viafrei.de/mcp
76
+ Platform changes, delays and the estimated real departure, in one line each.
77
+ *Edited: one of five departures omitted, and the second source of the line cut to `…`.*
78
+ </details>
79
+
80
+ <details>
81
+ <summary><b>♿ "Funktioniert der Aufzug am Bahnhof Köln Messe/Deutz?"</b> — <code>check_station_facilities</code></summary>
82
+
83
+ ```text
84
+ In Köln Messe/Deutz sind alle 10 gemeldeten Anlagen in Betrieb.
85
+ Aufzug Aufzug Gl. 12 KVB Tunnel: in Betrieb
86
+ Aufzug Aufzug tief Gleis 12: in Betrieb
87
+ Fahrtreppe Fahrtreppe Gl. 1/2: in Betrieb
88
+ …
89
+ Stand 23:54 · Quelle: Aufzüge und Fahrtreppen: Deutsche Bahn AG, DB API Marketplace, CC BY 4.0, bearbeitet (https://developers.deutschebahn.com) · …
90
+ ```
91
+ For anyone with a wheelchair, a pram or a heavy suitcase, this is the difference
92
+ between a station being usable and not.
93
+ *Edited: seven of ten facilities omitted.*
94
+ </details>
95
+
96
+ <details>
97
+ <summary><b>⚡ "Where can I charge with Type 2 near Leipzig?"</b> — <code>find_charging_station</code></summary>
98
+
99
+ ```text
100
+ Charging around Leipzig (within 10 km, Type 2), nearest first:
101
+ 1. Leipzig, Petersstr. eBox1, Petersstraße 36-44, 04109 Leipzig (E.ON Drive) — 0.3 km, Type 2, up to 3.7 kW, no status data
102
+ 3. Pocher Service e.K. - Nordstraße, Nordstraße 3, 04105 Leipzig (EA EnergieArchitektur GmbH) — 0.8 km, Type 2, up to 22 kW, 1.20 €/kWh, no status data
103
+ 4. CCEL-L-Elsterstraße, Elsterstraße 22, 04109 Leipzig (City Concept E-Ladestationen GmbH) — 1.0 km, Type 2, up to 22 kW, 0.80 €/kWh, no status data
104
+ Only a few operators publish live occupancy; "no status data" means unknown, not free.
105
+
106
+ As of 23:54 · Source: Ladepunkte: Eco-Movement via Mobilithek, CC BY 4.0, bearbeitet (https://mobilithek.info/offers/954064102947180544) · …
107
+ ```
108
+ It says what it does not know: "no status data" is unknown, never free.
109
+ *Edited: entry 2 omitted, a municipality key removed from the heading, and the second source cut to `…`.*
110
+ </details>
111
+
112
+ <details>
113
+ <summary><b>🚦 "Is public transport in North Rhine-Westphalia running on time?"</b> — <code>check_transit_disruption</code></summary>
114
+
115
+ ```text
116
+ North Rhine-Westphalia: 11% of observed trips more than 5 minutes late (308 of 2,790 trips
117
+ in the last 60 minutes, from 30,988 reports at 12,939 stops), 38 trips with cancelled stops.
118
+ …
119
+ As of 23:52 · Source: Echtzeitdaten: DELFI e.V. via Mobilithek, CC BY-SA (https://mobilithek.info)
120
+ These figures are licensed CC BY-SA (share-alike): anyone who passes them on, or builds
121
+ something on them, must release the result under the same licence and with this attribution.
122
+ ```
123
+ Region-wide, with the method stated. The share-alike condition arrives as part
124
+ of the answer, because it is part of the data.
125
+ *Edited: four method paragraphs between the figure and the source line omitted.*
126
+ </details>
127
+
128
+ <details>
129
+ <summary><b>📍 "What is at 52.5163, 13.3777?"</b> — <code>describe_location</code></summary>
130
+
131
+ ```text
132
+ Description of 52.5163, 13.3777:
133
+ - Nearest address: Pariser Platz 1, 10117 Berlin (3 m)
134
+ - settlement: Unter den Linden (0.7 km)
135
+ - district: Berlin (1.9 km)
136
+ - junction: AS Sachsendamm (A100) (5.0 km)
137
+
138
+ Address data as of 2026-09-22
139
+ As of 23:54 · Source: Ortsdaten: © GeoNames (CC BY 4.0), bearbeitet (…) · … · OSM-Standortdaten: © OpenStreetMap-Mitwirkende, ODbL 1.0 (https://www.openstreetmap.org/copyright)
140
+ ```
141
+ That's the Brandenburg Gate. *Edited: one line ("administrative area") omitted, and two of four sources cut to `…`.*
142
+ </details>
143
+
144
+ <details>
145
+ <summary><b>🇩🇪 "Do I need an emission sticker for Stuttgart?"</b> — <code>get_driving_rules</code></summary>
146
+
147
+ ```text
148
+ Low-emission zone Stuttgart: yes, you need the green Feinstaubplakette.
149
+ • Stuttgart: Zone covering the entire city area — it starts at the city boundary, not at the centre.
150
+ Required: the green plaque (emission group 4). …
151
+ • A French Crit'Air sticker or any other foreign environmental badge is not valid in Germany —
152
+ only the German Feinstaubplakette counts. (Umweltbundesamt, Umweltzonen in Deutschland)
153
+ …
154
+ Reviewed 2026-09-19 · Informational, not legal advice.
155
+ ```
156
+ Every statement carries its source and the date it was checked, and says
157
+ *[to verify]* where we could not confirm it. *Edited: eight of eleven points omitted.*
158
+ </details>
159
+
160
+ <details>
161
+ <summary><b>🅿️ "Find lorry parking on the A9"</b> — <code>find_parking</code></summary>
162
+
163
+ ```text
164
+ Parking along the A9:
165
+ 1. Aster Moos O — Lorry parking (Lkw-Parkplatz), 14 lorry spaces, no occupancy published
166
+ 2. Baarer Weiher O — Lorry parking (Lkw-Parkplatz), 45 lorry spaces, no occupancy published
167
+ …
168
+ As of 23:54 · Source: Verkehrsdaten: Autobahn GmbH des Bundes (https://verkehr.autobahn.de)
169
+ Where no "free" count is shown the operator publishes no occupancy — it does not mean the site is full.
124
170
  ```
171
+ *Edited: two of four sites omitted.*
172
+ </details>
125
173
 
174
+ **Why the source line matters.** Every answer ends with one, and it is the
175
+ licence speaking: show it to whoever reads the answer. Copy the line the server
176
+ sends you, not the ones on this page, which are shortened. See
177
+ [Using the data you get back](#-using-the-data-you-get-back).
178
+
179
+ ## 🔌 Connect in one minute
180
+
181
+ The product is a **hosted MCP server**. Point your client at it and the tools
182
+ appear. There is nothing to install, no key to request and no quota to
183
+ negotiate. Step-by-step guides for each assistant:
184
+ **[viafrei.de/en/connect](https://viafrei.de/en/connect)**.
185
+
186
+ **Claude Code**
126
187
  ```bash
127
188
  claude mcp add --transport http viafrei https://mcp.viafrei.de/mcp
128
189
  ```
129
190
 
130
- **HTTP+SSE — if your client only speaks the older transport**, it is answered too,
131
- so nobody meets a locked door. It is deprecated in the specification; prefer the
132
- address above:
191
+ **Claude, ChatGPT and other apps that take a connector URL** — add a custom connector with this address:
192
+ ```
193
+ https://mcp.viafrei.de/mcp
194
+ ```
195
+
196
+ **Cursor, VS Code, Windsurf and any client with an `mcpServers` file**, over HTTP:
197
+ ```json
198
+ { "mcpServers": { "viafrei": { "url": "https://mcp.viafrei.de/mcp" } } }
199
+ ```
200
+
201
+ **Clients that speak only stdio**, such as Claude Desktop's config file. That is what this package is for:
202
+ ```json
203
+ { "mcpServers": { "viafrei": { "command": "npx", "args": ["-y", "viafrei"] } } }
204
+ ```
205
+ Node 22 or newer. `npx` fetches the bridge when your client starts it.
133
206
 
207
+ **An older client on HTTP+SSE** is answered too, at `https://mcp.viafrei.de/sse`.
208
+ The transport is deprecated in the specification, so prefer the address above
209
+ when you can:
134
210
  ```bash
135
211
  claude mcp add --transport sse viafrei https://mcp.viafrei.de/sse
136
212
  ```
137
213
 
138
- **stdio — this package.** Some clients still speak only stdio, and **this bridge
139
- is for those, and only those.** Node 22 or newer; nothing to install, because
140
- `npx` fetches it when your client starts it. The same three lines fit any client
141
- that takes an stdio MCP server, including the `.mcp.json` an IDE reads and
142
- Claude Desktop's `claude_desktop_config.json`:
214
+ Restart the client and ask one of the questions above.
143
215
 
144
- ```json
145
- {
146
- "mcpServers": {
147
- "viafrei": {
148
- "command": "npx",
149
- "args": ["-y", "viafrei"]
150
- }
151
- }
152
- }
153
- ```
216
+ ## 🧰 Everything it can do
154
217
 
155
- Restart the client and ask it one of the questions above.
218
+ <!-- catalogue:begin — generated by scripts/gen-readme-catalogue.mjs from catalogue.json; do not edit by hand -->
156
219
 
157
- ## Documentation
220
+ **20 tools, 9 prompts, 10 resources and 2 resource templates** — server 1.6.2, snapshot of 2026-10-04. Each line is the server's own words; the full parameters are in [API.md](API.md).
158
221
 
159
- | | |
222
+ #### 🚗 On the road
223
+
224
+ | tool | what it answers |
160
225
  |---|---|
161
- | **[API.md](API.md)** | Every tool with its parameters, types, defaults and constraints, plus the resources, resource templates and prompts. Generated from a dated snapshot of the running server, so the descriptions are the server's own words — which is what your assistant actually reads when it picks a tool. |
162
- | **[Wiki](https://github.com/mavrovde/viafrei-bridge/wiki)** | The prose half: [connecting your assistant](https://github.com/mavrovde/viafrei-bridge/wiki/Connecting-your-assistant), [tools at a glance](https://github.com/mavrovde/viafrei-bridge/wiki/Tools-at-a-glance), the [roadmap](https://github.com/mavrovde/viafrei-bridge/wiki/Roadmap) and an [FAQ](https://github.com/mavrovde/viafrei-bridge/wiki/FAQ). |
163
- | **[SOURCES.md](SOURCES.md)** | Every publisher, what it covers, its licence, and the attribution line to reproduce — including the conditions that are licence breaches rather than style problems. |
164
- | **[SUPPORT.md](https://github.com/mavrovde/viafrei-bridge/blob/main/SUPPORT.md)** | Where a question, a bad answer or a security report should go, and what makes a report easy to act on. |
226
+ | [`check_autobahn_traffic`](API.md#check_autobahn_traffic--autobahn-traffic) — Autobahn traffic | Returns jams, slow traffic, closures and roadworks in force this minute on up to 5 German motorways, with delay and speed. |
227
+ | [`check_road_status`](API.md#check_road_status--road-status-and-closures) — Road status and closures | Returns whether one German motorway or federal road is open, closed or restricted, now and in the coming days. |
228
+ | [`find_roadworks_ahead`](API.md#find_roadworks_ahead--planned-roadworks) — Planned roadworks | Returns the roadworks PLANNED on one German motorway inside a date window: the section and direction as published, what is restricted, and the start and end. |
229
+ | [`find_parking`](API.md#find_parking--parking-nearby) — Parking nearby | Returns parking near a place, a coordinate or along one motorway: rest areas with lorry spaces, car parks and park-and-ride sites, with total spaces and, where published, how many are free now and that reading's age. |
230
+
231
+ #### 🚆 Public transport
232
+
233
+ | tool | what it answers |
234
+ |---|---|
235
+ | [`get_train_departures`](API.md#get_train_departures--train-departures) — Train departures | Next departures from a German railway station, with platform, delay and cancellations. |
236
+ | [`get_departures`](API.md#get_departures--scheduled-departures-bus-tram-train) — Scheduled departures (bus, tram, train) | Scheduled departures from any German public-transport stop — bus, tram, U-Bahn, S-Bahn, train, ferry — with line, destination, platform. |
237
+ | [`check_transit_disruption`](API.md#check_transit_disruption--public-transport-disruption-in-a-region) — Public-transport disruption in a region | Returns how punctual public transport is right now in one German region: the share of distinct trips at least once more than 5 minutes late, trips with a cancelled stop, the trend against the previous window, and how many trips that rests on. |
238
+ | [`check_station_facilities`](API.md#check_station_facilities--station-lifts-and-escalators) — Station lifts and escalators | Report whether a German railway station's lifts and escalators are working right now: each one, where it is, its state (in service / out of service / unknown) and the operator's own explanation. |
239
+
240
+ #### ⚡ Charging and fuel
241
+
242
+ | tool | what it answers |
243
+ |---|---|
244
+ | [`find_charging_station`](API.md#find_charging_station--ev-charging-nearby) — EV charging nearby | Returns EV charging sites near a place or coordinate with operator, connector types, maximum power, price per kWh where published, and how many points are free right now where the operator publishes live status. |
245
+ | [`find_cheapest_fuel`](API.md#find_cheapest_fuel--cheapest-fuel-nearby) — Cheapest fuel nearby | Returns the cheapest stations for one fuel grade near a place or coordinate: price per litre, brand, address, distance, open state. |
246
+ | [`find_fuel_station`](API.md#find_fuel_station--find-a-filling-station) — Find a filling station | Finds filling stations around a place or coordinate under any combination of filters — grade, brand, name, open now, open at a time you name, open 24 h — sorted by distance, price or name. |
247
+
248
+ #### 📍 Places and addresses
249
+
250
+ | tool | what it answers |
251
+ |---|---|
252
+ | [`find_place`](API.md#find_place--look-up-a-place) — Look up a place | Looks up a place name and returns every place that matches, each with its kind, official key (AGS/RS), population, English name and coordinate. |
253
+ | [`find_poi`](API.md#find_poi--find-a-named-place) — Find a named place | Finds a named business or landmark — company, shop, clinic, hotel — and returns its address, category and coordinate. |
254
+ | [`find_address`](API.md#find_address--look-up-a-street-address) — Look up a street address | Looks up a street address and returns its coordinate, plus what OpenStreetMap holds under it. |
255
+ | [`describe_location`](API.md#describe_location--describe-a-coordinate) — Describe a coordinate | Turns a coordinate into words: the nearest address, settlement, Kreis, administrative area and motorway junction, each with its own distance. |
256
+ | [`find_nearby`](API.md#find_nearby--what-is-nearby) — What is nearby | Overview of what is around a place or coordinate: nearby fuel stations, EV charging, parking, the nearest railway station and motorway junction, each with its distance. |
257
+
258
+ #### 🌦️ Weather and rules
259
+
260
+ | tool | what it answers |
261
+ |---|---|
262
+ | [`check_weather_warnings`](API.md#check_weather_warnings--official-weather-warnings) — Official weather warnings | Returns the official DWD weather warnings in force for a place or coordinate — storm, snow, ice, heavy rain, thunderstorm, heat — with the DWD's own Warnstufe 1–4, the area, the local validity window and the official text unaltered. |
263
+ | [`get_driving_rules`](API.md#get_driving_rules--german-driving-rules) — German driving rules | Returns the German road rules a visitor needs: low-emission zones (Umweltzone) and which Feinstaubplakette a city requires, speed limits (advisory 130), winter tyres, alcohol, the Sunday lorry ban, tolls (no car toll), Rettungsgasse, what must be in the car, and electric cars (E-Kennzeichen, ad-hoc payment, plugs). |
264
+
265
+ #### 🔔 Watches
266
+
267
+ | tool | what it answers |
268
+ |---|---|
269
+ | [`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 reopening, a stop running late, a weather warning starting, a charge point turning free. |
270
+ | [`stop_watch`](API.md#stop_watch--stop-a-watch) — Stop a watch | Ends a watch this conversation opened with watch_situation, so no further change notifications arrive for it. |
271
+
272
+ #### 🧭 Prompts — ready-made briefings
273
+
274
+ Pick one in your client's prompt menu and fill in the blanks; it calls the right tools in the right order.
275
+
276
+ | prompt | what it does |
277
+ |---|---|
278
+ | `plan_departure` — Trip briefing before departure — Reise-Briefing vor der Abfahrt | Briefs a drive that is about to start: the official weather warnings at both ends, whether each motorway is open, and the jams in force this minute, ending in one go/no-go sentence. |
279
+ | `compare_travel_options` — Drive or take the train? — Auto oder Bahn? | Weighs one trip by car against the same trip by rail: closures and live jams on the motorway side, the next departures and the region's punctuality on the rail side, as two paragraphs the traveller can compare. |
280
+ | `prepare_car_trip` — What you need before driving in Germany — Vorbereitung der Autofahrt | Collects what a driver must carry and know before driving in Germany and into one particular city: the low-emission-zone badge, speed limits, winter tyres, the alcohol limit, tolls, mandatory equipment and the rules for an electric car. |
281
+ | `plan_fuel_stop` — Refuel or charge on the way — Tank- oder Ladestopp unterwegs | Finds where this traveller fills up or charges on the way: the cheapest stations for one fuel grade around one place, or the charging points with the right connector and power, and the rest area beside them if they also need a break. |
282
+ | `plan_commute` — Plan today's commute by train — Pendelfahrt für heute planen | Plans one public-transport leg on the day itself: the next departures from the station with delays, platforms and cancellations, and whether the region's buses and trains are running normally at this hour. |
283
+ | `plan_arrival_parking` — Where to leave the car on arrival — Parken am Ziel | Finds where to leave the car at the end of the drive: the car park in town, the park-and-ride at the edge with the onward departures, or the rest area if the traveller is early. |
284
+ | `find_a_place` — Find out what a name refers to — Herausfinden, was ein Name meint | Resolves a bare name of unknown kind into a place, a named thing, or an address, trying each table in turn and stopping at the first that answers. |
285
+ | `plan_local_errand` — What is around this place? — Was ist hier in der Nähe? | Answers "what is around here" for one place: the nearest fuel, EV charging, parking, railway station and motorway junction in one glance, then — only if the traveller wants more than the nearest one — the depth tool for that one category. |
286
+ | `explain_this_coordinate` — Say where a coordinate is — Sagen, wo eine Koordinate liegt | Turns a bare lat/lon into a sentence a traveller understands: the nearest address, settlement, Kreis, administrative area and motorway junction, each with its own distance. |
287
+
288
+ #### 📚 Resources — reference your assistant can read
289
+
290
+ | resource | what it holds |
291
+ |---|---|
292
+ | `viafrei://attribution` — Data sources & attribution | Licence and attribution text for every data source ViaFrei uses. |
293
+ | `viafrei://coverage` — Coverage | Which feeds, places and vehicles ViaFrei can answer for right now — licence, cadence and freshness per feed, plus what is deliberately not covered. |
294
+ | `viafrei://rules/driving-in-germany` — Driving in Germany — the rules a visitor needs (DE/EN) | Curated, sourced and dated: low-emission zones, speed, winter tyres, alcohol, tolls, the Sunday lorry ban, equipment, emergencies and electric driving. |
295
+ | `viafrei://rules/low-emission-zones` — Low-emission zones (Umweltzonen) — city, zone, plaque, where to buy it (DE/EN) | Which German cities run a low-emission zone, which Feinstaubplakette they require and where to buy it. |
296
+ | `viafrei://emergency` — Emergency in Germany — 112, 110, rescue lane, breakdown, crash (DE/EN) | What to dial, how to form the Rettungsgasse, what to do in a breakdown or after a crash, and what the law requires you to carry. |
297
+ | `viafrei://rules/electric-driving` — Electric driving in Germany — E plate, charging, payment, plugs (DE/EN) | What an electric car needs in Germany: the E-Kennzeichen and why its privileges differ per city, the green plaque, the right to ad-hoc card payment, plug standards, how prices are shown, etiquette and what to do in an emergency. |
298
+ | `viafrei://status/feeds` — Feed status | Per feed: is it still arriving? |
299
+ | `viafrei://watches` — My watches | The watches THIS conversation has open, with what each one is watching and when it expires. |
300
+ | `viafrei://gazetteer` — Gazetteer coverage | What the place index (gazetteer_places) holds: rows and last load per source and kind, how many carry an English name, and the sixteen Länder it can name — the coverage behind find_place/find_poi/find_nearby's place answers. |
301
+ | `viafrei://addresses` — Address coverage | What the OSM-derived address table (osm_addresses) holds per Bundesland — rows and the extract date — plus the ODbL § 4.6 offer owed to anyone who receives an address-derived result. |
302
+ | `viafrei://watch/{id}` — One watch | One watch of this conversation: what is being watched, what it has reported, and the attribution of the data behind each report. |
303
+ | `viafrei://place/{query}` — A resolved place | One place, poi or address resolved the same way every tool resolves `place` — a point, a short list of candidates, or an honest no — so a name can be pinned once and reused as lat/lon. |
304
+
305
+ <!-- catalogue:end -->
306
+
307
+ **The running server is the source of truth.** This list and [API.md](API.md)
308
+ are rendered from a dated snapshot of it, and CI fails if either drifts from that
309
+ snapshot. Ask any MCP client for `tools/list` to see what is live this minute.
165
310
 
166
311
  ### Worked use cases
167
312
 
168
- Five walkthroughs, each naming the tools that answer it and what comes back:
169
-
170
- - [Driving Munich to Berlin](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Driving-Munich-to-Berlin) — briefing a motorway run: several A-roads in one call, roadworks ahead, a fuel or charging stop, parking at the far end.
171
- - [The commute that broke](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-The-commute-that-broke) — departures, regional disruption, and a station lift that is out, which is the difference between a step-free route existing and not.
172
- - [An EV on a long weekend](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-An-EV-on-a-long-weekend) — charging by connector and power, low-emission-zone rules, what is around a stop.
173
- - [Fleet and logistics briefings](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Fleet-and-logistics-briefings) — a dispatcher's morning brief, watches that report a change instead of being polled, and the one licence rule that bites hardest here.
174
- - [Building a local guide agent](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Building-a-local-guide-agent) — a vague place to coordinates and back, and what OpenStreetMap's licence asks of you.
175
-
176
- ## Why build on it
177
-
178
- - **One endpoint instead of a stack of integrations.**
179
- [SOURCES.md](SOURCES.md) lists **twenty-one sources from sixteen publishers** —
180
- Autobahn GmbH, the national access point, Deutsche Bahn, DWD, BKG, GeoNames,
181
- OpenStreetMap, MTS-K and the rest — each with its own format, its own release
182
- rhythm and its own licence. They arrive here as one protocol and one set of
183
- tools. (Count them in that table; one of the sixteen is us.)
184
- - **The licence work is done and it travels with the answer.** Every result
185
- carries the attribution line its sources require, and the ones with conditions
186
- attached say so in the result itself — share-alike is flagged, and the MTS-K
187
- purpose limit arrives as a sentence you are meant to show. You are not left to
188
- work out what you owe whom.
189
- - **It answers in the language of the question**, German or English, rather than
190
- translating out of one house language.
191
- - **It is a transport shim and nothing more.** The bridge holds no data and no
192
- credentials, writes no file outside the OS temp directory, and makes no
193
- decision about any answer. No telemetry, no analytics, no usage counter, no
194
- update check — see [What it does not do](#what-it-does-not-do).
195
- - **Failures are machine-readable.** One line on stderr and a distinct exit code
196
- per cause, so a supervisor can tell "your network is down" from "you typed the
197
- flag wrong" without parsing English.
198
- - **Ask once, be told when it changes.** A watch turns polling into a
199
- notification for as long as the conversation lives.
200
-
201
- Free while ViaFrei stabilises, and the limits that exist are written down on this
202
- page rather than discovered in production.
203
-
204
- ## Configuration
313
+ Walkthroughs that chain several tools, each naming what comes back:
314
+
315
+ - 🛣️ [Driving Munich to Berlin](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Driving-Munich-to-Berlin): several motorways in one call, roadworks ahead, a fuel or charging stop, and parking at the far end.
316
+ - 🚉 [The commute that broke](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-The-commute-that-broke): departures, regional disruption, and a station lift that is out.
317
+ - 🔋 [An EV on a long weekend](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-An-EV-on-a-long-weekend): charging by connector and power, low-emission-zone rules, and what is around a stop.
318
+ - 🚚 [Fleet and logistics briefings](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Fleet-and-logistics-briefings): a dispatcher's morning brief, and watches that report a change instead of being polled.
319
+ - 🗺️ [Building a local guide agent](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Building-a-local-guide-agent): a vague place to coordinates and back, and what OpenStreetMap's licence asks of you.
320
+
321
+ ## 🛠️ For developers
322
+
323
+ **It's plain MCP over HTTP.** You can call it without an SDK:
324
+
325
+ ```bash
326
+ # 1. open a session
327
+ curl -si https://mcp.viafrei.de/mcp \
328
+ -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
329
+ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"me","version":"0"}}}' \
330
+ | grep -i mcp-session-id
331
+
332
+ # 1b. tell the server you are ready — the MCP lifecycle requires it before any request
333
+ curl -s https://mcp.viafrei.de/mcp \
334
+ -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
335
+ -H 'mcp-session-id: <from step 1>' -H 'mcp-protocol-version: 2025-06-18' \
336
+ -d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
337
+
338
+ # 2. ask a question (put the session id from step 1 in the header)
339
+ curl -s https://mcp.viafrei.de/mcp \
340
+ -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
341
+ -H 'mcp-session-id: <from step 1>' -H 'mcp-protocol-version: 2025-06-18' \
342
+ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"check_weather_warnings","arguments":{"place":"Freiburg im Breisgau","language":"en"}}}'
343
+ ```
344
+
345
+ - **One endpoint instead of a stack of integrations.** [SOURCES.md](SOURCES.md)
346
+ lists the publishers behind it, among them Autobahn GmbH, Deutsche Bahn, DWD,
347
+ DELFI, the national access point Mobilithek, BKG, GeoNames, OpenStreetMap and
348
+ MTS-K. Each has its own format, release rhythm and licence, and they arrive
349
+ here as one protocol.
350
+ - **Results are written to be read aloud.** A tool answers in sentences an
351
+ assistant can pass on, says what it does not know ("no status data means
352
+ unknown, not free"), and ends with the source line.
353
+ - **Annotated honestly.** Eighteen of the twenty tools are read-only and
354
+ idempotent (`readOnlyHint`, `idempotentHint`), so a client can call them
355
+ without a confirmation prompt. The two watch tools are not, because opening
356
+ or stopping a watch changes what the server will tell you later, and their
357
+ annotations say so.
358
+ - **Prompts and resources, not only tools.** Nine ready-made briefings, and a
359
+ reference shelf (driving rules, emission zones, emergency numbers,
360
+ attribution) your assistant can read directly.
361
+ - **Watches.** `watch_situation` turns polling into a notification for as long
362
+ as the session lives. Three hours by default, and 24 is the longest one can be
363
+ asked to run. It reaches no inbox and no phone.
364
+ - **Machine-readable failures**, in the bridge too: one line on stderr and a
365
+ distinct exit code per cause (see below).
366
+
367
+ ### Bridge configuration
205
368
 
206
369
  | option | what it does |
207
370
  |---|---|
208
- | `--url <url>` | endpoint to relay to. Default `https://mcp.viafrei.de/mcp` — see the note below |
371
+ | `--url <url>` | endpoint to relay to. Default `https://mcp.viafrei.de/mcp`. See the note below |
209
372
  | `--header "Name: value"` | extra HTTP header on every request, repeatable. For an API key, when there is one |
210
373
  | `--timeout <ms>` | per-request timeout, default 30000. The event stream is never timed out |
211
374
  | `--version`, `--help` | print and exit |
@@ -216,145 +379,133 @@ has an environment variable too:
216
379
  | variable | same as |
217
380
  |---|---|
218
381
  | `VIAFREI_MCP_URL` | `--url` |
219
- | `VIAFREI_MCP_HEADER` | `--header`. Several headers are separated by a **newline**, which can never appear in a header name or value, so nothing you might need to send is unrepresentable — a comma, a semicolon and a space all occur inside real header values |
382
+ | `VIAFREI_MCP_HEADER` | `--header`. Separate several headers with a **newline**, which can never appear in a header name or value. That way nothing you might need to send is unrepresentable: a comma, a semicolon and a space all occur inside real header values |
220
383
  | `VIAFREI_MCP_TIMEOUT_MS` | `--timeout` |
221
384
 
222
- A flag wins over the variable; the variable wins over the built-in default. A
223
- `--header` of the same name replaces one from the variable, and a `--header` of
224
- a different name is added alongside it.
225
-
226
- ```json
227
- {
228
- "mcpServers": {
229
- "viafrei": {
230
- "command": "npx",
231
- "args": ["-y", "viafrei"],
232
- "env": { "VIAFREI_MCP_HEADER": "Authorization: Bearer …" }
233
- }
234
- }
235
- }
236
- ```
385
+ A flag wins over the variable, and the variable wins over the built-in default.
386
+ A `--header` of the same name replaces one from the variable; a `--header` of a
387
+ different name is added alongside it.
237
388
 
238
- **There is no self-hosted ViaFrei.** The server is a hosted service, so `--url`
239
- is not a way to run your own — it is there for a proxy or gateway in front of
240
- the service, and for the stub server this repository's test suite starts.
241
- Leave it unset and the bridge goes to the hosted endpoint, which is what you
242
- want.
389
+ **There is no self-hosted ViaFrei.** The server is a hosted service. `--url` is
390
+ not a way to run your own: it exists for a proxy or gateway in front of the
391
+ service, and for the stub server this repository's test suite starts.
243
392
 
244
- ## When something is wrong
393
+ ### When something is wrong
245
394
 
246
- One line to stderr and an exit code that says what happened. No stack traces:
395
+ The bridge prints one line to stderr and exits with a code that says what
396
+ happened. No stack traces:
247
397
 
248
398
  ```
249
399
  viafrei: cannot reach https://example.invalid/mcp: host not found (DNS) (ENOTFOUND) - check your network connection; --url only if you relay through a proxy
250
400
  ```
251
401
 
252
- That line is copied from a run, exit code 3. The same text also goes back to the
253
- client as a JSON-RPC error, so an assistant can say what went wrong instead of
254
- going quiet.
402
+ The same text also goes back to the client as a JSON-RPC error, so an assistant
403
+ can say what went wrong instead of going quiet.
255
404
 
256
405
  | exit | meaning |
257
406
  |---|---|
258
407
  | `0` | clean shutdown (the client closed stdin, or sent SIGINT/SIGTERM) |
259
408
  | `1` | something else went wrong; the line says what |
260
- | `2` | bad usage — a flag or a value the bridge does not accept |
409
+ | `2` | bad usage: a flag or a value the bridge does not accept |
261
410
  | `3` | the endpoint could not be reached, stopped answering, or never answered in time |
262
- | `4` | the endpoint answered and this cannot continue: it refused (the line names the HTTP status), it forgot the session, it answered with something that is not MCP, or it redirected to another origin |
411
+ | `4` | the endpoint answered and the bridge cannot continue: it refused (the line names the HTTP status), forgot the session, answered with something that is not MCP, or redirected to another origin |
263
412
  | `5` | protocol version mismatch; the line names the version the server speaks |
264
413
 
265
414
  **A slow call may be a retried call.** A `429`, `502`, `503` or `504` is tried
266
- again **once** — after the delay the server asked for in `Retry-After`, or 250 ms
267
- when it asked for none. A connection that fails outright rather than answering
268
- (reset, broken pipe, socket or connect timeout) is likewise tried once more, after
269
- the fixed 250 ms; there is no header to read on that path. Two cases are
270
- deliberately not retried, because waiting would be worse than answering: a `429`
271
- carrying no usable `Retry-After`, and any delay the server asks for that is longer
272
- than your timeout. Both come straight back as the ordinary failure line with the
273
- status in it. An event stream is never retried.
274
-
275
- **Your timeout bounds each request, not the call.** It is attached per HTTP
276
- request, so the second attempt gets a fresh one, and so does each hop of a
277
- same-origin redirect. What you can rely on is per request: no single request
278
- outlives the timeout, and a delay longer than the timeout is never waited out at
279
- all. What follows from that is the arithmetic: two attempts plus a delay that may
280
- itself be as long as the timeout is a worst case of about **three times** what you
281
- set, and more than that if the endpoint redirects, since every hop is bounded
282
- separately. **So no setting here caps the whole call** — if you need a hard
283
- ceiling, enforce it on your side and treat the timeout as the per-request bound it
284
- is.
285
-
286
- An established session is allowed to wobble — a dropped event stream is a
287
- warning, not an exit, and the bridge reconnects. It is not allowed to be dead
288
- in silence: several failures in a row with nothing succeeding in between end
289
- the process with the code above, so the client that started it finds out.
290
-
291
- ## What it does not do
292
-
293
- No telemetry, no analytics, no usage counter, no update check. It writes no
294
- file outside the OS temp directory, and it stores no credential — `--header` is
295
- passed through to the endpoint and never persisted or logged.
296
-
297
- It also does not follow a redirect off the origin you pointed it at. Your
298
- headers go to that origin and nowhere else: a cross-origin redirect is refused
299
- with one line naming both ends, so a server cannot forward your API key
300
- somewhere you did not choose. Same-origin redirects are followed normally.
301
-
302
- ## Using the data you get back
415
+ again **once**, after the delay the server asked for in `Retry-After`, or 250 ms
416
+ when it asked for none. A connection that fails outright (reset, broken pipe,
417
+ socket or connect timeout) is tried once more after 250 ms. Two cases are not
418
+ retried, because waiting would be worse than answering: a `429` with no usable
419
+ `Retry-After`, and any requested delay longer than your timeout. An event stream
420
+ is never retried.
421
+
422
+ **Your timeout bounds each request, not the whole call.** Two attempts plus a
423
+ delay can add up to about **three times** the timeout, and more if the endpoint
424
+ redirects. If you need a hard ceiling, enforce it on your side.
425
+
426
+ An established session may wobble: a dropped event stream is a warning, and the
427
+ bridge reconnects. It may not stay dead in silence. Several failures in a row
428
+ with nothing succeeding in between end the process with the code above, so the
429
+ client that started it finds out.
430
+
431
+ ### What the bridge does not do
432
+
433
+ - **No tracking.** No telemetry, no analytics, no usage counter, no update check.
434
+ - **No stored files or credentials.** It writes no file outside the OS temp
435
+ directory. `--header` is passed through to the endpoint and is never persisted
436
+ or logged.
437
+ - **No cross-origin redirects.** A redirect off the origin you pointed it at is
438
+ refused with one line naming both ends, so a server cannot forward your API
439
+ key somewhere you did not choose. Same-origin redirects are followed normally.
440
+
441
+ ## 💼 For businesses
442
+
443
+ - **The licence work is done, and it travels with the answer.** Each result
444
+ carries the attribution its sources require. Where a source attaches a
445
+ condition, the result states it: share-alike is flagged, and the MTS-K purpose
446
+ limit arrives as a sentence you are meant to show.
447
+ - **Built for answering people.** Live figures, sourced and dated, in the
448
+ language of the question. Good for travel and mobility assistants,
449
+ dispatchers' briefings, customer service and step-free station checks.
450
+ - **Read the business page:** [viafrei.de/en/business](https://viafrei.de/en/business).
451
+ It covers six use cases and how to work with us.
452
+
453
+ ## ⚖️ Using the data you get back
303
454
 
304
455
  Every result carries an attribution line. **Show it to the person reading the
305
- answer.** The full register lives at the resource `viafrei://attribution`, and
306
- **[SOURCES.md](SOURCES.md)** is the readable version of it: every publisher,
307
- what they cover, the licence, and the exact attribution line to reproduce.
456
+ answer.** The full register is at the resource `viafrei://attribution`, and
457
+ **[SOURCES.md](SOURCES.md)** is the readable version: every publisher, what it
458
+ covers, its licence, and the exact line to reproduce.
308
459
 
309
460
  Two constraints matter more than the rest, because getting them wrong is a
310
461
  licence breach rather than a style problem:
311
462
 
312
463
  - **MTS-K fuel prices are consumer information only.** No redistribution in any
313
- form — that includes aggregates, comparisons, price tables and anything
314
- derived. Answer the person who asked; do not build a product out of it.
315
- - **DELFI public-transport data is Creative Commons
316
- Attribution-ShareAlike.** Share-alike travels with anything you *derive* from
317
- it — recompute it, reshape it, rearrange it, build a delay table out of it, and
318
- that is Adapted Material you must license under BY-SA (art. 1(a) names material
319
- "translated, altered, arranged, transformed, or otherwise modified"). Merely **showing** it beside
320
- another source's data is an aggregation, and puts no obligation on the other
321
- source; an earlier version of this page said otherwise, which told you a
322
- licence forbids something it permits. The catalogue record for the realtime
323
- feed names no licence version, so do not rely on one for a derivative —
324
- [SOURCES.md](SOURCES.md) has the detail and the open question.
325
-
326
- Everything else — where each answer comes from, and what each licence asks of
327
- you — is in [SOURCES.md](SOURCES.md). See also [NOTICE](NOTICE) and
328
- [LICENSE](LICENSE).
464
+ form, including aggregates, comparisons, price tables and anything derived.
465
+ Answer the person who asked; do not build a product out of it. (This is also
466
+ why this page shows no fuel price.)
467
+ - **DELFI public-transport data is Creative Commons Attribution-ShareAlike.**
468
+ Share-alike travels with anything you *derive* from it: recompute it, reshape
469
+ it, rearrange it or build a delay table out of it, and that is Adapted
470
+ Material you must license under BY-SA (art. 1(a) names material "translated,
471
+ altered, arranged, transformed, or otherwise modified"). Merely **showing** it
472
+ beside another source's data is an aggregation and puts no obligation on the
473
+ other source. The catalogue record for the realtime feed names no licence
474
+ version, so do not rely on one for a derivative; [SOURCES.md](SOURCES.md) has
475
+ the detail.
476
+
477
+ See also [NOTICE](NOTICE) and [LICENSE](LICENSE).
478
+
479
+ ## 🗣️ Tell us when an answer is wrong
480
+
481
+ ViaFrei is live, free, and still growing. Some sources are thinner than they will
482
+ be, and a tool can be slow or wrong. **A tool that fails is something the server
483
+ sees. A tool that answers confidently with the wrong thing is not.** Use the
484
+ [*the answer was wrong or useless*](https://github.com/mavrovde/viafrei-bridge/issues)
485
+ issue template, saying what you asked and what came back. That report is the
486
+ one thing we cannot get any other way.
329
487
 
330
488
  ## The server itself
331
489
 
332
- The MCP server is offered as a **hosted service**, and its source is closed. It
333
- is not in this repository and is not published. What is public is the part that
334
- is meant to be: the tool names, their descriptions, their input schemas, the
335
- shape of the results and the attribution lines — everything a client reads from
336
- `tools/list`, which is the product surface.
337
-
338
- This is said plainly so nobody spends an evening looking for the server code.
339
-
340
- ## Contributing
341
-
342
- Yes, please — see [CONTRIBUTING.md](https://github.com/mavrovde/viafrei-bridge/blob/main/CONTRIBUTING.md) and
343
- [CODE_OF_CONDUCT.md](https://github.com/mavrovde/viafrei-bridge/blob/main/CODE_OF_CONDUCT.md). Issues and discussions are open. The
344
- bridge is small and self-contained, which is exactly what makes it a reasonable
345
- thing to send a first patch to.
490
+ The MCP server is a **hosted service**, and its source is closed. It is not in
491
+ this repository and is not published. What is public is the part meant to be:
492
+ the tool names, descriptions, input schemas, result shapes and attribution
493
+ lines, which is everything a client reads from `tools/list`. We say this plainly
494
+ so nobody spends an evening looking for the server code.
346
495
 
347
- **One issue template is worth knowing about before you need it:** *the answer was
348
- wrong or useless*. A tool that fails is something the server sees; a tool that
349
- answers confidently with the wrong thing is not. That report is the one thing we
350
- cannot get any other way.
496
+ ## Contributing · Security · Licence
351
497
 
352
- ## Security
498
+ - **Contributing:** yes, please. See [CONTRIBUTING.md](https://github.com/mavrovde/viafrei-bridge/blob/main/CONTRIBUTING.md)
499
+ and [CODE_OF_CONDUCT.md](https://github.com/mavrovde/viafrei-bridge/blob/main/CODE_OF_CONDUCT.md).
500
+ The bridge is small and self-contained, which makes it a good place for a first patch.
501
+ - **Security:** never open a public issue for a key, a token or anything that
502
+ looks like one. [SECURITY.md](https://github.com/mavrovde/viafrei-bridge/blob/main/SECURITY.md)
503
+ has the private reporting path.
504
+ - **Licence:** [Apache-2.0](LICENSE) for this code. Data obtained through the
505
+ server keeps its provider's licence; see [NOTICE](NOTICE).
353
506
 
354
- Never open a public issue for a key, a token or anything that looks like one.
355
- See [SECURITY.md](https://github.com/mavrovde/viafrei-bridge/blob/main/SECURITY.md) for the private reporting path.
507
+ <div align="center">
356
508
 
357
- ## Licence
509
+ **[viafrei.de](https://viafrei.de/en)** — Deutsch · English · Русский · Български · Українська · Română · Türkçe
358
510
 
359
- [Apache-2.0](LICENSE) for this code. Data obtained through the server keeps its
360
- provider's licence — see [NOTICE](NOTICE).
511
+ </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viafrei",
3
- "version": "1.5.10",
3
+ "version": "1.6.2",
4
4
  "description": "German traffic, 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",
@@ -75,6 +75,9 @@
75
75
  "check:versions": "node scripts/check-versions.mjs",
76
76
  "docs:api": "node scripts/gen-api-doc.mjs",
77
77
  "check:docs": "node scripts/gen-api-doc.mjs --check",
78
+ "docs:readme": "node scripts/gen-readme-catalogue.mjs",
79
+ "check:readme": "node scripts/gen-readme-catalogue.mjs --check",
80
+ "test:readme": "node scripts/gen-readme-catalogue.test.mjs",
78
81
  "check:sources": "node scripts/check-sources.mjs",
79
82
  "test:sources": "node scripts/check-sources.test.mjs",
80
83
  "probe:catalogue": "node scripts/probe-catalogue.mjs",