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

Web launcher prints the whole spawn error object when the browser opener cannot start

Chiusa Adatta ai principianti
#2,645 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
cli

Direzione di ricerca

Esegui la riproduzione fornita e ispeziona il punto di ingresso del launcher in clients/launcher/build/index.js per ricostruire come viene segnalato un errore di avvio di un browser-opener. Confronta l’output del launcher web con il messaggio TUI citato nell’issue; il lavoro è completato quando il launcher web stampa l’unica riga prevista, senza stack trace né spawnargs.

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

Descrizione

bug v2

Problem

Found during the v2.10.0 release smoke (#2623) and recorded in its ledger. When --web cannot spawn the browser opener (no open/xdg-open on PATH), it stays up as intended since #2533, but prints the entire Node error object to its terminal: a stack trace plus spawnargs, which include the launch URL with the API token. That URL is already printed in the banner just above, so nothing new leaks, but the output is noisy and puts the token in a second place for anyone copying the error.

Reproduce

env -i PATH=/var/empty MCP_AUTO_OPEN_ENABLED=true "$(command -v node)" clients/launcher/build/index.js --web
# → Could not open a browser automatically: Error: spawn open ENOENT … (stack, spawnargs with ?MCP_INSPECTOR_API_TOKEN=…)

Expected

One line, as the TUI already prints: Could not open a browser automatically (spawn open ENOENT). Open the URL above manually. No stack, no spawnargs.

Priority

Low (rubric total 5): Severity 2, Urgency 1, +1 bug, +1 milestoned.

Lingua principale
TypeScript
Stelle
11.1k
Fork
1.5k
Merge medio
4h 28m
PR unite (30g)
151

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

Tutte le issue di modelcontextprotocol/inspector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.