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

Bug: DocuEngine dynamic tools are process-global and can leak the first token's toolset across users

Aperta
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Start by locating init_dynamic_tools() and tracing how its process-global guard registers tools for authenticated requests. Compare requests using tokens with different service access to determine where the tool list is initialized and reused. Done means a shared server exposes a tenant-safe, token-scoped toolset, or documents and enforces a deterministic shared-process limitation.

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

Descrizione

Summary

When the first authenticated request initializes DocuEngine dynamic tools, the resulting tool list appears to become global for the whole process. In a shared deployment this means the first token to hit the server can effectively decide which dynamic tools are registered for everyone else.

Reproduction

  1. Start one shared server instance.
  2. Send a first authenticated request with token A that has a limited set of services.
  3. Later connect with token B that should expose a different or broader DocuEngine surface.
  4. Observe that the server keeps the already-registered dynamic toolset.

Expected

Dynamic tools should either be tenant-safe, token-scoped, or the server should make the shared-process limitation explicit and deterministic.

Actual

init_dynamic_tools() is guarded by a process-global flag, so the first successful registration wins.

Notes

This becomes visible in cloud or team environments where one MCP instance is reused by multiple users.

Lingua principale
Python
Stelle
22
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 openapi/mcp-server

Tutte le issue di openapi/mcp-server

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.