मुख्य सामग्री पर जाएँ
Skillpedia
कनेक्टर (MCP)29k · #9590

mcp-oauth-triage

यह क्या करती है

यह स्किल AI असिस्टेंट और OAuth लॉगिन वाली ऑनलाइन सेवा के बीच टूटे कनेक्शन का निदान करने में मदद करती है। यह उन डेवलपर्स के लिए है जिनका कनेक्टर अचानक लॉगिन त्रुटियाँ देता है या किसी दूसरे खाते का डेटा दिखाता है।

कब इस्तेमाल करें

  • ✓जब कल तक काम करने वाला कनेक्टर अब लॉगिन त्रुटियों के साथ फ़ेल हो और कुछ बदला न हो।
  • ✓जब कनेक्टर सही लॉगिन दे, लेकिन रीफ़्रेश के बाद पहले अनुरोध पर फ़ेल हो।
  • ✓जब कनेक्टर किसी दूसरे खाते का डेटा दिखाए।

Skill का लिंक

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/mcp-oauth-triage/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/mcp-oauth-triage/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारी बिलिंग सेवा के लिए मेरा AI कनेक्टर लॉगिन रीफ़्रेश होने के बाद 401 त्रुटियाँ देने लगा है। कारण पता करने में मदद कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह विफलता के बारे में तीन जानकारियाँ इकट्ठा करती है और एक वर्गीकरण स्क्रिप्ट चलाती है जो समस्या को संभावित कारण में बाँटती है, ताकि सुधार असली समस्या पर लगे।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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

अक्सर पूछे जाने वाले सवाल

सिर्फ़ दोबारा लॉग इन क्यों न करें?

दोबारा लॉग इन करने से समस्या कुछ समय के लिए छिप सकती है, और टोकन खत्म होने पर विफलता अक्सर लौट आती है।

क्या यह मेरे लिए समस्या ठीक कर देती है?

यह विफलता का प्रकार पहचानती है ताकि आप सही चीज़ ठीक कर सकें; सुधार खुद आपको करना है।

क्या यह केवल एक सेवा के लिए है?

नहीं, यह OAuth लॉगिन और MCP सर्वर इस्तेमाल करने वाले किसी भी कनेक्टर पर लागू होती है।

जानकारी

लेखक का मूल विवरण

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.

repo: alirezarezvani/claude-skills

लोकप्रियता

GitHub स्टार
29k
रैंकिंग में स्थान
#9590
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

agent-launcher-orchestrator

29k

आपके एजेंट को एक साफ़ लक्ष्य से शुरू करके, अपने खाते में Claude मैनेज्ड एजेंट की योजना बनाने, बनाने, जांचने और शेड्यूल करने में चरण-दर-चरण मदद करती है।

AI और एजेंटएजेंट

grade-iterate

29k

आपके एजेंट को किसी मैनेज्ड AI एजेंट के काम को रूब्रिक से आंकने और तय संख्या के दौरों में सुधारने देती है, ताकि वह कभी अनंत चक्र में न फंसे।

AI और एजेंटएजेंट

interview

29k

आपके एजेंट को AI एजेंट के विचार पर आपसे इंटरव्यू लेने और कुछ भी लॉन्च होने से पहले आपके जवाबों को सरल निर्माण योजना में बदलने देती है।

AI और एजेंटएजेंट

run-without-you

29k

आपके एजेंट को मैनेज्ड AI एजेंट शेड्यूल पर या किसी घटना पर चलाने में मदद करती है, लॉन्च से पहले cron समय की जांच के साथ।

प्रोडक्टिविटीऑटोमेशन

मिलती-जुलती skills