Expired MCP authorization can leave unattended agent jobs without tools
A Copilot CLI issue reports that a scheduled session can start without an OAuth-protected MCP server's tools after an access token expires. A separate Craft Agents report described repeated reauthentication, though that project's issue was later closed after a fix.
What someone actually noticed
A Copilot CLI reporter describes a remote OAuth-protected MCP server whose tools were absent at the start of an unattended session after its access token expired. The report includes redacted logs and says a refresh token was cached, but the client attempted an interactive login instead. Other commenters described similar symptoms with different servers. A maintainer said refresh fixes landed, yet a later retest on version 1.0.114 still produced a 401 after a successful refresh and the maintainer moved that remaining issue to the backlog.
Separately, a Craft Agents user reported OAuth sources turning inactive during longer sessions and requiring browser reauthentication. Another user said their automations lost access to sources. That issue was closed after an update and a commenter reported that it seemed to work; it is historical evidence of the failure mode, not a claim that Craft Agents still has the bug.
Read the original signal: GitHub Copilot CLI issue, reporter logs and maintainer follow-upWays to solve it
Without new software, open the agent client before each important scheduled run, inspect its connected-tool list, and reauthenticate any missing source through the supported interactive flow. Keep a manual fallback for time-sensitive jobs.
If repeated checks consume too much operator time, test a small preflight that verifies the exact tools needed by a job and stops before dependent actions when authorization is unavailable. Leave refresh and credential storage to the client rather than handling tokens in the checker.
A small app you could build
Agent Connector Preflight
Before a scheduled agent job runs, compare its required tool list with the tools actually available in a fresh session and pause with a precise handoff if an authorized connector is missing.
Who might use it: Operators of scheduled agent workflows that depend on OAuth-protected MCP servers
- Let the operator declare required connector names and harmless read-only tool checks for each job
- Start a fresh client session through supported interfaces and record which required tools are actually visible
- Run an optional non-mutating probe only when the operator grants permission
- Block the dependent job when a required tool is absent, and notify a human which connector needs reauthentication
- Record check time and outcome without logging tokens, prompts or private tool responses
What to verify before building
- Retest the current Copilot CLI release and the affected server after access-token expiry; determine whether the remaining post-refresh 401 still occurs.
- Check whether each target agent client exposes a supported way to enumerate tools in a fresh non-interactive session without reading or storing secrets.
- Compare a missing-tool check against a harmless live read probe to measure false reassurance and accidental side effects.
- Ask operators of scheduled jobs whether existing client alerts or a brief manual check already cover this failure.
Reality check
The Copilot CLI report includes a partial fix and an unresolved follow-up, while the separate Craft Agents issue was closed after a reported fix. Neither proves that every MCP client has this problem or that a separate app is worth buying. A preflight cannot repair a broken refresh flow, and a visible tool may still fail later in a long run. Client-native health checks or a completed upstream fix may make this unnecessary. A probe must not trigger a write or expose credentials.
An observation is not market validation. Check other reports and talk to the people who experience this before committing more than a tiny experiment.