mcp-oauth-triage
Was er macht
Dieser Skill hilft, kaputte Verbindungen zwischen einem KI-Assistenten und einem Online-Dienst mit OAuth-Anmeldung zu finden. Er ist für Entwickler gedacht, deren Connector plötzlich Anmeldefehler liefert oder Daten eines anderen Kontos zeigt.
Wann du ihn nutzt
- ✓Wenn ein Connector, der gestern funktionierte, jetzt mit Anmeldefehlern scheitert und sich nichts geändert hat.
- ✓Wenn ein Connector die richtige Anmeldung bekommt, aber bei der ersten Anfrage nach einer Aktualisierung scheitert.
- ✓Wenn ein Connector Daten eines anderen Kontos anzeigt.
Link zum Skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/mcp-oauth-triage/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Mein KI-Connector zu unserem Abrechnungsdienst liefert seit einer Aktualisierung der Anmeldung 401-Fehler. Hilf mir herauszufinden, warum.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill sammelt drei Angaben zum Fehler und startet ein Klassifizierungsskript, das das Problem einer wahrscheinlichen Ursache zuordnet. So zielt die Korrektur auf das eigentliche Problem.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
MCP OAuth Triage
Tier: POWERFUL · Category: Engineering · Domain: AI / Auth / Connectors
Overview
An OAuth-backed MCP connector rarely fails at the exchange. It fails somewhere between storing what the exchange returned and reading it back on the next call, so the visible symptom is a wall of 401s while every dashboard says the connection is healthy.
The cost of guessing is high because five common faults share one symptom and need opposite fixes. Rotating a client secret does nothing when the real fault is a writer and a reader disagreeing about which key holds the token. Re-authenticating cures a poisoned auth cache for a day and hides the actual defect. This skill exists to stop that guessing: collect three artifacts, run one classifier, fix the class you actually have.
Use it before touching code, and again before declaring the fix done.
When to Use
- A connector that authenticated yesterday returns 401 or 403 today with no configuration change.
- The token endpoint returns 200, but the first tool call after a refresh fails.
- Re-authenticating fixes the symptom, and the failure returns within one token lifetime.
- A multi-account install returns data belonging to the wrong account.
- A "needs auth" state persists after a successful login.
- A refresh loop hammers the token endpoint (429s, rotation churn) while the connector stays down.
Do not use this skill for first-time setup that never worked. That is a scopes, redirect URI, or client
registration problem, and it belongs with mcp-server-builder. This skill assumes a working state
existed and was lost.
Features
One classifier covers five fault classes. Each row names the discriminator that separates it from its neighbours, because the fixes are destructive to each other.
| Detector | Fires on | Confirmed by |
|---|---|---|
| Envelope check | token stored one level below where the reader looks | reader key list vs record key list |
| Expiry check | fractional TTL, zero sentinel, seconds/milliseconds confusion | failure gap equals token lifetime |
| Rotation check | more than one exchange per credential per window | stored refresh token vs last exchange result |
| Binding check | audience, issuer, or account-key mismatch | claims vs the surface's protected-resource metadata |
| Cache check | auth marker that survives a successful login | clearing the marker alone restores service |
The classifier also reports what it could not check, so a clean exit is read as "not proven broken" rather than "proven working".
Usage
# Classify from a record and a log
python3 scripts/oauth_triage.py --token-file ./token.json --log ./connector.jsonl
# Machine-readable verdict for a ticket or CI
python3 scripts/oauth_triage.py --token-file ./token.json --log ./connector.jsonl --json
# Redact a record before it goes into a ticket or a chat
python3 scripts/oauth_triage.py --token-file ./token.json --redact
# Assert the reader's expectations explicitly
python3 scripts/oauth_triage.py --token-file ./token.json --expect-flat --expect-absolute-expiry
| Exit | Meaning |
|---|---|
| 0 | No defect signals found in the supplied artifacts |
| 1 | Suspect findings only, worth a second probe |
| 2 | A defect class is confirmed by the artifacts |
Exit 0 is not a health check. If the symptom is live and the classifier is clean, the artifacts are wrong, and Step 1 of the workflow is where to go back to.
Workflow
Step 1: Collect three artifacts
| Artifact | What it is | Why |
|---|---|---|
| Token record | the stored JSON the connector reads back, exactly as written | reveals envelope, field types, sentinels |
| Connector log | ordered events with timestamps: exchange, store, load, call, error | reveals order, races, which side failed |
| Timing | how long after a successful call the failure appears | separates expiry semantics from binding faults |
Redact secrets. The classifier needs key names, value types, and timestamps, never the token value.
Step 2: Run the classifier
python3 scripts/oauth_triage.py --token-file ./token.json --log ./connector.jsonl --json
Step 3: Match the class to its fix
Each class has one cheap confirmation and one fix. Apply the confirmation before the fix, because the fixes are destructive to each other: rotating credentials while the real fault is a shape mismatch produces a second, harder incident.
Class A: Envelope mismatch
The exchange returns a nested payload
Häufige Fragen
Warum nicht einfach neu anmelden?
Eine neue Anmeldung kann das Problem eine Weile verdecken. Der Fehler kommt oft zurück, wenn das Token abläuft.
Behebt er das Problem für mich?
Er erkennt die Art des Fehlers, damit du das Richtige korrigieren kannst. Die Korrektur selbst liegt bei dir.
Gilt das nur für einen Dienst?
Nein. Es gilt für jeden Connector, der OAuth-Anmeldung und einen MCP-Server nutzt.
Details
Originalbeschreibung des Autors
Use when an MCP connector that used to authenticate now fails (tool calls 401 after a good token exchange, breaks after refresh, returns another account's data), before changing code. Classifies the fault with oauth_triage.py.
Beliebtheit
- GitHub-Sterne
- 29k
- Platz im Ranking
- #9590
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
agent-launcher-orchestrator
29kBegleitet dich Schritt für Schritt von einer klaren Idee zu einem lauffähigen Claude Managed Agent in deinem eigenen Konto, inklusive Tests und Zeitplan.
grade-iterate
29kLässt die Arbeit eines verwalteten KI-Agenten anhand eines Bewertungsrasters prüfen und in festen Runden verbessern, ohne endlose Schleifen.
interview
29kLässt deinen Agenten dich zu einer KI-Agenten-Idee befragen und deine Antworten in einen einfachen Bauplan verwandeln, bevor etwas gestartet wird.
run-without-you
29kRichtet einen verwalteten KI-Agenten für Zeitpläne oder Ereignisse ein und prüft vor dem Start die Cron-Zeiten, damit nichts schiefläuft.
Ähnliche Skills
mcporter
394kHilft deinem Agenten, MCP-Server und ihre Werkzeuge über HTTP oder stdio aufzulisten, aufzurufen und zu prüfen und ihre Anmeldeeinstellungen zu verwalten.
fastmcp
260kHilft dir, einen Python-MCP-Server zu bauen, zu testen und bereitzustellen, der KI-Assistenten Zugriff auf deine API, Datenbank oder Dateien gibt.
mcp-oauth-remote-gateway
260kFührt dich durch die OAuth-Anmeldung für einen entfernten MCP-Server, wenn Hermes auf einem Server läuft und die normale Browseranmeldung ihn nicht erreicht.