gogcli-mcp-maps

v4.12.0
io.github.chrischall/gogcli-mcp-maps Checked 4 hours ago Published 22 days ago

Google Places + trip maps via gogcli for Claude — places through gog maps, pins, shortlists, My Maps

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gog_auth_list

List the Google accounts stored in gogcli, with their scopes. This reads local configuration only — it does not contact Google and does NOT tell you whether an account still works: a signed-out account whose refresh token expired or was revoked is listed here exactly like a healthy one, scopes and all. Use gog_auth_health to check whether an account can actually authenticate.

gog_auth_status

Show gogcli auth CONFIGURATION: keyring backend, credential files, and auth setup. Despite the name this is not a health check — it reads local setup and does not contact Google, so it says nothing about whether an account can still authenticate. Use gog_auth_health for that.

gog_auth_health

Check the LIVE health of each stored Google account. Unlike gog_auth_status (which only reports keyring/config setup), this performs a real token refresh against Google, so it detects expired or revoked (invalid_grant) refresh tokens — the account-wide sign-out that blocks every service. Reports per account: whether the token is currently valid, the mapped cause when it is not, how long ago it was authorized, and a warning as it approaches the 7-day refresh-token limit that applies to OAuth apps whose consent screen is still in "Testing" mode. Run it proactively to re-authorize on your own s…

gog_auth_services

List all Google services supported by gogcli and the OAuth scopes each requires.

gog_auth_add

Authorize a Google account via browser-based OAuth. Opens a browser window where the user must sign in and grant access. Blocks for up to 5 minutes waiting for the user to complete authorization. If the browser does not open automatically, a fallback URL is included in the response. Use gog_auth_list to check which accounts are already configured.

ParameterTypeDescription
email *stringGoogle account email to authorize
extraScopesstringAdditional raw OAuth scope URIs to request, comma-separated, on top of the ones `services` implies. Use for scopes no service covers — e.g. https://www.googleapis.com/auth/bigquery.readonly, require…
servicesstringServices to authorize: "all" or comma-separated list (e.g. "sheets,gmail,calendar"). Default: "drive". Prefer the narrowest set you need — requesting a service whose Google API is not enabled on the…

gog_auth_add_url

Begin REMOTE/headless Google authorization (step 1 of 2). Returns a sign-in URL to open in any browser — no local server or terminal on the gogcli host is needed, so this works on a hosted deployment where the interactive gog_auth_add cannot. Hand the URL to the user; after they sign in, the browser is redirected to a localhost URL that fails to load — that is expected. They copy that full redirected URL (from the address bar) and you pass it to gog_auth_add_complete. The link is valid for 10 minutes. If you pass a custom `services` here, pass the SAME value to gog_auth_add_complete or the…

ParameterTypeDescription
email *stringGoogle account email to authorize
extraScopesstringAdditional raw OAuth scope URIs to request, comma-separated, on top of the ones `services` implies. Use for scopes no service covers — e.g. https://www.googleapis.com/auth/bigquery.readonly, require…
servicesstringServices to authorize: "all" or comma-separated list (e.g. "sheets,gmail,calendar"). Default: "drive". Prefer the narrowest set you need — requesting a service whose Google API is not enabled on the…

gog_auth_add_complete

Complete REMOTE/headless Google authorization (step 2 of 2). Takes the full redirected localhost URL the user copied after finishing gog_auth_add_url, exchanges it for a refresh token, and stores it. Use the SAME `services` value you passed to gog_auth_add_url. Must run within 10 minutes of step 1 and against the same gogcli host.

ParameterTypeDescription
email *stringGoogle account email being authorized (same as step 1)
redirectUrl *stringThe full localhost redirect URL the user copied from the browser address bar after signing in (contains code and state; the page itself fails to load, which is expected).
extraScopesstringExtra OAuth scope URIs — MUST match the value passed to gog_auth_add_url, for the same reason `services` must: the two steps have to describe the same grant.
servicesstringServices authorized — MUST match the value passed to gog_auth_add_url. Default: "drive".

gog_auth_run

Run any gog auth subcommand not covered by the other tools. Run `gog auth --help` for the full list of subcommands, or `gog auth <subcommand> --help` for flags on a specific subcommand. Only these subcommands are available: list, status, services, alias. Flags that override server safety controls (--readonly, --enable-commands, --disable-commands, --account, --access-token, --home, --client, --gmail-no-send, --no-input) and a bare "--" are refused. Local file paths (--out, --out-dir, --attach, --file, --*-file, @file JSON) must be inside GOG_FILE_ROOTS; subcommands that take a local path posit…

ParameterTypeDescription
args *arrayAdditional positional args and flags
subcommand *stringThe gog auth subcommand to run, e.g. "alias", "list", "status"

gog_places_resolve

Resolve a list of named stops (1-50) to Google places: place id, address, Maps link and lat/lng, each from the top match for "name, address, near" (or `gog maps places details` for a known place_id), with the point from `gog maps geocode`. Flags a top match whose name does not match as ambiguous. Up to 4 lookups run at once; a cancelled call starts no more. Cached per Google policy (ids kept, coordinates 30 days, everything else 24 h), so re-resolving the same list is free; refresh: true bypasses the cache. Each result has a status: ok (place found, pin exact or given), approximate (the pin is…

ParameterTypeDescription
items *arrayStops to resolve (1-50)
refreshbooleanIgnore cached entries and look up again (each lookup is a billed Google request through gog)

gog_places_details

Look up one Google place id: name, address, Google Maps link and lat/lng. Runs `gog maps places details` and `gog maps geocode`; free when cached (content 24 h, coordinates 30 days); refresh: true bypasses the cache. Each result has a status: ok (place found, pin exact or given), approximate (the pin is the geocoded address, not the place itself, or there is no pin), not_found, or error.

ParameterTypeDescription
placeId *stringGoogle place id (from search/resolve), with or without "places/"
refreshbooleanIgnore cached entries and look up again (each lookup is a billed Google request through gog)

gog_trip_map

Turn a trip itinerary into PINS ON A MAP (not a route): resolves each stop to a Google place through gog (`gog maps places search`/`details` + `gog maps geocode`, cached), warns first about approximate pins, ambiguous matches and unresolved stops, and returns each stop's status and Google Maps pin link grouped by day, with Google Maps shortlist links per day (and for the whole trip when it has at most 20 places) that let the user save the places to their Google Maps Lists. Writes a KML (one folder per day, one colour per category) and a CSV, uploads both to Drive "Trips/<title>" (reused on re-…

ParameterTypeDescription
stops *arrayThe stops (1-100), in any order
title *stringTrip title: the map, folder and file name
accountstringGoogle account email to use, e.g. you@gmail.com — must be the full address, not a bare username. Overrides the GOG_ACCOUNT env var. Omit to use the single configured account.
confirmTokenstringONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has see…
confirm_sharebooleanMust be true for share_with to be acted on
drive_parentstringDrive folder id to hold "Trips" (default: My Drive root)
share_witharrayEmails to share the Drive folder with as reader
start_datestringYYYY-MM-DD of day 1, so numbered days get dates
uploadbooleanUpload to Drive (default true); false keeps the files local/inline
viewstringResponse shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact (the default) gives the days, pins and files. full…