Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Feature Request: user-delegated authentication for MCP servers and external resources

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

Inizia esaminando le issue correlate #1002, #2492 e #182 per comprendere il contesto esistente relativo ad autenticazione, sessioni e accesso delegato. Il lavoro è completo quando sono documentate sia le modalità di delega dell’utente sia quelle di workload identity, vengono applicati scopes con il principio del privilegio minimo e l’identità e lo scope di ogni chiamata esterna sono osservabili senza esporre credenziali nei prompt o nello stato della sessione serializzato.

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

Descrizione

Problem

When a session is started on behalf of a user by a host application or an automated entry point, it runs under an application identity rather than the requesting user's identity. Any MCP server or external system that enforces per-user authorization therefore either denies the request or, worse, operates with broader permissions than the requesting user actually holds.

The available alternative is to configure long-lived static credentials centrally. That is unattractive for security review, does not reflect the requesting user's permissions, and is often not configurable by the teams that need it, because it requires organization-level administrative rights.

What is missing

  • No supported model for delegated, least-privilege access on behalf of a requesting user.
  • No distinction between user-delegated mode and workload-identity mode for unattended operation.
  • No visibility into which identity and permission scope a given tool call used.
  • Static credential configuration is only available to organization administrators, which blocks teams that cannot obtain those rights.

Proposed behavior

  • A session can be created with a user-delegated credential, so MCP servers and external resources see the requesting user's effective permissions.
  • A workload identity mode remains available for unattended operation where user delegation is inappropriate.
  • Administrators can centrally approve MCP servers and policies, while individual sessions still obtain per-user authorization within those bounds.
  • The session exposes, per tool call, which identity and scope were used, so access is auditable.
  • Credentials never appear in prompts, model context, or serialized session state.

Example scenario

A session needs to read a work-tracking system and an internal data source, both of which authorize per user. The requesting user consents once; the session then acts within exactly that user's permissions and no further.

Acceptance criteria

  • A documented authentication model covers both user-delegated and workload-identity modes.
  • Least-privilege scopes are supported and enforced.
  • Identity and scope for each external call are observable by the caller.

Related

  • #1002 — OAuth support for HTTP-based MCP servers.
  • #2492 — refreshing MCP authentication headers during a session.
  • #182 — user-delegated billing for third-party applications.
Lingua principale
TypeScript
Stelle
10.5k
Fork
1.5k
Merge medio
1g 7h
PR unite (30g)
98

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 github/copilot-sdk

Tutte le issue di github/copilot-sdk

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.