You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Outside agents guide says a plain-http LAN or Tailscale address works, but MCP OAuth clients refuse it #22214
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
Docs
Steps to reproduce
Run a T3 server reached directly over a tailnet or LAN address, e.g. t3 serve --host 100.x.y.z (plain http, as remote-access.md describes).
Follow docs/user/outside-agents.md, which says an agent on your own computers "can use any address that computer reaches the environment at: a LAN or Tailscale address".
Point an MCP client on another tailnet machine at http://100.x.y.z:3773/mcp and sign in.
Expected behavior
The guide's address works, or the guide says which addresses won't.
Actual behavior
Discovery, registration and approval all succeed, but the client won't exchange the code: the advertised token endpoint is http://100.x.y.z:3773/oauth/mcp/token, and clients refuse to send credentials to plain http off loopback. #16336 already lists this under Limits ("Plain-http LAN/tailnet addresses can't work: Claude Code refuses non-https token endpoints off localhost."). We hit the same with mcp-remote: --allow-http lets it connect, but not exchange the token.
Fronting the server with Tailscale Serve fixed it (tailscale serve --bg http://100.x.y.z:3773). T3 derives the issuer and resource from Host and X-Forwarded-Proto, so everything becomes https://<machine>.<tailnet>.ts.net and the sign-in completes. t3 pair --tailscale already publishes over Tailscale Serve, so the guide could point there.
Impact
Anyone following the guide on a LAN or tailnet without T3 Connect gets stuck after approving, with no hint why. Suggested fix: say plain http only works for localhost on the host, and send other machines to an HTTPS route (Tailscale Serve / t3 pair --tailscale, or T3 Connect).
Version or commit
Server whose auth code matches upstream ff9f41b65f; the guide is unchanged on 70a869d262.
Environment
Headless Linux server reached over Tailscale; MCP client is mcp-remote on another tailnet machine.
Activity