v0.1.1 — Bug Fixes & Cross-Platform Hardening
Bug Fixes
- Fixed NoneType crashes in telemetry tools — 8 methods in TelemetryService (get_rpm_trace, get_drs_usage, get_telemetry_segment, get_corner_telemetry, find_max_speed,
find_min_speed_corner, throttle_application_analysis, braking_point_analysis) would crash with TypeError when telemetry data was unavailable - Fixed NoneType crashes in corner speed analysis — corner_entry_speed, corner_apex_speed, corner_exit_speed crashed when the requested corner number didn't exist;
corner_speed_comparison performed arithmetic on None values - Fixed NaN-to-number crashes — get_driver_points and get_fastest_lap could crash with ValueError when casting NaN floats to float()/int()
- Fixed visualization tools crashing on missing lap data — generate_tyre_degradation_plot, generate_sector_performance_chart, and generate_race_progression_chart now return an
error dict instead of crashing when s.laps is None - Fixed pandas deprecation warnings — Replaced deprecated is_timedelta64_dtype, is_float_dtype, is_datetime64_any_dtype calls in serialization with dtype.kind checks,
preventing future breakage with pandas 3.0
Cross-Platform Improvements
- Fixed cache directory for pip installs — Cache was using ./cache (relative to CWD), which breaks when running f1-mcp from arbitrary directories. Now defaults to
~/.f1-mcp/cache consistently across all code paths. Override with F1_CACHE_DIR env var - Fixed plot output directory — Plots were written to a relative plots/ folder. Now defaults to ~/.f1-mcp/plots. Override with F1_PLOT_DIR env var
- Added headless matplotlib backend — Set matplotlib.use("Agg") so visualization tools work on headless servers, Docker containers, and CI environments without a display
Performance
- Fixed list_seasons performance — Was making 78+ network calls iterating from 1950 to present. Now returns the supported range (2018+) instantly
CI/CD
- Fixed CI cache paths — Test and publish workflows now cache ~/.f1-mcp/cache to match the updated default directory
- Version bump — 0.1.0 → 0.1.1