Skip to content

v0.4.0 — Metro O/D direct routing

Choose a tag to compare

@kiki830621 kiki830621 released this 31 May 08:11

v0.4.0 — Metro O/D direct routing

New MCP tool metro_find_route(from, to, system) — direct (single-line) metro O/D routing across the 6 metro systems (TRTC / TYMC / KRTC / TMRT / NTDLRT / KLRT). Returns the connecting line (name + colour), station-to-station travel time, and current-period service headway. Metros run on headways, not fixed timetables, so it does not return a specific departure time. No direct line → empty routes + transfer hint. Direct-only; transfer routing tracked in #6. (#5)

Added

  • metro_find_route tool + MetroModels (StationOfRoute / S2STravelTime / Frequency / Line). Tool count: 21 → 22.
  • 4 metro routing endpoints added to the TDXEndpoints registry + live contract enumeration (contract cases 26 → 30). No inline metro path literals — all resolved through the registry.

Notes

  • Travel-time accumulation is direction-agnostic: TDX S2STravelTime stores segments one-way only (e.g. 板南線 stores descending order), and adjacent-station run-time is symmetric. Headway is selected by Asia/Taipei weekday + time-of-day band.

Verification

  • 130 offline tests green; metro 4/4 live-contract green.
  • Live: metro_find_route(臺北車站 BL12 → 南港 BL22, TRTC) → 板南線, 18 min, 8–10 min headway.

Install

Download che-transport-mcp-0.4.0.mcpb for one-click install in Claude Desktop. Developer ID signed + Apple notarized.