Skip to content

weather_daily fails with genuine 401 invalidAuthorization from weatherkit.apple.com (intermittent, recurring) #191

Description

@Techlifter

Environment

  • macOS: 26.5.1 (build 25F80)
  • iMCP version: 1.4.1 (latest release)
  • MCP client: Claude Code

Problem

weather_daily (and other WeatherKit-backed tools) intermittently fail with a genuine invalidAuthorization 401 returned directly from weatherkit.apple.com — not a local TCC/XPC issue (Location Services and other iMCP services work fine throughout).

Error

Error: invalidAuthorization(<NSHTTPURLResponse> { URL: https://weatherkit.apple.com/api/v2/weather/en-US/33.775/-84.296?timezone=America/New_York&dataSets=forecastDaily&country=US&deviceLanguages=en-US&clientMetadata=... }
{ Status Code: 401, Headers {
    Connection = (close);
    Server = (Apple);
    "Strict-Transport-Security" = ("max-age=31536000; includeSubdomains");
    "X-Content-Type-Options" = (nosniff);
    "X-Frame-Options" = (SAMEORIGIN);
    "X-XSS-Protection" = ("1; mode=block");
} })

Timeline

Observed via a scheduled automation that calls weather_daily every morning and logs failures:

  • Down: Aug 6–13, 2026 (6 consecutive daily runs)
  • Recovered: Aug 14, 2026 (worked with no local changes)
  • Down again: Aug 23–25, 2026 (3 consecutive daily runs, still failing as of Aug 25 ~7:20 PM ET when I reproduced it directly, outside the scheduled task)

What I ruled out locally

  • location_current / Location Services work fine — not a TCC permission issue.
  • iCloud is signed in normally.
  • iMCP is on the latest release (1.4.1); no update available.
  • Quit/relaunched the iMCP app and helper processes — did not change the outcome (though I wasn't able to re-verify post-restart in the same session due to an unrelated MCP reconnect limitation on my end).

This looks like a WeatherKit entitlement/quota issue on the app's provisioning rather than anything client-side, given the multi-day-outage-then-spontaneous-recovery pattern with no local state changes between the working and failing periods. Filing in case others are seeing the same intermittent pattern, or in case this points at something on the developer-account side (e.g. WeatherKit call quota, provisioning profile renewal).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions