Reads are cheap: a single JSON.parse per call. Writes are atomic via
write-then-rename so a crash mid-save cannot produce a half-written file.
Does NOT touch fields outside the OAuth envelope (auth_token, custom
fields) when saving — the MCP provider only mutates oauth_tokens,
oauth_client, and oauth_code_verifier, and we preserve everything else.
Create a file-backed
OAuthConfigStorage.Reads are cheap: a single JSON.parse per call. Writes are atomic via
write-then-renameso a crash mid-save cannot produce a half-written file.Does NOT touch fields outside the OAuth envelope (
auth_token, custom fields) when saving — the MCP provider only mutatesoauth_tokens,oauth_client, andoauth_code_verifier, and we preserve everything else.