viafrei 1.8.30 → 1.9.5
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 +79 -0
- package/README.md +2 -2
- 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` 1.
|
|
20
|
+
| Server | `viafrei` 1.9.5 |
|
|
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 |
|
|
@@ -80,7 +80,7 @@ The server's own instructions to a connecting client, verbatim:
|
|
|
80
80
|
- **`cursor`** — Pagination cursor from a previous result's _meta.nextCursor. Omit for the first page.
|
|
81
81
|
- **`kinds`** — Which event kinds to return: warning = live traffic (jams, slow traffic, hazards), closure = full closures, roadworks = construction sites. Set it when the SUBJECT of the question is one of those categories by name: "Baustellen auf der A8?" is ["roadworks"], "welche Sperrungen sind in diesem Moment gemeldet?" is ["closure"]. Omit it when the question is how the road IS — Stau, frei, a delay, "wie sieht es aus", "everything"; the German "Stau?" is the idiom for the whole picture, and a filter nobody asked for hides the closure on the same stretch. Whether a closure question is this tool's at all is decided by two things, and the noun (Sperrung, Vollsperrung, closure) is neither. FIRST THE CLOCK: only a question about this minute (jetzt, gerade, in diesem Moment, right now, at this very minute) can be this tool's — with no time word at all, or for a later window (tonight, heute Abend, am Wochenende, the coming days), it is check_road_status. SECOND, WHAT IS ASKED, which the clock cannot see: what is REPORTED or in force on a named motorway is this tool ("which closures are in force on the A100 at this very minute?"), while whether the road is OPEN or passable is check_road_status AT ANY CLOCK — "ist die A8 offen", "ist die A3 in diesem Moment gesperrt?", "komme ich da durch?" — and so is a closure asked around a town instead of on a motorway number. Baustellen with a date or the word geplant are find_roadworks_ahead. Default: all three.
|
|
82
82
|
- **`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 because it has a default — the default is only the fallback when the language is genuinely unclear, and an English question answered in German is 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.
|
|
83
|
-
- **`limit`** — Maximum events to return across all roads (1–50, default 10). Jams
|
|
83
|
+
- **`limit`** — Maximum events to return across all roads (1–50, default 10). Jams come first, then closures, other reports, then roadworks; within each the roads take turns in the order you listed them, so every road gets its share of the page. Only what is in force now is listed — closures announced for later are counted apart in the headline.
|
|
84
84
|
|
|
85
85
|
### `find_cheapest_fuel` — Cheapest fuel nearby
|
|
86
86
|
|
|
@@ -235,7 +235,7 @@ The server's own instructions to a connecting client, verbatim:
|
|
|
235
235
|
- **`connector`** — Plug the car needs: "ccs2" (CCS Combo 2 — the DC fast-charging standard on almost every European EV), "type2" (Typ 2 / Mennekes, the AC socket) or "chademo" (older Japanese DC, e.g. Nissan Leaf). Omit unless the person named their plug or their car model — filtering on a guess hides chargers they could have used.
|
|
236
236
|
- **`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 because it has a default — the default is only the fallback when the language is genuinely unclear, and an English question answered in German is 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.
|
|
237
237
|
- **`lat`** — Latitude in WGS 84, e.g. 48.137. Use with lon when the caller already holds coordinates; otherwise use place.
|
|
238
|
-
- **`limit`** — How many
|
|
238
|
+
- **`limit`** — How many lines to return, nearest first (1–10, default 5). Records of one place within 50 m that read alike are folded into one line that says how many units it holds; structuredContent.sites lists every record of the lines shown, so it can be longer than limit.
|
|
239
239
|
- **`lon`** — Longitude in WGS 84, e.g. 11.576. Use with lat; otherwise use place.
|
|
240
240
|
- **`min_power_kw`** — Only charging points of at least this many kW (1–1000). Use when the person names a number or asks for fast charging: 50 = DC fast (a bare "fast"/"schnell"/"Schnelllader"), 150 = HPC ("HPC", "ultra", "ultraschnell"), 300 = the fastest posts in Germany. Omit for "where can I charge" — 11 kW overnight is a valid answer to that question.
|
|
241
241
|
- **`only_available`** — When true, return only sites with at least one point reported FREE right now. Default false. Use it when the person asks what is free at this moment. Note that only some operators publish live status: the result always says how many nearby sites were dropped because their status is unknown, so the filter never silently hides a charger that may well be free.
|
|
@@ -286,8 +286,8 @@ The server's own instructions to a connecting client, verbatim:
|
|
|
286
286
|
| `near` | string | no | — | max length 120 |
|
|
287
287
|
| `radius_km` | number | no | `10` | min 1; max 50 |
|
|
288
288
|
|
|
289
|
-
- **`name`** — The name of the thing to find — a company, shop, clinic, hotel, office or landmark. Part of the name is enough: "adesso" finds "adesso SE". A chain name works too, because brands are matched as well as names.
|
|
290
|
-
- **`category`** — Narrow to one OpenStreetMap family: "office" (companies, agencies), "shop", "amenity" (fuel, pharmacy, school, restaurant, town hall), "healthcare", "tourism" (hotels, attractions), "leisure", "industrial", "historic" (castles, monuments, city gates), "natural" (mountain peaks) or "building".
|
|
289
|
+
- **`name`** — The name of the thing to find — a company, shop, clinic, hotel, office or landmark. Part of the name is enough: "adesso" finds "adesso SE". A chain name works too, because brands are matched as well as names. A kind word alone, German or English ("Apotheke", "pharmacy", "trade fair"), lists that kind nearest first. When the person names a company AND a type ("the Bosch office"), put the company here and the type in category. Never for fuel, charging or parking, even near a named company or landmark ("a charger by the Allianz Arena"): those have their own tools, asked with the place.
|
|
290
|
+
- **`category`** — Narrow to one OpenStreetMap family: "office" (companies, agencies), "shop", "amenity" (fuel, pharmacy, school, restaurant, town hall), "healthcare" (hospitals, clinics, doctors, pharmacies), "tourism" (hotels, attractions), "leisure", "industrial" (factories, plants), "historic" (castles, monuments, city gates), "natural" (mountain peaks) or "building". Set it whenever the person names the type ("Bosch office" → office, "Hotel Adler" → tourism); omit it when they name no type.
|
|
291
291
|
- **`in`** — A town to search in — "Dortmund", "Fulda". Strongly preferred: it is both far faster and far less ambiguous than a nationwide search. Use this OR near/lat+lon, not both.
|
|
292
292
|
- **`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 because it has a default — the default is only the fallback when the language is genuinely unclear, and an English question answered in German is 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.
|
|
293
293
|
- **`lat`** — Latitude of the point to search around, when the caller already holds a coordinate.
|
|
@@ -434,10 +434,11 @@ The server's own instructions to a connecting client, verbatim:
|
|
|
434
434
|
|
|
435
435
|
**Read-only** — it changes nothing. Reaches a third-party source (open world). Idempotent: true. Destructive: false.
|
|
436
436
|
|
|
437
|
-
> Next
|
|
437
|
+
> Next trains from a German railway station: platform, delay, cancellations. Use when asked when a train, S-Bahn or ICE leaves a named station, or if a train or line from it is late ("RE1 from Köln Hbf late?"); later today ("heute Abend") stays here. A line with no DEPARTURE station ("ist die S1 pünktlich?"; a destination, "nach …"/"zum …", is not one) — check_transit_disruption. Do NOT use for buses, trams, a non-railway stop, another day or a time over 2 h away — get_departures. Train type: categories (ICE/IC/RE/RB/S); no destination filter. ≤ 15 rows, ≤ 120 min. Show the attribution line.
|
|
438
438
|
|
|
439
439
|
| parameter | type | required | default | constraints |
|
|
440
440
|
| --- | --- | --- | --- | --- |
|
|
441
|
+
| `categories` | array of string | no | — | min 1 item(s); max 5 item(s); each item: one of `"ICE"`, `"IC"`, `"RE"`, `"RB"`, `"S"` |
|
|
441
442
|
| `duration_min` | integer | no | `60` | min 5; max 120 |
|
|
442
443
|
| `eva_no` | string | no | — | pattern `^\d{6,8}$` |
|
|
443
444
|
| `language` | string | no | `"de"` | one of `"de"`, `"en"` |
|
|
@@ -445,6 +446,7 @@ The server's own instructions to a connecting client, verbatim:
|
|
|
445
446
|
| `station` | string | no | — | min length 1; max length 120 |
|
|
446
447
|
| `when` | string | no | — | format `date-time`; pattern (288 characters — see the description; the `format` above is the short answer) |
|
|
447
448
|
|
|
449
|
+
- **`categories`** — Keep only these train types, when the person named one: "ICE", "IC" (also EC, ECE, Railjet, Nightjet), "RE" (also IRE), "RB" or "S" (S-Bahn). "next ICE to …" is ["ICE"], "Fernzug" is ["ICE", "IC"], "Regionalzug" is ["RE", "RB"]. The board then lists only those, so pair it with a longer duration_min. Omit it for "which trains leave". A replacement bus is never a train type.
|
|
448
450
|
- **`duration_min`** — How far ahead to look, in minutes (5–120, default 60). Use a small window for "what leaves now" and a larger one for "this evening". Above 120 is refused: a departure board is not a timetable search.
|
|
449
451
|
- **`eva_no`** — The station's EVA number (6–8 digits, e.g. 8002549 for Hamburg Hbf), when a previous result gave you one. It skips the name lookup and is exact — use it to answer a follow-up about a station this tool has already named.
|
|
450
452
|
- **`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 because it has a default — the default is only the fallback when the language is genuinely unclear, and an English question answered in German is 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.
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,83 @@ a Changelog and the versions follow Semantic Versioning.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [1.9.5] - 2026-10-09
|
|
9
|
+
|
|
10
|
+
**Train types, points of interest found by name, and a server card for directories.**
|
|
11
|
+
The package now matches the server's 1.9.5 and covers the server releases 1.9.0
|
|
12
|
+
to 1.9.5. 1.9.4 was never published as a package; its changes are described here.
|
|
13
|
+
No tool, prompt or resource was added or removed. One tool gained an argument, and
|
|
14
|
+
four tool descriptions changed.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- **`get_train_departures` filters by train type.** The new optional `categories`
|
|
18
|
+
argument takes `ICE`, `IC` (also EC, ECE, Railjet, Nightjet), `RE` (also IRE),
|
|
19
|
+
`RB` or `S`, so "the next ICE from Frankfurt" lists only ICEs.
|
|
20
|
+
- **Directories can read the tool list without a session.** A single `tools/list`
|
|
21
|
+
POST to `https://mcp.viafrei.de/mcp` without a session id now gets the same
|
|
22
|
+
catalogue a session gets. Every other request still needs `initialize` first.
|
|
23
|
+
- **A server card.** The MCP Server Card is served at
|
|
24
|
+
`https://mcp.viafrei.de/.well-known/mcp.json`, and its version is the server's
|
|
25
|
+
own. `viafrei.de/.well-known/mcp/server-card.json` serves the same document.
|
|
26
|
+
- **Islands are places.** "Rügen", "Sylt" or "Usedom" resolve to the island. A
|
|
27
|
+
town on its island still answers as the town.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- **`find_poi` finds the thing named.** "Hotel Adlon", a company's plant, an office
|
|
31
|
+
or a trade fair now come back as themselves. A feature that only borrows a name
|
|
32
|
+
(a taxi rank or a car park named after it) no longer ranks as the thing.
|
|
33
|
+
A kind word alone, in German or English ("Apotheke", "pharmacy"), lists the
|
|
34
|
+
nearest of that kind. The `name` and `category` descriptions say that a company
|
|
35
|
+
plus a type puts the type in `category`, and that fuel, charging and parking
|
|
36
|
+
have their own tools. A nationwide search for a hotel by name now finds the
|
|
37
|
+
hotel. Kind-word searches in big cities are much faster.
|
|
38
|
+
- **`find_charging_station` folds one place into one line.** `limit` now counts
|
|
39
|
+
lines. Records of one place within 50 m that read alike become one line that
|
|
40
|
+
says how many units it holds, and `structuredContent.sites` lists every record
|
|
41
|
+
of the lines shown. A missing kWh price is named as missing.
|
|
42
|
+
- **`check_autobahn_traffic` shares the page between roads.** Jams come first,
|
|
43
|
+
then closures, other reports, then roadworks, and within each kind the roads
|
|
44
|
+
named take turns.
|
|
45
|
+
- **Departures.** A board line's mode word comes from the route type, and its
|
|
46
|
+
destination is never blank. The bus filter no longer lets S-Bahn or U-Bahn
|
|
47
|
+
trains through, and night trams are no longer dropped. A service alert that
|
|
48
|
+
names lines but no stop is placed where those lines stop.
|
|
49
|
+
- **Station facilities.** Where one data set lists only part of a station's
|
|
50
|
+
lifts and escalators, `check_station_facilities` now merges in DB's full list.
|
|
51
|
+
A list that is still partial says that a status not fetched does not mean out
|
|
52
|
+
of service.
|
|
53
|
+
- **Roadworks.** `find_roadworks_ahead` takes lanes, hard shoulder and speed
|
|
54
|
+
limit from the construction phase in force at the time asked, and names that
|
|
55
|
+
phase. A site that has already begun is never called planned.
|
|
56
|
+
- **Fuel.** `find_fuel_station`, `find_cheapest_fuel` and `find_nearby` agree on
|
|
57
|
+
which areas are covered. An empty answer in a covered area says how many
|
|
58
|
+
stations are known there. A district is searched as a circle, and the answer
|
|
59
|
+
says so.
|
|
60
|
+
- **Places and nearby.** A town named without a comma is searched first. A
|
|
61
|
+
trailing "Germany" or "Deutschland" is dropped only when what is left is a
|
|
62
|
+
place. The nearest motorway junction comes from OpenStreetMap's junction nodes.
|
|
63
|
+
A place shows one line, not one per source.
|
|
64
|
+
- **Smaller answers.** `get_driving_rules` answers for 31 October
|
|
65
|
+
(Reformationstag). `find_place` tells "more exist" apart from "there may be
|
|
66
|
+
more". `find_sharing` says why a station has no dock count. Train departure
|
|
67
|
+
boards and address lookups are faster.
|
|
68
|
+
|
|
69
|
+
### Privacy
|
|
70
|
+
- **The server counts its own use, and nothing about the people using it.**
|
|
71
|
+
Requests are counted per hour by tool, method and client program (from a
|
|
72
|
+
fixed list of known MCP clients). No IP address, session id, argument,
|
|
73
|
+
question text or place is stored. viafrei.de's Datenschutzerklärung describes
|
|
74
|
+
this count.
|
|
75
|
+
|
|
76
|
+
## [1.9.3] - 2026-10-08
|
|
77
|
+
|
|
78
|
+
**Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
|
|
79
|
+
relays to. The running server reports 1.9.3 while the registry's latest is 1.8.30, so
|
|
80
|
+
this release moves the package to the server's number and carries whatever had been
|
|
81
|
+
waiting under `[Unreleased]`. Prepared by the `Version sync` workflow: the shipped
|
|
82
|
+
reference was re-captured from the running server, and the probe reported the surface
|
|
83
|
+
**unchanged** — only the version string moved; the capture date is the same day.
|
|
84
|
+
|
|
8
85
|
## [1.8.30] - 2026-10-08
|
|
9
86
|
|
|
10
87
|
**Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
|
|
@@ -2125,6 +2202,8 @@ for it, so the number is free; the bridge will use it when the platform does.
|
|
|
2125
2202
|
commits, and a squash makes them unreachable from `main` - which would turn
|
|
2126
2203
|
the check red on `main` for everybody, for something no contributor did.
|
|
2127
2204
|
|
|
2205
|
+
[1.9.5]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.9.5
|
|
2206
|
+
[1.9.3]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.9.3
|
|
2128
2207
|
[1.8.30]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.8.30
|
|
2129
2208
|
[1.8.29]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.8.29
|
|
2130
2209
|
[1.8.18]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.8.18
|
package/README.md
CHANGED
|
@@ -277,7 +277,7 @@ Restart the client and ask one of the questions above.
|
|
|
277
277
|
|
|
278
278
|
<!-- catalogue:begin — generated by scripts/gen-readme-catalogue.mjs from catalogue.json; do not edit by hand -->
|
|
279
279
|
|
|
280
|
-
**21 tools, 9 prompts, 10 resources and 2 resource templates** — server 1.
|
|
280
|
+
**21 tools, 9 prompts, 10 resources and 2 resource templates** — server 1.9.5, snapshot of 2026-10-08. Each line is the server's own words; the full parameters are in [API.md](API.md).
|
|
281
281
|
|
|
282
282
|
#### 🚗 On the road
|
|
283
283
|
|
|
@@ -292,7 +292,7 @@ Restart the client and ask one of the questions above.
|
|
|
292
292
|
|
|
293
293
|
| tool | what it answers |
|
|
294
294
|
|---|---|
|
|
295
|
-
| [`get_train_departures`](API.md#get_train_departures--train-departures) — Train departures | Next
|
|
295
|
+
| [`get_train_departures`](API.md#get_train_departures--train-departures) — Train departures | Next trains from a German railway station: platform, delay, cancellations. |
|
|
296
296
|
| [`get_departures`](API.md#get_departures--scheduled-departures-bus-tram-train) — Scheduled departures (bus, tram, train) | Scheduled departures from any German stop — bus, tram, U-Bahn, S-Bahn, train, ferry — with line, destination, platform. |
|
|
297
297
|
| [`check_transit_disruption`](API.md#check_transit_disruption--public-transport-disruption-in-a-region) — Public-transport disruption in a region | How punctual public transport is now in one German region: the share of trips ever over 5 min late, trips with a cancelled stop, the trend, and the service alerts in force there (diversions, closed stops). |
|
|
298
298
|
| [`check_station_facilities`](API.md#check_station_facilities--station-lifts-and-escalators) — Station lifts and escalators | Report whether the lifts and escalators of a German railway station — or of a Köln Stadtbahn stop — are working now: each one, where it is, its state (in service / out of service / unknown) and the operator's explanation. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viafrei",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.5",
|
|
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",
|