본문으로 건너뛰기
Skillpedia
커넥터 (MCP)29k · #9590

mcp-oauth-triage

하는 일

이 스킬은 AI 어시스턴트와 OAuth 로그인을 쓰는 온라인 서비스 사이의 끊긴 연결을 진단하도록 돕습니다. 커넥터가 갑자기 로그인 오류를 내거나 다른 계정의 데이터를 보여 주는 개발자에게 맞습니다.

사용하는 경우

  • ✓어제까지 잘 작동하던 커넥터가 아무것도 바뀌지 않았는데 로그인 오류로 실패할 때.
  • ✓커넥터가 로그인은 올바르게 했지만 토큰을 갱신한 뒤 첫 요청에서 실패할 때.
  • ✓커넥터가 다른 계정의 데이터를 보여 줄 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/mcp-oauth-triage/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“청구 서비스용 AI 커넥터가 토큰을 갱신한 뒤 401 오류를 내기 시작했습니다. 원인을 찾도록 도와주세요.”

매주 새 스킬 5개. 읽는 데 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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬