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

Ouverte
#1,139 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
48/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript
Domaine
authentication

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
TypeScript
Étoiles
18.2k
Forks
2k
Merge moyen
3 h 56 min
PR mergées (30 j)
96

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de cursor/plugins

Toutes les issues de cursor/plugins

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.