reconnect

reconnect is a command for Claude Code from ringo380/ga-mcp-full. It costs 40 tokens per session (883 once invoked), scanned B, original, MIT.

A command that diagnoses connection problems with the ga-mcp-full MCP server and explains which reconnect path fits the failure.

In plain words
What is it for?
Checking the CLI and login state, inspecting project MCP settings, and guiding recovery from connection or authentication errors.
Why use it?
It helps distinguish missing installation, authentication problems, and invalid MCP configuration when tool calls stop working.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the ga-mcp-full plugin — 5 commands, 2 hooks, 1 MCP server shipped together

Good fit Checking the CLI and login state, inspecting project MCP settings, and guiding recovery from connection or authentication errors.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ringo380/ga-mcp-full/reconnect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ringo380/ga-mcp-full

Made for: Claude Code.

Or install ga-mcp-full, the plugin that ships this one along with the rest of its 5 commands, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reconnect

README.md
[![agentmods](https://agentmods.dev/badge/commands/ringo380/ga-mcp-full/reconnect/github.svg)](https://agentmods.dev/commands/ringo380/ga-mcp-full/reconnect)
Your own site
<a href="https://agentmods.dev/commands/ringo380/ga-mcp-full/reconnect"><img src="https://agentmods.dev/badge/commands/ringo380/ga-mcp-full/reconnect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reconnect

Your own site · 80×15
<a href="https://agentmods.dev/commands/ringo380/ga-mcp-full/reconnect"><img src="https://agentmods.dev/badge/commands/ringo380/ga-mcp-full/reconnect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 883 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00883
Opus 5 $0.00020 $0.00441
Sonnet 5 $0.00008 $0.00177
Haiku 4.5 $0.00004 $0.00088

Measured 9d ago against content hash 5c072578d216, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

reconnect scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

cat .mcp.json 2>/dev/null || echo "(no project-scoped .mcp.json in cwd)"
commands/reconnect.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/ga-mcp-full:reconnect

Diagnose the ga-mcp-full MCP server and surface the exact reconnect path for the current failure mode. Use this when GA tool calls stop responding, return auth errors, or the /plugin detail view shows a red error line for ga-mcp-full.

Why this command exists

Claude Code's /plugin and /mcp menus do not expose a plugin-extensible "reconnect" button for stdio MCP servers — that affordance is HTTP-transport-only per the MCP 2025-06-18 spec. So reconnects for this stdio server happen through one of three paths, and the right path depends on which failure you hit. This command runs the diagnostics needed to pick the right one.

Steps

  1. Check CLI installation — if this fails, no other reconnect path will help:

    command -v ga-mcp-full && ga-mcp-full --version
    

    If missing, point the user at /ga-mcp-full:setup.

  2. Check auth state:

    ga-mcp-full auth status
    

    Relay the output verbatim.

  3. Check .mcp.json sanity — stale env substitution entries are the most common load-time failure:

    cat .mcp.json 2>/dev/null || echo "(no project-scoped .mcp.json in cwd)"
    

    Flag any ${GA_MCP_CLIENT_*} entries in the env block — those make Claude Code refuse to start the subprocess even though the bundled client would work without them.

  4. Pick the reconnect path based on findings, and tell the user exactly what to do:

    Symptom Reconnect path
    auth status reports Authenticated: no or Token expired: true Run /ga-mcp-full:auth-login. No process restart needed — auth.py reloads credentials from disk on the next tool call.
    auth status reports stale account / email: <unknown …> Run /ga-mcp-full:auth-login to upgrade the cached token to the v0.4.0 scope set (adds openid/email).
    /plugin detail view shows "Missing environment variables: GA_MCP_CLIENT_ID…" .mcp.json declares required env vars it shouldn't. Fix by removing the env block (bundled client is the default). Then restart Claude Code — plugin config is only re-read on session start.
    MCP subprocess crashed mid-session / claude mcp list shows it as ✗ Failed to connect Open the /mcp dialog; stdio servers are restarted by toggling the server off and on there. If that fails, restart Claude Code.
    Everything looks healthy but tool calls still 401 Run /ga-mcp-full:auth-logout then /ga-mcp-full:auth-login — clears the cached refresh token and forces a fresh consent.

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 56 lines · 40 tokens per session scan B 5c072578d216

Subscribe to this mod's changes

reconnect is a command published in the GitHub repository ringo380/ga-mcp-full (0 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 883 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.