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

Offen
#1,139 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
authentication

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
18.2k
Forks
2k
Ø Merge
3 Std. 56 Min.
Gemergte PRs (30 T.)
96

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cursor/plugins

Alle Issues in cursor/plugins

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.