Refresh Volleymetrics OAuth Session
refresh_volleymetrics_sessionRefresh an expired Volleymetrics Bearer token headlessly with .env credentials to keep automated scouting workflows authenticated without opening a browser.
Instructions
Perform a headless OAuth 2.0 token refresh for the Volleymetrics session using .env credentials (VOLLEYMETRICS_EMAIL and VOLLEYMETRICS_PASSWORD), unlike login_to_volleymetrics (which opens an interactive desktop browser window for manual/SSO/2FA login).
When to Use
Refresh an expired Volleymetrics Bearer token in headless or automated environments where
VOLLEYMETRICS_EMAILandVOLLEYMETRICS_PASSWORDare configured in.env.Test whether stored
.envcredentials can mint a fresh token without user interaction.
When NOT to Use
Do NOT use when the user authenticates via password manager, Hudl SSO, or 2FA without storing plaintext credentials in
.env; calllogin_to_volleymetricsinstead.Do NOT call in a loop if this tool returns
Interactive Login Recommended, as that indicates.envcredentials are not configured.
Behavioral Guarantees & Security
Side Effects: Executes an OAuth password-grant token request (or headless Playwright fallback), persists the new JWT to OS Keychain and
.env(chmod 0600), and optionally clears the local response cache whenclear_cache=True.Fallback Guidance: If
.envcredentials are absent, performs zero network calls and immediately directs the agent to calllogin_to_volleymetrics.
Parameter & Workflow Semantics
Leave
clear_cache=Truewhen recovering from an authentication error or switching accounts; setclear_cache=Falseto retain cached 7-day historical match data across token renewals.
Returns & Error States
On success: Confirmation message with masked JWT (
eyJhbGci...).When
.envcredentials are missing or rejected: Actionable instructions to invokelogin_to_volleymetrics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear_cache | No | When True (default), clears the local disk query cache (~/.volleymetrics_mcp/cache) after minting a new OAuth Bearer token so subsequent queries fetch fresh data. | |
| timeout_seconds | No | Maximum timeout in seconds (5 to 120) for the headless OAuth token refresh request against https://auth.volleymetrics.hudl.com. |