Allow a custom OAuth callback path in the web UI

Đang mở
#3,024 1 bình luận 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
66/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, web-dev

Hướng nghiên cứu

Start by tracing the web UI’s OAuth authorization request and redirect handling; the issue does not name files or tests. Check how the CLI callback URL is configured for context, then locate the web UI setting and the code that builds and handles its callback URI. Done when an optional same-origin callback path is used in both places and defaults to /oauth/callback.

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?

Web

The problem

I'm testing an OAuth-protected MCP server with an existing client whose Client ID Metadata Document lists /callback as its loopback redirect path. Inspector 2.13.0’s web UI sends /oauth/callback, so the redirect URI fails validation every time I try to sign in with that client.

Solution you have in mind (optional)

Add an optional same-origin callback path setting to the web UI. Use that path both when sending the authorization request and when handling the redirect. Default to /oauth/callback.

Alternatives or workarounds you have tried

Setting MCP_OAUTH_CALLBACK_URL had no effect in the web UI. OAuth worked end to end in the CLI with --callback-url http://127.0.0.1:6276/callback.

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.3k
Fork
1.6k
Merge trung bình
2 giờ 28 phút
Pull request đã merge (30 ngày)
111

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.