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

未关闭
#1,139 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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).

主要语言
TypeScript
星标
18.2k
派生
2k
平均合并
3 小时 56 分钟
30 天内合并 PR
96

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cursor/plugins 的其他 Issue

查看 cursor/plugins 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。