Automate OAuth token verification and refresh for mcp-google-disk integrations.

    Free

    Security scanned

    Works with the AI Agents you already use

    google disk

    Example session with this skill installed

    My Google Drive connection is failing with an invalid_grant error. Help me refresh the token.

    • Read your context and instructions
    • Compiled the google disk

    I have detected an expired Google Drive session. I will now initiate the token refresh process.

    Google Drive Auth Recovery

    StepActionStatus
    1Connection CheckFailed (invalid_grant)
    2Client Secret LocationRequired (user input)
    3Token Refresh ScriptReady to execute
    4Config UpdatePending

    To proceed, I need the path to your client_secret.json and your mcp-google-disk-config.json. Once provided, I will run the following:

    
    # Generate new refresh token (Timeout: 60s)
    python get_refresh_token.py /path/to/your/client_secret.json
    
    # Update configuration
    # I will write the output 'refresh_token' to mcp-google-disk-config.json
    

    Next steps

    1. Provide the absolute paths to your Google Cloud client secret and MCP config files.
    2. Open the authorization URL I will generate in your browser to grant access.
    3. Confirm the email address returned by the validation script.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Broken OAuth connections to Google Drive stall automation workflows. This skill manages the verification and renewal of Google Drive API credentials using the mcp-google-disk server.

    What it does

    • Connection verification runs a script to validate the current OAuth session and retrieve the authenticated user email.
    • Error handling detects invalid_grant and RefreshError exceptions to trigger the re-authentication flow.
    • Token renewal generates a new refresh token using local client secrets and browser-based authorization.
    • Configuration updates writes updated credentials directly to the JSON configuration file to restore server access.

    How it works

    1. Validate session by executing a Python one-liner to fetch account details from the Google Drive API.
    2. Handle expiration by locating the local client secret JSON and initiating the get_refresh_token.py helper.
    3. Authorize access through the generated URL and capture the new token from the terminal output.
    4. Persist credentials by updating the mcp-google-disk-config.json file at the specified system path.

    Frameworks & tools

    This skill requires Python 3.x, the google-api-python-client, and the mcp-google-disk server implementation.

    Why this beats prompting it yourself

    Manually debugging OAuth flow errors often leads to incorrect scope handling or misconfigured JSON paths. This skill provides the exact CLI commands and logic to cycle tokens without checking API documentation.

    Use cases

    • Restore broken integrations when an automated agent loses access to a Google Drive directory.
    • Initial server setup by guiding the user through the first-time OAuth handshake.
    • Credential maintenance to verify service health before running batch file operations.

    Known limitations

    The user must provide their own machine-specific paths for the config and client secret JSON files. Token refresh requires manual browser interaction to complete the OAuth flow.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Accounts
    Google Drive
    Software
    PythonGoogle Disk Config MCPGit

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access

    Allowed Hosts

    drive.googleapis.com
    Listed12 days ago

    What's inside

    Creator

    Дмитрий Варчак

    Дмитрий Варчак

    Frequently Asked Questions

    This skill automates the verification and renewal of expired or broken OAuth tokens, specifically for the `mcp-google-disk` server, preventing automation workflows from stalling due to authentication errors.

    You will need Python 3.x installed on your machine, along with the `google-api-python-client` library and the `mcp-google-disk` server implementation.

    The skill is designed to work with any AI agent or platform capable of executing local CLI commands and interacting with the Model Context Protocol (MCP) framework.

    While the skill automates the detection and configuration updates, Google's security policy requires a human to manually approve the access request in a web browser during the initial or renewal handshake.

    You receive the logic and CLI workflows needed to validate sessions, handle 'invalid_grant' errors, and update your `mcp-google-disk-config.json` file to restore server access.

    Yes, you must provide the local file paths for your `client_secret.json` and your MCP configuration file so the skill can correctly target your specific environment.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Free