Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng Phù hợp với người mới
#2,645 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Chạy bản tái hiện được cung cấp và kiểm tra điểm vào của launcher tại clients/launcher/build/index.js để tìm hiểu cách lỗi khởi chạy browser-opener được báo cáo. So sánh đầu ra của web launcher với thông báo TUI được trích dẫn trong issue; hoàn thành khi web launcher in ra đúng một dòng như mong đợi, không có stack trace hay spawnargs.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
11.1k
Fork
1.5k
Merge trung bình
4 giờ 28 phút
Pull request đã merge (30 ngày)
151

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/inspector

Tất cả issue của modelcontextprotocol/inspector

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.