Surface OAuth fetch-guard refusals as warnings when discovery falls back

Đang mở
#2,846 2 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
authentication, cli, frontend

Hướng nghiên cứu

Start by tracing the OAuth discovery flow and the FetchTargetError raised by the destination guard, then find how warnings are presented in the CLI/mcpdo stderr, TUI Auth tab, and web Network/OAuth view. The issue does not name files or tests, so locate those entry points and check existing UI and CLI tests. Done when each surface shows the refusal even if discovery continues through a fallback URL.

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

Mô tả

enhancement v2
Which client?

All / shared core

The problem

When the OAuth destination guard (#2749) refuses a metadata URL the server advertised, the SDK's discovery may fall back to another URL, and the user only sees a later, unrelated-looking failure (for example a Dynamic Client Registration 401 at the server's own origin). The refusal that changed the path is not shown anywhere, which makes misconfigured or hostile metadata hard to diagnose.

Solution you have in mind (optional)

Record each FetchTargetError raised during an OAuth flow and surface it: a warning line on CLI/mcpdo stderr, the TUI Auth tab and the web Network/OAuth view (e.g. "Refused to fetch : link-local or metadata address"), even when the flow continued down another path.

Alternatives or workarounds you have tried

None today; the refusal is only visible by adding logging to the guard.

Already built it locally?

No response

Before you submit
  • I searched existing issues and this is not a duplicate.
  • This is a request for the Inspector itself, not for the MCP specification or an SDK.
Ngôn ngữ chính
TypeScript
Star
11.2k
Fork
1.6k
Merge trung bình
4 giờ 49 phút
Pull request đã merge (30 ngày)
139

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.