Scope challenge raised from inside a running tool handler

Abierto
#2,957 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
13.8k
Forks
2.5k
Merge medio
6 d 23 h
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de modelcontextprotocol/typescript-sdk

Todos los issues de modelcontextprotocol/typescript-sdk

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.