Tailscale MCP: no way to add a static Bearer token header from a stored secret (falls into OAuth discovery → 404)

Đang mở
#1,139 1 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
48/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

Hướng nghiên cứu

Start by tracing the remote MCP connect flow and AddMcpServer input, which the report says accepts literal headers but cannot use the stored secret. Check how the masked secret is stored and how the connect card handles OAuth authentication. Done means a custom remote MCP server can send a static Bearer token from a stored secret without exposing it in chat.

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

Mô tả

I'm on the Tailscale beta (#855). My MCP server is at http://mac.<tailnet>.ts.net:8000/things/mcp and uses a static Authorization: Bearer <token> header, not OAuth.

What happens

  • Tailscale is connected and tailscale_check_host reports the host reachable.
  • When the connector is added without a header, the server correctly returns 401 and the connector shows "needs authentication".
  • Authenticate then only tries OAuth discovery, which gets HTTP 404: Invalid OAuth error response ... Raw body: Not Found. There's no way to enter a Bearer token.
  • I gave the bot the token through the masked secret input (stored as an env var), but AddMcpServer only accepts a literal headers value, so the bot can't use the stored secret, and I can't find a UI to add a remote MCP with custom headers myself.

Request
Support a static header or Bearer token for custom remote MCP servers, either by letting headers reference a stored secret or with a token field on the connect card, so that non-OAuth MCP servers on a tailnet can be used without exposing the token in chat.

Related: #1108 (OAuth discovery over tailnet stalls).

Ngôn ngữ chính
TypeScript
Star
18.2k
Fork
2k
Merge trung bình
3 giờ 56 phút
Pull request đã merge (30 ngày)
96

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 cursor/plugins

Tất cả issue của cursor/plugins

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.