tpierrain/kenjaku/mcp-token-expired

Claude Code and agent skill by tpierrain/kenjaku

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

What to do when a native claude.ai MCP connector (Slack, Calendar, Notion, Google Drive, Gmail — mcp__claude_ai_* or an equivalent connector) returns an authentication error (invalid_auth_token, not_authed, token_expired, auth_failed…): visual alert, guided reconnection, fallback without blocking. Load it AS SOON AS such an error appears.

Install

npx vskill@latest install tpierrain/kenjaku/mcp-token-expired

SKILL.md

Expired MCP token — visual alert + reconnection

As soon as a tool of a native claude.ai connector (Slack, Gmail, Calendar, Notion, Google Drive) returns an authentication error (invalid_auth_token, not_authed, token_expired, auth_failed…), run the procedure below.

⚠️ Exception: a connector that is unavailable by design

Some connectors may be unavailable by design — not because of an expired token, but because an org policy or a provider restriction blocks them for this account. This is not a token to refresh: do NOT show the alert below and do NOT run the reconnection. Treat the connector as an unavailable source by default: use the fallback, briefly note "<connector> unavailable (org/provider restriction)", and continue without blocking.

Procedure (real authentication error)

  1. Immediately show this alert block (as-is, emojis included):

``` 🚨🚨🚨 MCP TOKEN EXPIRED 🚨🚨🚨 ⚠️ Connector: <name> (mcp__claude_ai_<...>) ⚠️ Error: <error code> 🔌 Impact: <what becomes unavailable> → fallback used.

👉 TO RECONNECT: type /mcp → select <connector> → Re-authenticate (browser OAuth flow, ~20 s, and everything works again)

🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 ```

  1. Push `/mcp` in the terminal as the first attempt. If the token is simply expired and

/mcp offers a re-authentication, this is the fastest path.

  1. If `/mcp` shows `connected` but the call still fails with `invalid_auth_token`

→ the downstream token is stale despite the "connected" status; a /mcp will not regenerate it (it believes it is already connected). Real fix: `Disconnect` then `Reconnect` the connector on claude.ai (open "https://claude.ai/settings/connectors"). On reconnect, explicitly authorize the right account / workspace (the SSO or identity this connector expects) — otherwise the connector stays "connected" but on an invalid token.

  1. Continue with the fallback without blocking (e.g. an alternative MCP connector, or a

channel/timestamp search for Slack — see the Sourcing rule in CLAUDE.md). Do not stop and wait for the reconnection.

Pitfalls ruled out in practice

  • A connected state in /mcp or on the connectors page does not imply a valid downstream token.
  • Rule out an account mismatch (CLI and browser on the same identity) before concluding the

token is expired.

  • Claude cannot trigger the OAuth handshake itself (interactive command, URL not exposed,

security restriction by design) — pushing the user toward /mcp then Disconnect/Reconnect is the most it can do.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tpierrain/kenjaku/mcp-token-expired/badge)](https://verified-skill.com/skills/tpierrain/kenjaku/mcp-token-expired)

Something wrong with this skill or its page? Tell us.