@cyanheads/wsdot-mcp-server 0.2.6 → 0.3.0
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/AGENTS.md +1 -1
- package/CLAUDE.md +1 -1
- package/README.md +19 -14
- package/changelog/0.3.x/0.3.0.md +30 -0
- package/dist/mcp-server/tools/definitions/get-ferry-schedule.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-ferry-schedule.tool.js +7 -1
- package/dist/mcp-server/tools/definitions/get-ferry-schedule.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-terminal-space.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-terminal-space.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/get-terminal-space.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-toll-rates.tool.d.ts +4 -0
- package/dist/mcp-server/tools/definitions/get-toll-rates.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-toll-rates.tool.js +123 -79
- package/dist/mcp-server/tools/definitions/get-toll-rates.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-travel-times.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-travel-times.tool.js +103 -101
- package/dist/mcp-server/tools/definitions/get-travel-times.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-alerts.tool.d.ts +10 -0
- package/dist/mcp-server/tools/definitions/search-alerts.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-alerts.tool.js +152 -130
- package/dist/mcp-server/tools/definitions/search-alerts.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/search-cameras.tool.d.ts +12 -0
- package/dist/mcp-server/tools/definitions/search-cameras.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-cameras.tool.js +118 -67
- package/dist/mcp-server/tools/definitions/search-cameras.tool.js.map +1 -1
- package/dist/mcp-server/tools/page-budget.d.ts +56 -0
- package/dist/mcp-server/tools/page-budget.d.ts.map +1 -0
- package/dist/mcp-server/tools/page-budget.js +76 -0
- package/dist/mcp-server/tools/page-budget.js.map +1 -0
- package/package.json +2 -2
- package/server.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** @cyanheads/wsdot-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
4
|
+
**Version:** 0.3.0
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.6`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0 (protocol revisions 2026-07-28 and 2025-*)
|
package/CLAUDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** @cyanheads/wsdot-mcp-server
|
|
4
|
-
**Version:** 0.
|
|
4
|
+
**Version:** 0.3.0
|
|
5
5
|
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.13.6`
|
|
6
6
|
**Engines:** Bun ≥1.4.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/server` ^2.0.0 (protocol revisions 2026-07-28 and 2025-*)
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/wsdot-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/wsdot-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -34,9 +34,9 @@ Washington State transportation data from the WSDOT Traveler API and the WSF Fer
|
|
|
34
34
|
| `wsdot_get_mountain_passes` | Current conditions for all WA mountain passes: status, road condition, traction laws, temperature, elevation. |
|
|
35
35
|
| `wsdot_search_alerts` | Active highway alerts — incidents, construction, closures — filterable by state route, WSDOT region, and milepost range. |
|
|
36
36
|
| `wsdot_get_travel_times` | Current vs. average travel times for named WA highway corridors (I-5, I-90, SR 520, etc.) with congestion delay. |
|
|
37
|
-
| `wsdot_get_toll_rates` | Dynamic toll rates for WA express lanes and tolled facilities
|
|
37
|
+
| `wsdot_get_toll_rates` | Dynamic toll rates for WA express lanes and tolled facilities — SR 99, SR 167 HOT, I-405 Express, SR 509, SR 520 — filterable by route. |
|
|
38
38
|
| `wsdot_get_border_waits` | Current vehicle wait times at all WA/Canada land border crossings. |
|
|
39
|
-
| `wsdot_search_cameras` | Highway camera metadata and image URLs, filterable by state route, region, and
|
|
39
|
+
| `wsdot_search_cameras` | Highway camera metadata and image URLs, filterable by state route, region, milepost range, and title words. |
|
|
40
40
|
| `wsdot_get_ferry_terminals` | All WSF ferry terminals with numeric IDs needed for schedule and space lookups. |
|
|
41
41
|
| `wsdot_get_ferry_routes` | WSF routes operating on a given date — route ID, abbreviation, and description for each, for route discovery and ferry-alert cross-reference. |
|
|
42
42
|
| `wsdot_get_ferry_schedule` | Departure times for a specific WSF route — today-remaining or full-day future mode. |
|
|
@@ -57,21 +57,21 @@ Washington State transportation data from the WSDOT Traveler API and the WSF Fer
|
|
|
57
57
|
### `wsdot_search_alerts` <sub>tool</sub>
|
|
58
58
|
|
|
59
59
|
- Filter by state route — natural forms all work: `"I-90"`, `"90"`, `"090"`, or `"SR 520"` / `"520"`
|
|
60
|
-
- Filter by WSDOT region: Northwest, Olympic, Southwest, South Central, North Central, Eastern
|
|
61
|
-
- Filter by milepost range to scope to a corridor — an alert matches when its extent overlaps the range, so a closure that spans the boundary is returned
|
|
62
|
-
- Omit all filters to return all current statewide alerts
|
|
60
|
+
- Filter by WSDOT region name: Northwest, Olympic, Southwest, South Central, North Central, Eastern (case-insensitive; any other value is rejected with `invalid_region`)
|
|
61
|
+
- Filter by milepost range to scope to a corridor — an alert matches when its extent overlaps the range, so a closure that spans the boundary is returned. Either bound may be given alone; a start above the end is rejected with `invalid_milepost_range`
|
|
62
|
+
- Omit all filters to return all current statewide alerts; `stateRoute` and `region` accept at most 200 characters
|
|
63
63
|
- Descriptions are normalized to plain text; a link renders inline as `link text (url)`
|
|
64
|
-
- Results ordered by `alertId` and paged (default
|
|
64
|
+
- Results ordered by `alertId` and paged (default 20, max 500) — pass `offset`/`limit`; a page also ends early at a 24,000-byte response budget, and the notice reports the next offset
|
|
65
65
|
|
|
66
66
|
---
|
|
67
67
|
|
|
68
68
|
### `wsdot_get_travel_times` <sub>tool</sub>
|
|
69
69
|
|
|
70
70
|
- Covers I-5, I-90, SR 520, SR 99, I-405, SR 167, and others
|
|
71
|
-
- Filter by route (`"I-5"`, `"5"`, `"SR 520"`) to get every corridor measured on it, or by any text to match corridor names (`"Everett"`)
|
|
71
|
+
- Filter by route (`"I-5"`, `"5"`, `"SR 520"`) to get every corridor measured on it, or by any text to match corridor names (`"Everett"`); `route` accepts at most 200 characters
|
|
72
72
|
- When current time exceeds average, the corridor is congested; the delta is the delay
|
|
73
73
|
- Reversible express-lane corridors report no travel time while closed in the queried direction — those figures are omitted rather than reported as zero minutes
|
|
74
|
-
- Results are paged (default 50, max 500) — pass `offset`/`limit`; the notice reports the next offset
|
|
74
|
+
- Results are paged (default 50, max 500) — pass `offset`/`limit`; a page also ends early at a 24,000-byte response budget, and the notice reports the next offset
|
|
75
75
|
|
|
76
76
|
---
|
|
77
77
|
|
|
@@ -79,9 +79,11 @@ Washington State transportation data from the WSDOT Traveler API and the WSF Fer
|
|
|
79
79
|
|
|
80
80
|
- Covers SR 99 (WSDOT Tunnel), SR 167 HOT Lanes, I-405 Express Lanes, the SR 509 tolled segment, and the SR 520 Bridge
|
|
81
81
|
- Rates are time-banded and change dynamically based on traffic conditions
|
|
82
|
-
- `stateRoute`
|
|
82
|
+
- Filter to one facility with `stateRoute` — `"SR 520"`, `"520"`, `"0520"`, `"I-405"`, and `"405"` all work, matched against the posted designation, so `"SR 405"` matches nothing. A route with no tolled facility returns an empty page whose notice names the tolled routes; the filter (at most 200 characters) is applied before paging and echoed in `appliedFilters`
|
|
83
|
+
- Each row's `stateRoute` is the bare, zero-padded route number the feed carries (`"099"`, `"405"`) with no route type; the rendered text resolves the posted designation, so I-405 reads as `I-405` rather than `SR 405`
|
|
84
|
+
- `travelDirection` is the feed's code, not the direction of travel: SR 99, SR 509, and SR 520 carry one fixed code per facility although trips run both ways — read direction from the segment's start and end
|
|
83
85
|
- Each entry leads with its readable `startLocationName → endLocationName` segment; the opaque upstream trip key stays available as `tripName`
|
|
84
|
-
- Results are paged (default 50, max 500) — pass `offset`/`limit`; the notice reports the next offset
|
|
86
|
+
- Results are paged (default 50, max 500) — pass `offset`/`limit`; a page also ends early at a 24,000-byte response budget, and the notice reports the next offset
|
|
85
87
|
|
|
86
88
|
---
|
|
87
89
|
|
|
@@ -96,10 +98,13 @@ Washington State transportation data from the WSDOT Traveler API and the WSF Fer
|
|
|
96
98
|
|
|
97
99
|
### `wsdot_search_cameras` <sub>tool</sub>
|
|
98
100
|
|
|
99
|
-
- Filter by state route (`"I-90"`, `"90"`, `"SR 520"`, or `"520"` all work), WSDOT region, or
|
|
101
|
+
- Filter by state route (`"I-90"`, `"90"`, `"SR 520"`, or `"520"` all work), WSDOT region code, milepost range, or words in the camera title; `stateRoute`, `region`, and `titleContains` accept at most 200 characters
|
|
100
102
|
- Camera road names carry a route-type prefix, so `"SR 26"` excludes US 26 and `"US 97"` excludes US 97A; a bare `"26"` returns both
|
|
103
|
+
- Region codes: `NW`, `SW`, `OL`, `ER`, `SC`, `NC`, `OS` (Oregon — the TripCheck cameras around Portland), and `WA` (airport cameras plus a few ferry-terminal cameras — most ferry-terminal cameras sit in `NW` and `OL`). Case-insensitive; any other value is rejected with `invalid_region`
|
|
104
|
+
- `titleContains` matches the title as WSDOT wrote it — case-insensitive, every word must appear in any order — so `"Snoqualmie"` returns Snoqualmie Summit and East Snoqualmie Summit but not Hyak. Titles lead with route and milepost, so filter a route with `stateRoute`
|
|
105
|
+
- Either milepost bound may be given alone; a start above the end is rejected with `invalid_milepost_range`
|
|
101
106
|
- Returns metadata and image URLs — camera images are copyright WSDOT, not fetched as bytes
|
|
102
|
-
- Results are ordered by `cameraId` and paged (default 50, max 500) — pass `offset`/`limit`; the notice reports the next offset
|
|
107
|
+
- Results are ordered by `cameraId` and paged (default 50, max 500) — pass `offset`/`limit`; a page also ends early at a 24,000-byte response budget, and the notice reports the next offset
|
|
103
108
|
|
|
104
109
|
---
|
|
105
110
|
|
|
@@ -122,7 +127,7 @@ Washington State transportation data from the WSDOT Traveler API and the WSF Fer
|
|
|
122
127
|
|
|
123
128
|
### `wsdot_get_ferry_schedule` <sub>tool</sub>
|
|
124
129
|
|
|
125
|
-
- Requires
|
|
130
|
+
- Requires `departingTerminalId` and `arrivingTerminalId`, both positive integers — use `wsdot_get_ferry_terminals` first
|
|
126
131
|
- Optional `tripDate` (defaults to today) and `remainingOnly: true` (only future departures for today; ignored for future dates)
|
|
127
132
|
- `departureTime` and `arrivalTime` are ISO 8601 **UTC**, while `tripDate` is the Pacific service day — an evening sailing therefore carries the following UTC calendar date and will not match `tripDate`. Convert to `America/Los_Angeles` before quoting a clock time
|
|
128
133
|
- `arrivalTime` is populated on some routes and absent on others
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Traffic tools reject invalid regions and reversed milepost ranges, toll rates gain a stateRoute filter and cameras a titleContains filter, and each traffic page now ends at a 24,000-byte budget per surface."
|
|
3
|
+
breaking: true
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.3.0 — 2026-09-24
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- **`wsdot_get_toll_rates` `stateRoute` filter** ([#44](https://github.com/cyanheads/wsdot-mcp-server/issues/44)) — `"SR 520"`, `"520"`, `"0520"`, `"I-405"`, and `"405"` all work, matched against the posted designation before paging and echoed in a new `appliedFilters` enrichment. A route with no tolled facility returns an empty page whose notice names the tolled routes.
|
|
12
|
+
- **`wsdot_search_cameras` `titleContains` filter** ([#45](https://github.com/cyanheads/wsdot-mcp-server/issues/45)) — case-insensitive, every whitespace-separated word must appear in the camera title; composes with the other filters and is echoed in `appliedFilters`.
|
|
13
|
+
- **Page byte budget** ([#43](https://github.com/cyanheads/wsdot-mcp-server/issues/43)) — `wsdot_search_alerts`, `wsdot_search_cameras`, `wsdot_get_travel_times`, and `wsdot_get_toll_rates` end a page at `limit` or at 24,000 bytes per surface (`structuredContent` and `content[]`), whichever comes first; a budget-ended page says so in its notice.
|
|
14
|
+
|
|
15
|
+
## Changed
|
|
16
|
+
|
|
17
|
+
- **Invalid traffic filters fail instead of returning an empty page** ([#39](https://github.com/cyanheads/wsdot-mcp-server/issues/39)) — on `wsdot_search_alerts` and `wsdot_search_cameras`, a `region` outside the tool's vocabulary (names on alerts, codes on cameras; case-insensitive) raises `invalid_region`, and `startMilepost > endMilepost` raises `invalid_milepost_range`. Blank filters are still treated as omitted.
|
|
18
|
+
- **Ferry terminal IDs must be positive integers** — `departingTerminalId` on `wsdot_get_terminal_space` and both IDs on `wsdot_get_ferry_schedule`; anything else is an `InvalidParams` rejection that never reaches the upstream.
|
|
19
|
+
- **Free-text traffic filters accept at most 200 characters** — `stateRoute`, `region`, `route`, and `titleContains`.
|
|
20
|
+
- **`wsdot_search_alerts` default `limit`** drops from 50 to 20; the other three paged traffic tools stay at 50.
|
|
21
|
+
- **Migration:** a region outside the tool's vocabulary, a reversed milepost range, a non-positive or fractional terminal ID, or a filter over 200 characters now errors instead of returning an empty page; an alerts page defaults to 20 rows; and any traffic page may end before `limit` at the byte budget, reported through `hasMore` / `nextOffset` and the notice.
|
|
22
|
+
|
|
23
|
+
## Fixed
|
|
24
|
+
|
|
25
|
+
- **`wsdot_get_toll_rates` output descriptions** — `stateRoute` is stated as the bare, zero-padded feed value, and `travelDirection` as one fixed code per facility on SR 99, SR 509, and SR 520 rather than the direction of travel.
|
|
26
|
+
- **`wsdot_search_cameras` `region` description** — `OS` is the Oregon TripCheck cameras around Portland and `WA` the airport cameras plus a few ferry-terminal cameras, not "Olympic South" and "statewide".
|
|
27
|
+
|
|
28
|
+
## Dependencies
|
|
29
|
+
|
|
30
|
+
- `@types/node` `^26.6.1` → `^26.6.2` (dev)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ferry-schedule.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ferry-schedule.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAI3E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-ferry-schedule.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ferry-schedule.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAI3E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuM3B,CAAC"}
|
|
@@ -20,8 +20,14 @@ export const getFerrySchedule = tool('wsdot_get_ferry_schedule', {
|
|
|
20
20
|
input: z.object({
|
|
21
21
|
departingTerminalId: z
|
|
22
22
|
.number()
|
|
23
|
+
.int()
|
|
24
|
+
.positive()
|
|
23
25
|
.describe('Numeric ID of the departing terminal. Use wsdot_get_ferry_terminals to look up terminal IDs.'),
|
|
24
|
-
arrivingTerminalId: z
|
|
26
|
+
arrivingTerminalId: z
|
|
27
|
+
.number()
|
|
28
|
+
.int()
|
|
29
|
+
.positive()
|
|
30
|
+
.describe('Numeric ID of the arriving terminal.'),
|
|
25
31
|
tripDate: z
|
|
26
32
|
.string()
|
|
27
33
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ferry-schedule.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ferry-schedule.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGxF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,EAAE;IAC/D,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EACT,0EAA0E;QAC1E,kGAAkG;QAClG,wGAAwG;QACxG,4DAA4D;QAC5D,gGAAgG;QAChG,wFAAwF;QACxF,+FAA+F;QAC/F,kFAAkF;QAClF,iGAAiG;IACnG,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,mBAAmB,EAAE,CAAC;aACnB,MAAM,EAAE;aACR,QAAQ,CACP,8FAA8F,CAC/F;QACH,kBAAkB,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"get-ferry-schedule.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-ferry-schedule.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAA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,MAAM,KAAK,GAAa,CAAC,uBAAuB,KAAK,EAAE,CAAC,CAAC;QACzD,IAAI,MAAM,CAAC,qBAAqB;YAAE,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAC1F,IAAI,MAAM,CAAC,oBAAoB;YAAE,KAAK,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,oBAAoB,EAAE,CAAC,CAAC;QACtF,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAEf,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC;QAC3D,CAAC;aAAM,CAAC;YACN,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;gBAChC,MAAM,GAAG,GAAG,CAAC,CAAC,aAAa,IAAI,SAAS,CAAC;gBACzC,MAAM,GAAG,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvD,MAAM,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACxD,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,GAAG,GAAG,MAAM,EAAE,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-terminal-space.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-terminal-space.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAWjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-terminal-space.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-terminal-space.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAWjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4R3B,CAAC"}
|
|
@@ -27,6 +27,8 @@ export const getTerminalSpace = tool('wsdot_get_terminal_space', {
|
|
|
27
27
|
input: z.object({
|
|
28
28
|
departingTerminalId: z
|
|
29
29
|
.number()
|
|
30
|
+
.int()
|
|
31
|
+
.positive()
|
|
30
32
|
.optional()
|
|
31
33
|
.describe('Filter to a specific terminal by numeric ID. Omit to return all terminals.'),
|
|
32
34
|
offset: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-terminal-space.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-terminal-space.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,EAAE;IAC/D,KAA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IAAI,IAAI,EAAE,CAAC;wBACnC,mFAAmF;wBACnF,sFAAsF;wBACtF,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,aAAa,SAAS,CAAC,CAAC;oBACtD,CAAC;oBACD,IAAI,CAAC,CAAC,sBAAsB,KAAK,KAAK,EAAE,CAAC;wBACvC,KAAK,CAAC,IAAI,CACR,+EAA+E,CAChF,CAAC;oBACJ,CAAC;yBAAM,IAAI,CAAC,CAAC,sBAAsB,KAAK,IAAI,IAAI,CAAC,CAAC,oBAAoB,IAAI,IAAI,EAAE,CAAC;wBAC/E,KAAK,CAAC,IAAI,CACR,+FAA+F,CAChG,CAAC;oBACJ,CAAC;oBACD,IAAI,CAAC,CAAC,oBAAoB,IAAI,IAAI,EAAE,CAAC;wBACnC,MAAM,IAAI,GAAG,CAAC,CAAC,oBAAoB,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;wBAC1D,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,oBAAoB,UAAU,IAAI,EAAE,CAAC,CAAC;oBACtE,CAAC;oBACD,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;wBAC3B,KAAK,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,oBAAoB,EAAE,CAAC,CAAC;oBACnE,CAAC;gBACH,CAAC;YACH,CAAC;YACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-terminal-space.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-terminal-space.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,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C;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { z } from '@cyanheads/mcp-ts-core';
|
|
6
6
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
7
7
|
export declare const getTollRates: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
|
|
8
|
+
stateRoute: z.ZodOptional<z.ZodString>;
|
|
8
9
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
9
10
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
10
11
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -42,6 +43,9 @@ export declare const getTollRates: import("@cyanheads/mcp-ts-core").ToolDefiniti
|
|
|
42
43
|
readonly totalCount: z.ZodNumber;
|
|
43
44
|
readonly nextOffset: z.ZodNullable<z.ZodNumber>;
|
|
44
45
|
readonly hasMore: z.ZodBoolean;
|
|
46
|
+
readonly appliedFilters: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
stateRoute: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
45
49
|
readonly notice: z.ZodOptional<z.ZodString>;
|
|
46
50
|
}>;
|
|
47
51
|
//# sourceMappingURL=get-toll-rates.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-toll-rates.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-toll-rates.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-toll-rates.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-toll-rates.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyDjE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuKvB,CAAC"}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import { tool, z } from '@cyanheads/mcp-ts-core';
|
|
6
6
|
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
7
7
|
import { coordinatePair } from '../coordinate-pair.js';
|
|
8
|
+
import { continuationNotice, fitPageToBudget, MAX_FILTER_LENGTH, PAGE_BYTE_BUDGET, renderPage, } from '../page-budget.js';
|
|
9
|
+
import { routeMatches } from '../../../services/traffic/route-match.js';
|
|
8
10
|
import { getTrafficApiService } from '../../../services/traffic/traffic-service.js';
|
|
9
11
|
const DEFAULT_LIMIT = 50;
|
|
10
12
|
const MAX_LIMIT = 500;
|
|
@@ -19,16 +21,47 @@ function routeDesignation(stateRoute) {
|
|
|
19
21
|
const number = stateRoute.replace(/^0+(?=\d)/, '');
|
|
20
22
|
return INTERSTATE_ROUTE_NUMBERS.has(number) ? `I-${number}` : `SR ${number}`;
|
|
21
23
|
}
|
|
24
|
+
const TollRateSchema = z
|
|
25
|
+
.object({
|
|
26
|
+
tripName: z.string().optional().describe('Name of the tolled trip or lane segment.'),
|
|
27
|
+
stateRoute: z
|
|
28
|
+
.string()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('Route number as the feed reports it: bare and zero-padded, with no route type ("099", "405"). The rendered text shows the posted designation (SR 99, I-405).'),
|
|
31
|
+
travelDirection: z
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('Direction code the feed assigns the toll trip: N, S, E, or W. On SR 99, SR 509, and SR 520 it is one fixed code per facility (S, S, and E) although trips run both ways, so read the direction of travel from the segment ends — startLocationName/endLocationName and startMilepost → endMilepost — not from this code.'),
|
|
35
|
+
startMilepost: z.number().optional().describe('Starting milepost of the toll segment.'),
|
|
36
|
+
endMilepost: z.number().optional().describe('Ending milepost of the toll segment.'),
|
|
37
|
+
tollRateInDollars: z.number().optional().describe('Current toll rate in US dollars.'),
|
|
38
|
+
message: z.string().optional().describe('Dynamic message associated with this toll.'),
|
|
39
|
+
startLocationName: z.string().optional().describe('Human-readable start location name.'),
|
|
40
|
+
endLocationName: z.string().optional().describe('Human-readable end location name.'),
|
|
41
|
+
startLatitude: z.number().optional().describe('Latitude of the segment start point.'),
|
|
42
|
+
startLongitude: z.number().optional().describe('Longitude of the segment start point.'),
|
|
43
|
+
endLatitude: z.number().optional().describe('Latitude of the segment end point.'),
|
|
44
|
+
endLongitude: z.number().optional().describe('Longitude of the segment end point.'),
|
|
45
|
+
timeUpdated: z.string().optional().describe('When this toll rate was last updated (ISO 8601).'),
|
|
46
|
+
})
|
|
47
|
+
.describe('Current toll rate for one segment or trip.');
|
|
22
48
|
export const getTollRates = tool('wsdot_get_toll_rates', {
|
|
23
49
|
title: 'Get Toll Rates',
|
|
24
50
|
description: 'Returns current dynamic toll rates for WA express lanes and tolled facilities: SR 99 (WSDOT Tunnel), ' +
|
|
25
51
|
'SR 167 HOT Lanes, I-405 Express Lanes, SR 509 tolled segment, and the SR 520 Bridge. ' +
|
|
26
52
|
'Rates are time-banded and change dynamically based on traffic conditions. ' +
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
53
|
+
'Filter to one facility with stateRoute ("SR 520", "520", "I-405", or "405" all work). ' +
|
|
54
|
+
'Each row reports stateRoute as the bare, zero-padded number the feed carries ("099", "405") — ' +
|
|
55
|
+
'the posted designation is in the rendered text. Results are paged — pass offset/limit to page ' +
|
|
56
|
+
'through the matching set. ' +
|
|
57
|
+
`A page ends at limit or at a ${PAGE_BYTE_BUDGET.toLocaleString('en-US')}-byte response budget, whichever comes first; the notice reports the next offset.`,
|
|
30
58
|
annotations: { readOnlyHint: true },
|
|
31
59
|
input: z.object({
|
|
60
|
+
stateRoute: z
|
|
61
|
+
.string()
|
|
62
|
+
.max(MAX_FILTER_LENGTH)
|
|
63
|
+
.optional()
|
|
64
|
+
.describe('Tolled route to filter by. Accepts natural forms — "SR 520", "520", "0520", "I-405", "405" — matched case- and space-insensitively against each row\'s posted designation, so a route-type prefix must agree: "SR 405" matches nothing because the I-405 Express Lanes are an Interstate. A route with no tolled facility returns an empty page whose notice names the tolled routes. Omit to include every facility.'),
|
|
32
65
|
offset: z
|
|
33
66
|
.number()
|
|
34
67
|
.int()
|
|
@@ -41,52 +74,39 @@ export const getTollRates = tool('wsdot_get_toll_rates', {
|
|
|
41
74
|
.min(1)
|
|
42
75
|
.max(MAX_LIMIT)
|
|
43
76
|
.optional()
|
|
44
|
-
.describe(`Maximum toll rates to return in this page (1–${MAX_LIMIT}). Defaults to ${DEFAULT_LIMIT}.`),
|
|
77
|
+
.describe(`Maximum toll rates to return in this page (1–${MAX_LIMIT}). Defaults to ${DEFAULT_LIMIT}. A large page ends sooner, at the ${PAGE_BYTE_BUDGET.toLocaleString('en-US')}-byte response budget.`),
|
|
45
78
|
}),
|
|
46
79
|
output: z.object({
|
|
47
80
|
rates: z
|
|
48
|
-
.array(
|
|
49
|
-
.
|
|
50
|
-
tripName: z.string().optional().describe('Name of the tolled trip or lane segment.'),
|
|
51
|
-
stateRoute: z.string().optional().describe('State route number.'),
|
|
52
|
-
travelDirection: z
|
|
53
|
-
.string()
|
|
54
|
-
.optional()
|
|
55
|
-
.describe('Travel direction code for this toll segment: N (north), S (south), E (east), W (west).'),
|
|
56
|
-
startMilepost: z.number().optional().describe('Starting milepost of the toll segment.'),
|
|
57
|
-
endMilepost: z.number().optional().describe('Ending milepost of the toll segment.'),
|
|
58
|
-
tollRateInDollars: z.number().optional().describe('Current toll rate in US dollars.'),
|
|
59
|
-
message: z.string().optional().describe('Dynamic message associated with this toll.'),
|
|
60
|
-
startLocationName: z
|
|
61
|
-
.string()
|
|
62
|
-
.optional()
|
|
63
|
-
.describe('Human-readable start location name.'),
|
|
64
|
-
endLocationName: z.string().optional().describe('Human-readable end location name.'),
|
|
65
|
-
startLatitude: z.number().optional().describe('Latitude of the segment start point.'),
|
|
66
|
-
startLongitude: z.number().optional().describe('Longitude of the segment start point.'),
|
|
67
|
-
endLatitude: z.number().optional().describe('Latitude of the segment end point.'),
|
|
68
|
-
endLongitude: z.number().optional().describe('Longitude of the segment end point.'),
|
|
69
|
-
timeUpdated: z
|
|
70
|
-
.string()
|
|
71
|
-
.optional()
|
|
72
|
-
.describe('When this toll rate was last updated (ISO 8601).'),
|
|
73
|
-
})
|
|
74
|
-
.describe('Current toll rate for one segment or trip.'))
|
|
75
|
-
.describe('Current toll rates for all active tolled facilities.'),
|
|
81
|
+
.array(TollRateSchema)
|
|
82
|
+
.describe('Current toll rates for the matching tolled facilities.'),
|
|
76
83
|
}),
|
|
77
84
|
enrichment: {
|
|
78
85
|
totalCount: z
|
|
79
86
|
.number()
|
|
80
|
-
.describe('Total toll rate entries across all pages (not just this page).'),
|
|
87
|
+
.describe('Total toll rate entries matching the filter across all pages (not just this page).'),
|
|
81
88
|
nextOffset: z
|
|
82
89
|
.number()
|
|
83
90
|
.nullable()
|
|
84
91
|
.describe('Offset to pass to retrieve the next page, or null when this is the last page.'),
|
|
85
92
|
hasMore: z.boolean().describe('True when more toll rates remain beyond the current page.'),
|
|
93
|
+
appliedFilters: z
|
|
94
|
+
.object({
|
|
95
|
+
stateRoute: z.string().optional().describe('State route filter applied.'),
|
|
96
|
+
})
|
|
97
|
+
.optional()
|
|
98
|
+
.describe('Active filters applied to the toll rates. Absent when no filter was applied.'),
|
|
86
99
|
notice: z
|
|
87
100
|
.string()
|
|
88
101
|
.optional()
|
|
89
|
-
.describe('Informational note about the page window, or guidance when no toll rate data is available or the offset ran past the end.'),
|
|
102
|
+
.describe('Informational note about the page window, or guidance when no toll rate data is available, the route has no tolled facility, or the offset ran past the end.'),
|
|
103
|
+
},
|
|
104
|
+
enrichmentTrailer: {
|
|
105
|
+
appliedFilters: {
|
|
106
|
+
render: (filters) => filters?.stateRoute
|
|
107
|
+
? `**Applied Filters:**\n- **Route:** ${filters.stateRoute}`
|
|
108
|
+
: '**Applied Filters:** none',
|
|
109
|
+
},
|
|
90
110
|
},
|
|
91
111
|
errors: [
|
|
92
112
|
{
|
|
@@ -107,27 +127,51 @@ export const getTollRates = tool('wsdot_get_toll_rates', {
|
|
|
107
127
|
},
|
|
108
128
|
],
|
|
109
129
|
async handler(input, ctx) {
|
|
130
|
+
const stateRoute = input.stateRoute?.trim() || undefined;
|
|
110
131
|
const allRates = await getTrafficApiService().getTollRates(ctx);
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
|
|
114
|
-
|
|
132
|
+
// The feed value carries no route type, so it is matched as its posted designation — a bare
|
|
133
|
+
// "405" would otherwise let "SR 405" return the I-405 Express Lanes.
|
|
134
|
+
const matched = stateRoute
|
|
135
|
+
? allRates.filter((r) => r.stateRoute != null && routeMatches(stateRoute, routeDesignation(r.stateRoute)))
|
|
136
|
+
: allRates;
|
|
137
|
+
// Page the matching set so structuredContent and content[] carry the identical page (the
|
|
138
|
+
// service stays fetch-only; filtering and paging are tool-handler concerns). totalCount
|
|
139
|
+
// stays the full match count so the agent knows how much lies beyond this page.
|
|
140
|
+
const totalCount = matched.length;
|
|
115
141
|
const offset = input.offset ?? 0;
|
|
116
142
|
const limit = input.limit ?? DEFAULT_LIMIT;
|
|
117
|
-
const
|
|
143
|
+
const requested = matched.slice(offset, offset + limit);
|
|
144
|
+
const rates = fitPageToBudget(requested, renderTollRate, stateRoute);
|
|
118
145
|
const hasMore = offset + rates.length < totalCount;
|
|
119
146
|
const nextOffset = hasMore ? offset + rates.length : null;
|
|
120
147
|
ctx.log.info('Toll rates fetched', { totalCount, offset, limit, returned: rates.length });
|
|
121
|
-
ctx.enrich({
|
|
122
|
-
|
|
148
|
+
ctx.enrich({
|
|
149
|
+
totalCount,
|
|
150
|
+
nextOffset,
|
|
151
|
+
hasMore,
|
|
152
|
+
...(stateRoute && { appliedFilters: { stateRoute } }),
|
|
153
|
+
});
|
|
154
|
+
if (allRates.length === 0) {
|
|
123
155
|
ctx.enrich.notice('No toll rate data available. The WSDOT API may be temporarily unavailable — retry in 30 seconds.');
|
|
124
156
|
}
|
|
157
|
+
else if (totalCount === 0) {
|
|
158
|
+
// Dedupe the designations, not the raw values — "099" and "99" are one facility.
|
|
159
|
+
const tolled = [
|
|
160
|
+
...new Set(allRates
|
|
161
|
+
.flatMap((r) => (r.stateRoute ? [r.stateRoute] : []))
|
|
162
|
+
.toSorted((a, b) => Number.parseInt(a, 10) - Number.parseInt(b, 10))
|
|
163
|
+
.map(routeDesignation)),
|
|
164
|
+
];
|
|
165
|
+
ctx.enrich.notice(`No tolled facility on ${stateRoute}. The feed carries tolls on ${tolled.join(', ')} — pass one of those, or omit stateRoute for every facility.`);
|
|
166
|
+
}
|
|
125
167
|
else if (rates.length === 0) {
|
|
126
168
|
ctx.enrich.notice(`Offset ${offset} is past the end of ${totalCount} toll rate entries. Use an offset between 0 and ${totalCount - 1}.`);
|
|
127
169
|
}
|
|
128
170
|
else {
|
|
129
|
-
const
|
|
130
|
-
ctx.enrich.notice(
|
|
171
|
+
const shown = `Showing toll rates ${offset + 1}–${offset + rates.length} of ${totalCount}.`;
|
|
172
|
+
ctx.enrich.notice(nextOffset === null
|
|
173
|
+
? shown
|
|
174
|
+
: `${shown} ${continuationNotice(nextOffset, rates.length < requested.length)}`);
|
|
131
175
|
}
|
|
132
176
|
return { rates };
|
|
133
177
|
},
|
|
@@ -135,42 +179,42 @@ export const getTollRates = tool('wsdot_get_toll_rates', {
|
|
|
135
179
|
if (result.rates.length === 0) {
|
|
136
180
|
return [{ type: 'text', text: 'No toll rate data available.' }];
|
|
137
181
|
}
|
|
138
|
-
|
|
139
|
-
for (const r of result.rates) {
|
|
140
|
-
// tripName is an opaque upstream key ("099tp03268"); the endpoint names read as a segment,
|
|
141
|
-
// so they lead. A segment whose ends carry the same name collapses to one.
|
|
142
|
-
const ends = [r.startLocationName, r.endLocationName].filter(Boolean);
|
|
143
|
-
const segment = [...new Set(ends)].join(' → ');
|
|
144
|
-
lines.push(`### ${segment || r.tripName || 'Toll segment'}`);
|
|
145
|
-
if (r.tripName)
|
|
146
|
-
lines.push(`**Trip:** ${r.tripName}`);
|
|
147
|
-
if (r.stateRoute)
|
|
148
|
-
lines.push(`**Route:** ${routeDesignation(r.stateRoute)}`);
|
|
149
|
-
if (r.travelDirection)
|
|
150
|
-
lines.push(`**Direction:** ${r.travelDirection}`);
|
|
151
|
-
if (r.startLocationName)
|
|
152
|
-
lines.push(`**From:** ${r.startLocationName}`);
|
|
153
|
-
if (r.endLocationName)
|
|
154
|
-
lines.push(`**To:** ${r.endLocationName}`);
|
|
155
|
-
if (r.startMilepost != null)
|
|
156
|
-
lines.push(`**Start MP:** ${r.startMilepost}`);
|
|
157
|
-
if (r.endMilepost != null)
|
|
158
|
-
lines.push(`**End MP:** ${r.endMilepost}`);
|
|
159
|
-
if (r.tollRateInDollars != null)
|
|
160
|
-
lines.push(`**Rate:** $${r.tollRateInDollars.toFixed(2)}`);
|
|
161
|
-
if (r.message)
|
|
162
|
-
lines.push(`**Message:** ${r.message}`);
|
|
163
|
-
const startCoords = coordinatePair(r.startLatitude, r.startLongitude);
|
|
164
|
-
if (startCoords)
|
|
165
|
-
lines.push(`**Start Coords:** ${startCoords}`);
|
|
166
|
-
const endCoords = coordinatePair(r.endLatitude, r.endLongitude);
|
|
167
|
-
if (endCoords)
|
|
168
|
-
lines.push(`**End Coords:** ${endCoords}`);
|
|
169
|
-
if (r.timeUpdated)
|
|
170
|
-
lines.push(`**Updated:** ${r.timeUpdated}`);
|
|
171
|
-
lines.push('');
|
|
172
|
-
}
|
|
173
|
-
return [{ type: 'text', text: lines.join('\n') }];
|
|
182
|
+
return [{ type: 'text', text: renderPage(result.rates, renderTollRate) }];
|
|
174
183
|
},
|
|
175
184
|
});
|
|
185
|
+
/** One toll rate's `content[]` block — shared by `format()` and the page-budget charge. */
|
|
186
|
+
function renderTollRate(r) {
|
|
187
|
+
// tripName is an opaque upstream key ("099tp03268"); the endpoint names read as a segment,
|
|
188
|
+
// so they lead. A segment whose ends carry the same name collapses to one.
|
|
189
|
+
const ends = [r.startLocationName, r.endLocationName].filter(Boolean);
|
|
190
|
+
const segment = [...new Set(ends)].join(' → ');
|
|
191
|
+
const lines = [`### ${segment || r.tripName || 'Toll segment'}`];
|
|
192
|
+
if (r.tripName)
|
|
193
|
+
lines.push(`**Trip:** ${r.tripName}`);
|
|
194
|
+
if (r.stateRoute)
|
|
195
|
+
lines.push(`**Route:** ${routeDesignation(r.stateRoute)}`);
|
|
196
|
+
if (r.travelDirection)
|
|
197
|
+
lines.push(`**Direction:** ${r.travelDirection}`);
|
|
198
|
+
if (r.startLocationName)
|
|
199
|
+
lines.push(`**From:** ${r.startLocationName}`);
|
|
200
|
+
if (r.endLocationName)
|
|
201
|
+
lines.push(`**To:** ${r.endLocationName}`);
|
|
202
|
+
if (r.startMilepost != null)
|
|
203
|
+
lines.push(`**Start MP:** ${r.startMilepost}`);
|
|
204
|
+
if (r.endMilepost != null)
|
|
205
|
+
lines.push(`**End MP:** ${r.endMilepost}`);
|
|
206
|
+
if (r.tollRateInDollars != null)
|
|
207
|
+
lines.push(`**Rate:** $${r.tollRateInDollars.toFixed(2)}`);
|
|
208
|
+
if (r.message)
|
|
209
|
+
lines.push(`**Message:** ${r.message}`);
|
|
210
|
+
const startCoords = coordinatePair(r.startLatitude, r.startLongitude);
|
|
211
|
+
if (startCoords)
|
|
212
|
+
lines.push(`**Start Coords:** ${startCoords}`);
|
|
213
|
+
const endCoords = coordinatePair(r.endLatitude, r.endLongitude);
|
|
214
|
+
if (endCoords)
|
|
215
|
+
lines.push(`**End Coords:** ${endCoords}`);
|
|
216
|
+
if (r.timeUpdated)
|
|
217
|
+
lines.push(`**Updated:** ${r.timeUpdated}`);
|
|
218
|
+
return lines.join('\n');
|
|
219
|
+
}
|
|
176
220
|
//# sourceMappingURL=get-toll-rates.tool.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-toll-rates.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-toll-rates.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,SAAS,GAAG,GAAG,CAAC;AAEtB;;;;GAIG;AACH,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAExF,oGAAoG;AACpG,SAAS,gBAAgB,CAAC,UAAkB;IAC1C,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACnD,OAAO,wBAAwB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,MAAM,EAAE,CAAC;AAC/E,CAAC;AAED,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"get-toll-rates.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-toll-rates.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;A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Ac,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5F,IAAI,CAAC,CAAC,OAAO;QAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACvD,MAAM,WAAW,GAAG,cAAc,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC;IACtE,IAAI,WAAW;QAAE,KAAK,CAAC,IAAI,CAAC,qBAAqB,WAAW,EAAE,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC;IAChE,IAAI,SAAS;QAAE,KAAK,CAAC,IAAI,CAAC,mBAAmB,SAAS,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,CAAC,WAAW;QAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;IAC/D,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-travel-times.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-travel-times.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-travel-times.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-travel-times.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAqEjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2JzB,CAAC"}
|