From b7256fef3c4641e8999ef1763f5e94493ff11b16 Mon Sep 17 00:00:00 2001 From: JeremyCraigMartinez Date: Tue, 10 Jun 2025 13:23:01 -0700 Subject: [PATCH 1/2] Update oauth.mdx --- docs/clients/auth/oauth.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/clients/auth/oauth.mdx b/docs/clients/auth/oauth.mdx index cf67d53ad..7f09e6112 100644 --- a/docs/clients/auth/oauth.mdx +++ b/docs/clients/auth/oauth.mdx @@ -111,7 +111,7 @@ await storage.clear() To clear *all* tokens for all servers, call the `clear_all` method on the `FileTokenStorage` class: ```python -from fastmcp.client.auth import FileTokenStorage +from fastmcp.client.auth.oauth import FileTokenStorage FileTokenStorage.clear_all() -``` \ No newline at end of file +``` From 9913f304f727068ea821edd4c9c721a88d8bab6e Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 10 Jun 2025 16:43:02 -0400 Subject: [PATCH 2/2] update import --- docs/clients/auth/oauth.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/clients/auth/oauth.mdx b/docs/clients/auth/oauth.mdx index 7f09e6112..e9d2e5a29 100644 --- a/docs/clients/auth/oauth.mdx +++ b/docs/clients/auth/oauth.mdx @@ -102,7 +102,7 @@ OAuth access tokens are automatically cached in `~/.fastmcp/oauth-mcp-client-cac To clear the tokens for a specific server, instantiate a `FileTokenStorage` instance and call the `clear` method: ```python -from fastmcp.client.auth import FileTokenStorage +from fastmcp.client.auth.oauth import FileTokenStorage storage = FileTokenStorage(server_url="https://fastmcp.cloud/mcp") await storage.clear()