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

Open
#1,139 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

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.

Written by the indexing model from the issue text.

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

Dominant language
TypeScript
Stars
18.2k
Forks
2k
Avg merge
3h 56m
Merged PRs (30d)
96

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cursor/plugins

All issues in cursor/plugins

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.