@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function createFileOAuthStorage

    • Create a file-backed OAuthConfigStorage.

      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.

      Parameters

      Returns OAuthConfigStorage

      const storage = createFileOAuthStorage({ configPath: '/home/user/.adcp/config.json' });
      const provider = createNonInteractiveOAuthProvider(agent, { storage });