Scope challenge raised from inside a running tool handler

Ouverte
#2,957 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
30/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript
Domaine
api, authentication

Piste de recherche

Read the original thread #1151 and the existing scopeChallenge handling described here, then trace how tool-handler responses are produced and when the response starts. Determine whether a handler can raise a scope challenge mid-execution; done means the feasibility is resolved and, if supported, the behavior and its tests cover the challenge rather than a failed tool call.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

auth enhancement needs decision

Follow-up to #1151. The first half shipped in 2.1.0 (#1624): scopeChallenge on a tool registration answers with a 403 scope challenge before the handler runs.

Still open is the second half: a handler that only learns mid-execution that more scopes are needed (for example because the backend says so) and wants to turn that into a scope challenge instead of a failed tool call, something like throw new ScopeChallengeError(['repo:read']).

Open question from the original thread: whether this is possible at all once the response has started.

Langage dominant
TypeScript
Étoiles
13.8k
Forks
2.5k
Merge moyen
6 j 23 h
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de modelcontextprotocol/typescript-sdk

Toutes les issues de modelcontextprotocol/typescript-sdk

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.