CLI / mcpdo: --oauth-debug to show each OAuth step

Aperta
#2,844 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by locating the CLI and mcpdo OAuth flows and compare them with the web client's step-by-step OAuth view. Trace where metadata, registration, authorization, and token exchange happen, then identify how each step can be reported to stderr with secrets, codes, and tokens redacted. Done means both CLI entry points expose the debug option and tests verify the reported steps and redaction.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement v2
Which client?

CLI

The problem

When OAuth fails in the CLI or mcpdo, the user sees only the final error. The web client has a step-by-step OAuth view (discovery, registration, authorization, token exchange); terminal users have nothing comparable, so diagnosing a misconfigured authorization server means re-running in the web client or adding a proxy.

Solution you have in mind (optional)

--oauth-debug (and an mcpdo equivalent) printing each step to stderr: protected-resource and authorization-server metadata URLs and statuses, the registration request/response, the authorization URL, and the token request/response status — with secrets, codes and tokens redacted.

Alternatives or workarounds you have tried

Reproducing the flow in the web client's OAuth view, or running through an intercepting proxy.

Already built it locally?

No response

Before you submit
  • I searched existing issues and this is not a duplicate.
  • This is a request for the Inspector itself, not for the MCP specification or an SDK.
Lingua principale
TypeScript
Stelle
11.2k
Fork
1.6k
Merge medio
5h 11m
PR unite (30g)
141

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/inspector

Tutte le issue di modelcontextprotocol/inspector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.