google disk
Automate OAuth token verification and refresh for mcp-google-disk integrations.
Free
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
| Step | Action | Status |
|---|---|---|
| 1 | Connection Check | Failed (invalid_grant) |
| 2 | Client Secret Location | Required (user input) |
| 3 | Token Refresh Script | Ready to execute |
| 4 | Config Update | Pending |
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
- Provide the absolute paths to your Google Cloud client secret and MCP config files.
- Open the authorization URL I will generate in your browser to grant access.
- 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_grantandRefreshErrorexceptions 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
- Validate session by executing a Python one-liner to fetch account details from the Google Drive API.
- Handle expiration by locating the local client secret JSON and initiating the
get_refresh_token.pyhelper. - Authorize access through the generated URL and capture the new token from the terminal output.
- Persist credentials by updating the
mcp-google-disk-config.jsonfile 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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 MCP
Git
Permissions
Allowed Hosts
What's inside
Creator
Дмитрий Варчак
Frequently Asked Questions
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.