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

filesystem: search_files silently skips a subdirectory it cannot read

Aperta
#5,189 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Start with searchFilesWithValidation in src/filesystem/lib.ts and trace how its per-entry catch handles validation failures and errors from recursive reads. Compare the failure behavior with directory_tree and list_directory; decide with maintainers whether walking errors should be reported or mark results partial. Done when validation failures remain silently skipped while walking errors are surfaced or the partial result is identified.

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

Descrizione

bug server-filesystem v2
Problem

In searchFilesWithValidation (src/filesystem/lib.ts), one try { … } catch { continue; } wraps the per-entry path validation, the match and the recursive descent. The catch is there to skip entries that resolve outside the allowed directories, but it also discards I/O errors such as EACCES from reading a subdirectory. search_files then returns a short result with no sign that it is incomplete, while directory_tree and list_directory report the same failure as an error.

Expected

Only validation failures are skipped silently. An error while walking is either reported, or the result states that it is partial; which of the two is a maintainer's call.

Prior work
  • #4910 by @feiiiiii5

The PR(s) above targeted the pre-refactor code and are closed as part of the backlog triage in #4875; this issue is where the work continues, with the PR(s) as a prototype. Thank you to their authors.

Lingua principale
TypeScript
Stelle
91.4k
Fork
11.8k
Merge medio
6h 39m
PR unite (30g)
146

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/servers

Tutte le issue di modelcontextprotocol/servers

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.