#!/usr/bin/env node /** * Browser-based Google OAuth onboarding for the Samarth GTM MCP server. * * Usage: * npm run auth:google * * What it does: * 1. Starts a tiny localhost HTTP callback server on GOOGLE_OAUTH_CALLBACK_PORT * (default 3001). * 2. Generates a Google OAuth authorization URL with the least-privilege GTM * scopes the server actually uses. * 3. Opens the URL in your default browser (or prints it if no browser is * available). * 4. Captures the `code` from the redirect, exchanges it for tokens, and * writes them to a local gitignored token file (default * `./.gtm-mcp-tokens.json`, override with GTM_MCP_TOKEN_FILE). * * Requires that GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET (or the * legacy GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET) are set in the environment * or in a .env file in the working directory. */ import 'dotenv/config'; //# sourceMappingURL=auth-google.d.ts.map